Search This Blog

Total Pageviews

Monday, 28 October 2024

dbaascli command

ExaDB-D dbaascli

dbaascli 24.1.1.0.0 (231219)

2024/04/24
(version 23.4.1.0.0)
 

dbaascli 
dbaascli --help

[root@wasa-ycfpo1 ~]# dbaascli --help DBAAS CLI version 24.1.1.0.0
Executing command --help
Usage: dbaascli   [] [] Following are the possible flags:
--help - display help.

The following are the supported objects and associated commands. To view the  available for a command, use the --help flag on the respective command.
admin updateStack - install/update a dbaastools RPM
admin showLatestStackVersion - shows the version of latest available dbaastools stack to update admin updateAHF - install/update AHF
diag collect - diagnostic log collection diag healthcheck
cswLib download - CSWLIB download/update dbnid bits. cswLib showImages - CSWLIB list available DB/GI images.
cswLib listLocal - CSWLIB list locally available DB/GI images. cswLib deleteLocal - CSWLIB deletes local image.
database bounce - bounce a specific database.
database changePassword - change the password for a given user in the database. database addInstance - allows user to add the database instance on the specified node.
database deleteInstance - allows user to delete the database instance on the specified node. database convertToPDB - to convert given non-CDB database to PDB.
database getDetails - display details about a specific database.
database modifyParameters - modifies or resets initialization parameters for a given Oracle database. database move - move DB from one home to another home.
database start - start a specific database.
database status - checks status of a database. database stop - stop a specific database.
database upgrade - performs the upgrade of an Oracle database. database upgradeTimeZone - to upgrade the database time zone version


 

dbaascli 
dbaascli --help



database create - create a new database.
database duplicate - create a new database from active database. database delete - delete the given database.
database runDatapatch - patches the database.
database backup - performs database backup operations. database recover - performs database recovery.
database getPDBs - display information of PDBs in specified database. database createTemplate - create a new template from the specified database.
dataguard failover - failover to Standby when all db nodes are up. This command is expected to fail if primary is down. Failover can be
performed using ''force'' operation at your own risk.
dataguard reinstate - reinstate failed Primary as new Standby dataguard status - show dataguard status.
dataguard switchover - switchover to Standby.
dataguard verify - checks cluster readiness for hosting a standby database.
dataguard configureAWR - enables generation of AWR reports for standby database from primary database. dataguard convertStandby - facilitates type conversion for Standby Database.
dataguard configureRedoApply - manage and monitor the redo apply setting for a given Oracle database configured for Data Guard. dataguard prepareStandbyBlob - generate a TAR file containing the primary database wallet to export for standby PDB creation. dataguard updateDGConfigAttributes - update Dataguard Automation Attributes across all nodes of a cluster.
dataguard showDGConfigAttributes - show Dataguard Automation Attributes on a cluster.
dataguard createDrConfig - configure the various clusterware resources on the disaster recovery network. dbHome patch - patches the dbhome from one patch level to another.
dbHome create - create database Oracle Home.
dbHome delete - delete the given Oracle Database Home.
dbHome getDetails - display details of specified Oracle home.
dbHome getDatabases - display details of databases in specified Oracle home. gridHome create - setup of Grid Infrastructure home.
gridHome delete - delete the given Grid Infrastructure home.



3	varchar2
 

dbaascli

dbaascli --help


grid changePassword - change the sys and asmsnmp passwords for grid.
grid upgrade - upgrade the Grid Infrastructure from one major version to another. grid patch - patch the Grid Infrastructure to the specified minor version.
grid configureTCPS - configure TCPS for existing cluster. grid rotateTCPSCert - rotate TCPS certificates.
grid removeTCPSCert - remove existing TCPS certs from Grid Infrastructure wallet. grid showTCPSCerts - to list TCPS certs from Grid Infrastructure wallet.
grid getDetails - display the details of configured Grid Infrastructure home. job getStatus - display the status info of specified job.
pdb localClone - clone a PDB from another PDB in the same database. pdb getConnectString - get connectString of the specified PDB.
pdb remoteClone - clone the specified PDB from an another database. pdb close - close a PDB.
pdb create - create a new PDB. pdb open - open a PDB.
pdb relocate - relocate the specified PDB from remote DB into local DB. pdb delete - delete a PDB.
pdb bounce - bounce the PDB.
pdb getDetails - get the details of provided PDB in the database. pdb backup - performs PDB backup operations.
pdb recover - performs PDB recovery. pdb refresh - refresh a specified PDB.
system getDatabases - list details of all the databases. system getDBHomes - list the details of all the Oracle homes. system getGridHomes - list the details of all the Grid homes.
く




4	varchar2
 

dbaascli 
dbaascli --help



tde setPrimaryHSMKey - change primary HSM(KMS) key for existing HSM(KMS) configuration. tde setKeyVersion - sets the version of the primary key to be used in DB/CDB or PDB.
tde removeSecondaryHSMKey - remove second HSM(KMS) key from existing HSM(KMS) configuration. tde hsmToFile - convert HSM(KMS/OKV) based TDE to FILE based TDE.
tde getPrimaryHSMKey - get Primary HSM(KMS) key from existing HSM(KMS) configuration. tde fileToHSM - convert FILE based TDE to HSM(KMS/OKV) based TDE.
tde addSecondaryHSMKey - add second HSM(KMS) key to existing HSM(KMS) configuration. tde backup - backup TDE wallets to local disk.
tde changePassword - changes TDE keystore password as well as DB wallet password for the alias tde_ks_passwd. tde listKeys - list TDE master keys.
tde status - show TDE configuration status.
tde getMKIDForKeyVersionOCID - get Masterkey ID associated to KMS key version OCID. tde getHSMKeys - get TDE active key details.
tde encryptTablespacesInPDB - encrypt all the tablespaces present in the given PDB. tde enableWalletRoot - enable wallet_root spfile parameter for existing database. tde exportTDEKey - export TDE master encryption key into a file.
tde rotateMasterKey - rotate TDE master key.


[root@wasa-ycfpo1 ~]#

 

dbaascli 
dbaascli -v

[oracle@vmem-6gl0h1 ~]$ dbaascli -v DBAAS CLI version 23.4.1.0.0
Executing command -v
DBAAS CLI version 23.4.1.0.0
[oracle@vmem-6gl0h1 ~]$ rpm -qa | grep dbaas dbaastools_exa-1.0-23.4.1.0.0_231031.1153.x86_64


 

ssh 
host_access_control idle-timeout --help


 
[root@vmem-6gl0h1 ~]# host_access_control idle-timeout --help
Usage: host_access_control idle-timeout [options] [arguments] [arguments]
--client {integer}
--clientaliveinterval {integer}
--clientalivecountmax {integer}
--shell {integer}
--defaults
--status Idle Timeout Settings Control
Options:
-h, --help	show this help message and exit
-c CLIENT, --client=CLIENT
SSH client idle timeout. Option retained for backwards compatibility. Number of seconds of inactivity on an ssh connection before the connection is terminated.
Sets ClientAliveCountMax to 0 and ClientAliveInterval to the given --client value. Input is limited from 0 to 31557600 (one year) (*Exadata factory default is 600 (10m))
-i CLIENTALIVEINTERVAL, --clientaliveinterval=CLIENTALIVEINTERVAL
ClientAliveInterval, SSH client idle timeout. Number of seconds of inactivity before a message is sent to request a response from the client. Input is limited from 0 (disabled) to 31557600 (one year) (*Exadata factory default is 600 (10m))
 
-m CLIENTALIVECOUNTMAX, --clientalivecountmax=CLIENTALIVECOUNTMAX
ClientAliveCountMax, SSH client idle timeout. The number of client alive messages which may be sent without sshd receiving any messages back from the client. Input is limited from 0 to 100000 (*Exadata factory default is 0)
-l SHELL, --shell=SHELL
Shell idle timeout. Number of seconds of no input before the shell will terminate. Input is limited to
0 or from 300 to 31557600 (one year) (*Exadata factory default is 14400 (4h))
--defaults	Set all idle-timeout values to *Exadata factory
defaults
-s, --status	Display current idle timeout settings
 





17	varchar2
 
host_access_control idle-timeout

[root@vmem-6gl0h1 ~]# host_access_control idle-timeout -l 14400
[2023-11-20 13:22:45 +0900] [INFO] [IMG-SEC-0404] Shell timeout set to 14400

[root@vmem-6gl0h1 ~]# cat /etc/ssh/sshd_config | grep -i inter ClientAliveInterval 600

[root@vmem-6gl0h1 ~]# host_access_control idle-timeout -c 14400
[2023-11-20 13:23:04 +0900] [INFO] [IMG-SEC-0403] SSH client idle timeout is set to 14400
[2023-11-20 13:23:05 +0900] [INFO] [IMG-SEC-0A02] SSHD Service restarted. Changes in effect for new connections.

[root@vmem-6gl0h1 ~]# cat /etc/ssh/sshd_config | grep -i inter ClientAliveInterval 14400

[root@vmem-6gl0h1 ~]# host_access_control idle-timeout -s
[2023-11-20 13:23:17 +0900] [INFO] [IMG-SEC-0402] Shell timeout is set to TMOUT=14400
[2023-11-20 13:23:17 +0900] [INFO] [IMG-SEC-0403] SSH client idle timeout is set to ClientAliveInterval 14400 [2023-11-20 13:23:17 +0900] [INFO] [IMG-SEC-0403] SSH client idle timeout is set to ClientAliveCountMax 0





dbaascli 


2.	Oracle Database Home 
3.	Oracle Database Home でのOracle Databaseの作成





Cloud Software Library 
 --help

[root@taro-3nusm1 ~]# dbaascli cswlib --help DBAAS CLI version 24.1.1.0.0
Executing command cswlib --help
cswLib download - CSWLIB download/update dbnid bits. cswLib showImages - CSWLIB list available DB/GI images.
cswLib listLocal - CSWLIB list locally available DB/GI images. cswLib deleteLocal - CSWLIB deletes local image.

[root@taro-3nusm1 ~]#




 


dbaascli cswlib showImages --help


[root@vmem-6gl0h1 ~]# dbaascli cswlib showimages --help DBAAS CLI version 23.4.1.0.0
Executing command cswlib showimages --help
cswLib showImages - CSWLIB list available DB/GI images.
Usage: dbaascli cswLib showImages [--product ] [--jsonFormat [--jsonFilePath ]] Where:
[--product - product type. The valid values are: DATABASE | GRID .] [--jsonFormat - displays output in JSON format.]
[--jsonFilePath - path of the JSON file.]








dbaascli cswlib showImages


 
[root@vmem-6gl0h1 ~]# dbaascli cswlib showimages DBAAS CLI version 23.4.1.0.0
Executing command cswlib showimages
Job id: c45ccffd-a8b9-4de5-8d36-92c3c929b84c
Session log: /var/opt/oracle/log/cswLib/showImages/dbaastools_2023- 11-20_01-24-57-PM_173707.log
Log file location:
/var/opt/oracle/log/cswLib/showImages/dbaastools_2023-11-20_01-24-57-
PM_173707.log
############ List of Available database Artifacts ############# 1.IMAGE_TAG=11.2.0.4.230418
VERSION=11.2.0.4.230418 DESCRIPTION=11.2 APR 2023 DB Image
2.IMAGE_TAG=12.2.0.1.230117 VERSION=12.2.0.1.230117 DESCRIPTION=12.2 JAN 2023 DB Image
3.IMAGE_TAG=12.2.0.1.230718 VERSION=12.2.0.1.230718 DESCRIPTION=12.2 JUL 2023 DB Image
4.IMAGE_TAG=18.23.0.0.0 VERSION=18.23.0.0.0 DESCRIPTION=18c JUL 2023 DB Image
5.IMAGE_TAG=12.1.0.2.231017 VERSION=12.1.0.2.231017 DESCRIPTION=12.1 OCT 2023 DB Image


 
6.IMAGE_TAG=18.22.0.0.0 VERSION=18.22.0.0.0 DESCRIPTION=18c APR 2023 DB Image
7.IMAGE_TAG=11.2.0.4.231017 VERSION=11.2.0.4.231017 DESCRIPTION=11.2 OCT 2023 DB Image
8.IMAGE_TAG=12.1.0.2.230418 VERSION=12.1.0.2.230418 DESCRIPTION=12.1 APR 2023 DB Image
9.IMAGE_TAG=19.18.0.0.0 VERSION=19.18.0.0.0 DESCRIPTION=19c JAN 2023 DB Image
10.IMAGE_TAG=19.20.0.0.0 VERSION=19.20.0.0.0 DESCRIPTION=19c JUL 2023 DB Image
11.IMAGE_TAG=11.2.0.4.230117 VERSION=11.2.0.4.230117 DESCRIPTION=11.2 JAN 2023 DB Image
12.IMAGE_TAG=18.21.0.0.0 VERSION=18.21.0.0.0 DESCRIPTION=18c JAN 2023 DB Image
13.IMAGE_TAG=12.2.0.1.230418 VERSION=12.2.0.1.230418 DESCRIPTION=12.2 APR 2023 DB Image
14.IMAGE_TAG=11.2.0.4.230718 VERSION=11.2.0.4.230718 DESCRIPTION=11.2 JUL 2023 DB Image
15.IMAGE_TAG=12.1.0.2.230718 VERSION=12.1.0.2.230718 DESCRIPTION=12.1 JUL 2023 DB Image
 

dbaascli cswlib showImages

16.IMAGE_TAG=18.20.0.0.0 VERSION=18.20.0.0.0 DESCRIPTION=18c OCT 2022 DB Image
17.IMAGE_TAG=12.2.0.1.231017 VERSION=12.2.0.1.231017 DESCRIPTION=12.2 OCT 2023 DB Image
18.IMAGE_TAG=18.24.0.0.0 VERSION=18.24.0.0.0 DESCRIPTION=18c OCT 2023 DB Image
19.IMAGE_TAG=19.19.0.0.0 VERSION=19.19.0.0.0 DESCRIPTION=19c APR 2023 DB Image
20.IMAGE_TAG=19.21.0.0.0 VERSION=19.21.0.0.0 DESCRIPTION=19c OCT 2023 DB Image
21.IMAGE_TAG=12.1.0.2.230117 VERSION=12.1.0.2.230117 DESCRIPTION=12.1 JAN 2023 DB Image
Images can be downloaded using their image tags. For details, see help using 'dbaascli cswlib download --help'. dbaascli execution completed



dbaascli cswLib listLocal

[root@vmem-6gl0h1 ~]# dbaascli cswlib listLocal --help DBAAS CLI version 23.4.1.0.0
Executing command cswlib listLocal --help
cswLib listLocal - CSWLIB list locally available DB/GI images.
Usage: dbaascli cswLib listLocal [--product ] Where:
[--product - product type. The valid values are: DATABASE | GRID .]

[root@vmem-6gl0h1 ~]# dbaascli cswlib listLocal DBAAS CLI version 23.4.1.0.0
Executing command cswlib listLocal
Job id: dc4a03a3-c63f-4600-b09e-dad1c5092d3f
Session log: /var/opt/oracle/log/cswLib/listLocal/dbaastools_2023-11-20_07-43-42-PM_301284.log
Log file location: /var/opt/oracle/log/cswLib/listLocal/dbaastools_2023-11-20_07-43-42-PM_301284.log ############ List of Available Database Images #############
1.IMAGE_TAG=19.20.0.0.0 IMAGE_SIZE=5GB VERSION=19.20.0.0.0 DESCRIPTION=19c JUL 2023 DB Image
2.IMAGE_TAG=19.21.0.0.0 IMAGE_SIZE=5GB VERSION=19.21.0.0.0 DESCRIPTION=19c OCT 2023 DB Image
dbaascli execution completed [root@vmem-6gl0h1 ~]#





baascli cswlib download --help

[root@vmem-6gl0h1 ~]# dbaascli cswlib download --help DBAAS CLI version 23.4.1.0.0
Executing command cswlib download --help
cswLib download - CSWLIB download/update dbnid bits.

Usage: dbaascli cswLib download
{
--version 
| --imageTag 
}
[--product ]

Where:
--version | --imageTag
--version - Oracle home image version.
--imageTag - Oracle home image tag.
[--product - product type. The valid values are: DATABASE | GRID .]


dbaascli cswlib download

[root@vmem-6gl0h1 ~]# dbaascli cswlib download --version 19.21.0.0.0 DBAAS CLI version 23.4.1.0.0
Executing command cswlib download --version 19.21.0.0.0 Job id: f0e6e39c-250d-4fe2-b484-478798089491
Session log: /var/opt/oracle/log/cswLib/download/dbaastools_2023-11-20_01-29-57-PM_204515.log Image location=/var/opt/oracle/dbaas_acfs/dbnid/19.21.0.0.0
Download succeeded
Log file location: /var/opt/oracle/log/cswLib/download/dbaastools_2023-11-20_01-29-57-PM_204515.log dbaascli execution completed
You have new mail in /var/spool/mail/root

[root@vmem-6gl0h1 ~]# dbaascli cswlib listLocal DBAAS CLI version 23.4.1.0.0
Executing command cswlib listLocal
Job id: c162764a-49e8-47e0-aacc-a95e12376162
Session log: /var/opt/oracle/log/cswLib/listLocal/dbaastools_2023-11-20_01-31-38-PM_214945.log
Log file location: /var/opt/oracle/log/cswLib/listLocal/dbaastools_2023-11-20_01-31-38-PM_214945.log ############ List of Available Database Images #############
1.IMAGE_TAG=19.20.0.0.0 IMAGE_SIZE=5GB VERSION=19.20.0.0.0 DESCRIPTION=19c JUL 2023 DB Image
2.IMAGE_TAG=19.21.0.0.0 IMAGE_SIZE=5GB VERSION=19.21.0.0.0 DESCRIPTION=19c OCT 2023 DB Image
dbaascli execution completed

19.21 



dbaascli cswlib download

[root@vmem-6gl0h1 ~]# ls -al /var/opt/oracle/dbaas_acfs/dbnid/19.21.0.0.0 total 5267560
drwx------ 2 oracle oinstall	20480 Nov 16 16:45 .
drwxr-xr-x 6 oracle oinstall	20480 Nov 16 16:42 ..
-rwx------ 1 oracle oinstall 5389406916 Nov 16 16:43 db19000_bits_EXA.zip

[root@vmem-6gl0h1 ~]#
[root@vmem-6gl0h1 ~]# ls -al /var/opt/oracle/dbaas_acfs/dbnid/ total 316
drwxr-xr-x	6	oracle	oinstall	20480	Nov	16	16:42	.	
drwxr-xr-x	22	oracle	oinstall	20480	Nov	20	13:23	..	
drwx------	2	oracle	oinstall	20480	Oct	20	10:09	19.20.0.0.0	
drwx------	2	oracle	oinstall	20480	Nov	16	16:45	19.21.0.0.0	
lrwxrwxrwx	1	oracle	oinstall	65	Oct	20	10:09	db19000_bits_EXA.zip	->	/var/opt/oracle/dbaas_acfs/dbnid/19.20.0.0.0/db19000_bits_EXA.zip
drwxr-xr-x	3	oracle	oinstall	20480	Oct	20	13:36	NONCDB		
drwxr-xr-x	2	oracle	oinstall	20480	Oct	20	13:36	OCT2021		



dbaascli cswlib deleteLocal --help

[root@taro-3nusm1 ~]# dbaascli cswlib deleteLocal --help DBAAS CLI version 24.1.1.0.0
Executing command cswlib deleteLocal --help
cswLib deleteLocal - CSWLIB deletes local image.
Usage: dbaascli cswLib deleteLocal --imageTag  Where:
--imageTag - Oracle home image tag.

[root@taro-3nusm1 ~]#


DBHOME
dbaascli dbhome --help

[root@taro-3nusm1 ~]# dbaascli dbhome --help DBAAS CLI version 24.1.1.0.0
Executing command dbhome --help
dbHome patch - patches the dbhome from one patch level to another. dbHome create - create database Oracle Home.
dbHome delete - delete the given Oracle Database Home. dbHome getDetails - display details of specified Oracle home.
dbHome getDatabases - display details of databases in specified Oracle home.

[root@taro-3nusm1 ~]#



 


Oracle Database Home 
dbaascli dbhome create --help

[root@vmem-6gl0h1 ~]# dbaascli dbhome create --help DBAAS CLI version 23.4.1.0.0
Executing command dbhome create --help
dbHome create - create database Oracle Home.

Usage: dbaascli dbHome create --version  [--oracleHomeName ] [--oracleHome ] [--imageTag ] [-- enableUnifiedAuditing ] [--executePrereqs] [--imageFilePath ] [--waitForCompletion ]

Where:
--version - Oracle home version, specified as five numeric segments separated by periods (e.g. 19.12.0.0.0). [--oracleHomeName - user defined home name, if not provided default name will be used. ]
[--oracleHome - specifies Oracle home location] [--imageTag - Oracle home image tag.]
[--enableUnifiedAuditing - specifies true|false to enable|disable unified auditing link option in Oracle home.] [--executePrereqs - run the prerequisite checks and report the results. ]
[--imageFilePath - absolute path of the image file to be used. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [root@vmem-6gl0h1 ~]#





Oracle Database Home 
dbaascli dbhome create

 

[root@vmem-6gl0h1 ~]# dbaascli dbhome create --version 19.21.0.0.0 DBAAS CLI version 23.4.1.0.0
Executing command dbhome create --version 19.21.0.0.0 Job id: f987b833-9dc3-4c39-ba53-fa863c2c92d5
Session log: /var/opt/oracle/log/dbHome/create/dbaastools_2023-11- 20_01-36-21-PM_239183.log
Loading PILOT...
Session ID of the current execution is: 1118
Log file location: /var/opt/oracle/log/dbHome/create/pilot_2023-11- 20_01-36-25-PM_239783

Running Plugin_initialization job Completed Plugin_initialization job

Running OH_image_validate job Completed OH_image_validate job

Running OH_image_download job Completed OH_image_download job

Running DB_home_version_check job Completed DB_home_version_check job

Running OH_image_version_check job Completed OH_image_version_check job

Running Validate_backup_location job Completed Validate_backup_location job

Running Disk_space_check job Completed Disk_space_check job
 

Running Cluster_nodes_check job Completed Cluster_nodes_check job
-----------------
Running Validate_users_group job Completed Validate_users_group job
Acquiring write lock: _u02_app_oracle_product_19.0.0.0_dbhome_6 Acquiring write lock: provisioning
-----------------
Running Pre_OH_creation_lock_manager job Completed Pre_OH_creation_lock_manager job

Running OH_pre_existence_check job Completed OH_pre_existence_check job

Running Local_node_oh_image_unzip job Completed Local_node_oh_image_unzip job

Running OH_creation_cvu_prechecks job Completed OH_creation_cvu_prechecks job

Running Local_node_oh_clone job Completed Local_node_oh_clone job

Running Update_dbnid_bits job
Skipping. Job is detected as not applicable.

Running Local_node_oh_backup_creation job Completed Local_node_oh_backup_creation job

 


Oracle Database Home 
dbaascli dbhome create


 
Running Remote_nodes_software_copy job Completed Remote_nodes_software_copy job
-----------------
Running Remote_nodes_attach_home job Completed Remote_nodes_attach_home job
-----------------
Running Remote_nodes_post_install_steps job Completed Remote_nodes_post_install_steps job
 
Running Plugin_cleanup job Completed Plugin_cleanup job
---------- START OF PLUGIN RESULT ----------
{"ORACLE_HOME_NAME":"OraHome6","ORACLE_HOME":"/u02/app/oracle/product
/19.0.0.0/dbhome_6"}
---------- END OF PLUGIN RESULT ----------
dbaascli execution completed [root@vmem-6gl0h1 ~]#
 

 
Running Inventory_nodes_list_update job Completed Inventory_nodes_list_update job

Running Root_script_run job Completed Root_script_run job

Running Post_OH_creation_lock_manager job Completed Post_OH_creation_lock_manager job
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_6 Releasing lock: provisioning

Running Generate_dbhome_metadata job Completed Generate_dbhome_metadata job

Running Generate_dbhome_system_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbhome_system_details job





Oracle Database Home の削除
dbaascli dbhome delete --help

[root@taro-3nusm1 ~]# dbaascli dbhome delete --help DBAAS CLI version 24.1.1.0.0
Executing command dbhome delete --help
dbHome delete - delete the given Oracle Database Home.

Usage: dbaascli dbHome delete
{
--oracleHome 
| --oracleHomeName 
}
[--resume [--sessionID ]] [--waitForCompletion ]

Where:
--oracleHome | --oracleHomeName
--oracleHome - Oracle home path.
--oracleHomeName - Oracle home name.
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]

[root@taro-3nusm1 ~]#





Database Home
dbaascli system getDBHomes

[root@vmem-6gl0h1 ~]# dbaascli system getDBHomes --help DBAAS CLI version 23.4.1.0.0
Executing command system getDBHomes --help
system getDBHomes - list the details of all the Oracle homes.

Usage: dbaascli system getDBHomes

You have new mail in /var/spool/mail/root [root@vmem-6gl0h1 ~]#





dbaascli system getDBHomes


 
[root@vmem-6gl0h1 ~]# dbaascli system getDBHomes DBAAS CLI version 23.4.1.0.0
Executing command system getDBHomes
Job id: 15a9c693-d217-47b4-98f9-68eadd3b2766
Session log: /var/opt/oracle/log/system/getDBHomes/dbaastools_2023- 11-20_01-51-42-PM_371920.log
{
"OraHome1" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "homeName" : "OraHome1",
"version" : "19.20.0.0.0",
"createTime" : 1697764298000,
"updateTime" : 1697765609000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.20.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.20.0.0.0"
 
"OraHome2" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_2", "homeName" : "OraHome2",
"version" : "19.13.0.0.0",
"createTime" : 1697776609000,
"updateTime" : 1697777833000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.13.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.13.0.0.0"
}
},
"messages" : [ ]
},
 
}
},
"messages" : [ ]
},



dbaascli system getDBHomes
 

OraHome3" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_3", "homeName" : "OraHome3",
"version" : "19.14.0.0.0",
"createTime" : 1697786065000,
"updateTime" : 1697786065000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.14.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.14.0.0.0"
}
},
"messages" : [ ]
},
"OraHome4" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "homeName" : "OraHome4",
"version" : "19.20.0.0.0",
"createTime" : 1699923823000,
"updateTime" : 1700215854000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.20.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.20.0.0.0"
}
},
"messages" : [ ]
},
 
"OraHome5" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_5", "homeName" : "OraHome5",
"version" : "19.21.0.0.0",
"createTime" : 1700131168000,
"updateTime" : 1700182340000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.21.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.21.0.0.0"
}
},
"messages" : [ ]
},
"OraHome6" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_6", "homeName" : "OraHome6",
"version" : "19.21.0.0.0",
"createTime" : 1700455140000,
"updateTime" : 1700455140000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.21.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.21.0.0.0"
}
},
"messages" : [ ]
}
}

 
dbaascli execution completed
 



作成された Database Home 
dbaascli dbhome getDetails

[root@vmem-6gl0h1 ~]# dbaascli dbHome getDetails --help DBAAS CLI version 23.4.1.0.0
Executing command dbHome getDetails --help
dbHome getDetails - display details of specified Oracle home.

Usage: dbaascli dbHome getDetails
{
--oracleHomeName 
| --oracleHome 
}

Where:
--oracleHomeName | --oracleHome
--oracleHomeName - Oracle home name.
--oracleHome - Oracle home path. [root@vmem-6gl0h1 ~]#









 Database Home
dbaascli dbhome getDetails

[root@vmem-6gl0h1 ~]# dbaascli dbHome getDetails --oracleHomeName oraHome6 DBAAS CLI version 23.4.1.0.0
Executing command dbHome getDetails --oracleHomeName oraHome6 Job id: 034fe3fe-3639-4ef1-a7f5-788545bef811
Session log: /var/opt/oracle/log/dbHome/getDetails/dbaastools_2023-11-20_01-56-19-PM_49162.log
{
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_6", "homeName" : "OraHome6",
"version" : "19.21.0.0.0",
"createTime" : 1700455140000,
"updateTime" : 1700455140000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.21.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.21.0.0.0"
}
},
"messages" : [ ]
}
dbaascli execution completed [root@vmem-6gl0h1 ~]#



 

 Database Home 
dbaascli dbhome getDetails






 Database Home 
dbaascli dbhome getDatabases

[root@vmem-6gl0h1 ~]# dbaascli dbhome getDatabases --help DBAAS CLI version 23.4.1.0.0
Executing command dbhome getDatabases --help
dbHome getDatabases - display details of databases in specified Oracle home.

Usage: dbaascli dbHome getDatabases
{
--oracleHomeName 
| --oracleHome 
}

Where:
--oracleHomeName | --oracleHome
--oracleHomeName - Oracle home name.
--oracleHome - Oracle home path. [root@vmem-6gl0h1 ~]#



Database Home

dbaascli dbhome create

[root@vmem-6gl0h1 ~]# dbaascli dbhome create --version 19.12.0.0.0 DBAAS CLI version 23.4.1.0.0
Executing command dbhome create --version 19.12.0.0.0 Job id: 2bc77ced-42a6-4f35-8237-64e3f12f4966
Session log: /var/opt/oracle/log/dbHome/create/dbaastools_2023-11-20_06-30-14-PM_115485.log Loading PILOT...
Session ID of the current execution is: 1124
Log file location: /var/opt/oracle/log/dbHome/create/pilot_2023-11-20_06-30-18-PM_116347

Running Plugin_initialization job Completed Plugin_initialization job

Running OH_image_validate job Completed OH_image_validate job

Running OH_image_download job Execution of OH_image_download failed
[FATAL] [DBAAS-60143] Failed to download the image '19.12.0.0.0'.
SUMMARY:
- [DBAAS-60143] Failed to download the image '19.12.0.0.0'.
*** Executing jobs which need to be run always... ***

Running Post_OH_creation_lock_manager job Completed Post_OH_creation_lock_manager job

Running Plugin_cleanup job Completed Plugin_cleanup job
******** PLUGIN EXECUTION FAILED ******** [root@vmem-6gl0h1 ~]#




Database
dbaascli database --help

[root@taro-3nusm1 ~]# dbaascli database --help DBAAS CLI version 24.1.1.0.0
Executing command database --help
database bounce - bounce a specific database.
database changePassword - change the password for a given user in the database. database addInstance - allows user to add the database instance on the specified node.
database deleteInstance - allows user to delete the database instance on the specified node. database convertToPDB - to convert given non-CDB database to PDB.
database getDetails - display details about a specific database.
database modifyParameters - modifies or resets initialization parameters for a given Oracle database. database move - move DB from one home to another home.
database start - start a specific database. database status - checks status of a database. database stop - stop a specific database.
database upgrade - performs the upgrade of an Oracle database. database upgradeTimeZone - to upgrade the database time zone version database create - create a new database.
database duplicate - create a new database from active database. database delete - delete the given database.
database runDatapatch - patches the database.
database backup - performs database backup operations. database recover - performs database recovery.
database getPDBs - display information of PDBs in specified database. database createTemplate - create a new template from the specified database.
[root@taro-3nusm1 ~]#




 


Database Create 
dbaascli database create --help

[root@vmem-6gl0h1 ~]# dbaascli database create --help DBAAS CLI version 23.4.1.0.0
Executing command database create --help database create - create a new database.

Usage: dbaascli database create --dbName 
{
--oracleHome 
| --oracleHomeName 
}
[--dbUniqueName ] [--dbSID ] [--createAsCDB ] [--pdbName ] [--pdbAdminUserName ] [--dbCharset ] [--dbNCharset ] [--dbLanguage ] [--dbTerritory ] [--sgaSizeInMB ] [--pgaSizeInMB ] [--datafileDestination
] [--fraDestination ] [--fraSizeInMB ] [--nodeList ] [--tdeConfigMethod 
{
[--kmsKeyOCID  [--kmsKeyVersionOCID ] [--pdbKMSKeyVersionOCID ]]
| [--okvServer  --okvAdminUserName  [--okvServerRestPort ] [--okvWalletName ]]
}]
{
[--resume [--sessionID ]]
| [--revert [--sessionID ]]
}
[--executePrereqs] [--honorNodeNumberForInstance ] [--lockPDBAdminAccount ] [--dbcaTemplateFilePath ] [-- waitForCompletion ] [--templateFromObjectStorage --objectStorageLoginUser  --objectStorageBucketName  --templateName  [--objectStorageUrl ]]





 


Database Create 
dbaascli database create --help

 


Where:
 



--dbName - Oracle database name.
--oracleHome | --oracleHomeName
--oracleHome - specifies Oracle home location
--oracleHomeName - specifies Oracle home name
[--dbUniqueName - specifies database unique name] [--dbSID - specifies database SID]
[--createAsCDB - specifies true/false to create database as CDB/Non-CDB] [--pdbName - specifies PDB name]
[--pdbAdminUserName - specifies PDB admin user name] [--dbCharset - specifies database character set]
[--dbNCharset - specifies database national character set] [--dbLanguage - specifies database language]
[--dbTerritory - specifies database territory]
[--sgaSizeInMB - specifies sga_target value in mega byte unit]
[--pgaSizeInMB - specifies pga_aggregate_target value in mega byte unit]
[--datafileDestination - specifies ASM disk group name to use for database datafiles]
[--fraDestination - specifies ASM disk group name to use for database fast recovery area] [--fraSizeInMB - specifies fast recovery area size value in mega byte unit]
[--nodeList - specifies comma separated node list for database]
[--tdeConfigMethod - specifies TDE configuration method. Allowed values are FILE, KMS and OKV] [--kmsKeyOCID | --okvServer]
[--kmsKeyOCID - specifies KMS key OCID to use for TDE. This is applicable only if KMS is selected for TDE]
[--kmsKeyVersionOCID - OCI Vault key version OCID to be set. This is applicable only if OCI Vault is selected for TDE]
[--pdbKMSKeyVersionOCID - OCI Vault key version OCID to be set for PDB. This is applicable only if OCI Vault is selected for TDE] [--okvServer - Specifies the Oracle Key Vault server. This is applicable only if OKV is selected for TDE]
--okvAdminUserName - Specifies the Oracle Key Vault admin user name
[--okvServerRestPort - Specifies the rest port number for Oracle Key Vault] [--okvWalletName - Specifies the Oracle Key Vault wallet name]
 


 


Database Create 
dbaascli database create --help



[--resume | --revert]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.] [--revert - to rollback the previous operation]
[--sessionID - to resume a specific session id.]
[--executePrereqs - run the prerequisite checks and report the results. ]
[--honorNodeNumberForInstance - specifies true or false to indicate instance name to be suffixed with cluster node numbers when database
is created on subset of nodes. Default value is true]
[--lockPDBAdminAccount - specifies true or false to lock the PDB admin user account. Default value is true] [--dbcaTemplateFilePath - specifies the absolute path of the dbca template name to create the database.]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [--templateFromObjectStorage - to create database from template present in object storage]
--objectStorageLoginUser - object storage login user
--objectStorageBucketName - object storage bucket name
--templateName - specifies the template name [--objectStorageUrl - object storage URL]




 


Oracle Database
dbaascli database create --executePrereq


 
[root@vmem-6gl0h1 ~]# dbaascli database create --dbname dbcli01 -- oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_6 --executePrereqs yes
DBAAS CLI version 23.4.1.0.0
Executing command database create --dbname dbcli01 --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_6 --executePrereqs yes Job id: fc003e99-f921-4715-94b6-882534e50469
Session log:
/var/opt/oracle/log/dbcli01/database/create/dbaastools_2023-11-20_06- 34-59-PM_154607.log
Enter SYS_PASSWORD:

Enter SYS_PASSWORD (reconfirmation):

Enter TDE_PASSWORD:

Enter TDE_PASSWORD (reconfirmation):

Loading PILOT... Enter SYS_PASSWORD
********************
Enter SYS_PASSWORD (reconfirmation):
***************** Enter TDE_PASSWORD
*********************
Enter TDE_PASSWORD (reconfirmation):
******************
Session ID of the current execution is: 1125 Log file location:
/var/opt/oracle/log/dbcli01/database/create/pilot_2023-11-20_06-36- 41-PM_163619
 
Running Plugin_initialization job Completed Plugin_initialization job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_6
-----------------
Running Default_value_initialization job Completed Default_value_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job
-----------------
Running Validate_cpu_availability job Completed Validate_cpu_availability job
-----------------
Running Validate_asm_availability job Completed Validate_asm_availability job

Running Validate_disk_space_availability job Completed Validate_disk_space_availability job
-----------------
Running validate_users_umask job Completed validate_users_umask job
-----------------
Running Validate_huge_pages_availability job Completed Validate_huge_pages_availability job
-----------------
Running Validate_hostname_domain job Completed Validate_hostname_domain job
-----------------
Running Install_db_cloud_backup_module job Skipping. Job is detected as not applicable.
-----------------
 


 


Oracle Database
dbaascli database create --executePrereq


 
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job
 
Running Register_ocids job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Validate_backup_report job
Skipping. Job is detected as not applicable. Acquiring write lock: create_db_cloud
-----------------
Running Setup_acfs_volumes job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_db_folders job
Skipping. Job is detected as not applicable.
-----------------
Running DB_creation job
Skipping. Job is detected as not applicable. Releasing lock: create_db_cloud
-----------------
Running Generate_db_metadata job
Skipping. Job is detected as not applicable.
-----------------
Running Create_db_from_backup job
Skipping. Job is detected as not applicable. Completed Create_db_from_backup job
 
Running Run_datapatch job
Skipping. Job is detected as not applicable.
-----------------
Running Create_users_tablespace job Skipping. Job is detected as not applicable.
-----------------
Running Configure_pdb_service job
Skipping. Job is detected as not applicable.
-----------------
Running Set_pdb_admin_user_profile job Skipping. Job is detected as not applicable.
-----------------
Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.
-----------------
Running Configure_flashback job
Skipping. Job is detected as not applicable.
-----------------
Running Update_cloud_service_recommended_config_parameters job Skipping. Job is detected as not applicable.
 

 	 

 
Running Load_db_details job
Skipping. Job is detected as not applicable.
 
Running Update_distributed_lock_timeout job Skipping. Job is detected as not applicable.
 

 	 

 
Running Populate_creg job
Skipping. Job is detected as not applicable.
 
Running Configure_archiving job
Skipping. Job is detected as not applicable.
 



Oracle Database
dbaascli database create --executePrereq


 
Running Configure_huge_pages job
Skipping. Job is detected as not applicable.
 
Running Update_db_wallet job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Set_credentials job
Skipping. Job is detected as not applicable.
 
Running Add_oratab_entry job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Update_dba_directories job
Skipping. Job is detected as not applicable.
 
Running Configure_sqlnet_ora job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Set_cluster_interconnects job Skipping. Job is detected as not applicable.
 
Running Configure_tnsnames_ora job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Create_db_secure_profile job Skipping. Job is detected as not applicable.
 
Running Enable_fips job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Set_utc_timezone job
Skipping. Job is detected as not applicable.
 
Running DTRS_DB_Configure_Job job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Run_dst_post_installs job
Skipping. Job is detected as not applicable.
 
Running Restart_database job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Enable_auditing job
Skipping. Job is detected as not applicable.
 
Running Create_db_login_environment_file job Skipping. Job is detected as not applicable.
 

 	 

 
Running Apply_security_measures job Skipping. Job is detected as not applicable.
 
Running Generate_dbsystem_details job Skipping. Job is detected as not applicable.
 

 	 

 
Running Set_listener_init_params job Skipping. Job is detected as not applicable.
-----------------
 
Running Cleanup job
Skipping. Job is detected as not applicable.
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_6 dbaascli execution completed
[root@vmem-6gl0h1 ~]#
 


Oracle  Database Oracle  Database
dbaascli database create


 
[root@vmem-6gl0h1 ~]# dbaascli database create --dbname dbcli01 -- oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_6
DBAAS CLI version 23.4.1.0.0
Executing command database create --dbname dbcli01 --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_6 Job id: aa2c12d2-ac0b-4ccd-8ff9-53aba535c640 Session log:
/var/opt/oracle/log/dbcli01/database/create/dbaastools_2023-11-20_06- 45-13-PM_220170.log
Enter SYS_PASSWORD:

Enter SYS_PASSWORD (reconfirmation):

Enter TDE_PASSWORD:

Enter TDE_PASSWORD (reconfirmation):

Loading PILOT... Enter SYS_PASSWORD
********************
Enter SYS_PASSWORD (reconfirmation):
******************* Enter TDE_PASSWORD
******************
Enter TDE_PASSWORD (reconfirmation):
********************
Session ID of the current execution is: 1126 Log file location:
/var/opt/oracle/log/dbcli01/database/create/pilot_2023-11-20_06-47- 12-PM_229558
 
Running Plugin_initialization job Completed Plugin_initialization job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_6
-----------------
Running Default_value_initialization job Completed Default_value_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job
-----------------
Running Validate_cpu_availability job Completed Validate_cpu_availability job

Running Validate_asm_availability job Completed Validate_asm_availability job
-----------------
Running Validate_disk_space_availability job Completed Validate_disk_space_availability job
-----------------
Running validate_users_umask job Completed validate_users_umask job
-----------------
Running Validate_huge_pages_availability job Completed Validate_huge_pages_availability job
-----------------
Running Validate_hostname_domain job Completed Validate_hostname_domain job
-----------------
 

 


Oracle  Database

dbaascli database create


 
Running Install_db_cloud_backup_module job Skipping. Job is detected as not applicable.
 
Running Load_db_details job Completed Load_db_details job
 

 	 

 
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job
 
Running Populate_creg job Completed Populate_creg job
 

 	 

 
Running Validate_backup_report job
Skipping. Job is detected as not applicable. Acquiring write lock: create_db_cloud
-----------------
Running Setup_acfs_volumes job Completed Setup_acfs_volumes job
-----------------
Running Setup_db_folders job Completed Setup_db_folders job
-----------------
Running DB_creation job Completed DB_creation job Releasing lock: create_db_cloud
-----------------
Running Generate_db_metadata job Completed Generate_db_metadata job
-----------------
Running Create_db_from_backup job
Skipping. Job is detected as not applicable. Completed Create_db_from_backup job
 
Running Register_ocids job
Skipping. Job is detected as not applicable.
-----------------
Running Run_datapatch job
Skipping. Job is detected as not applicable.
-----------------
Running Create_users_tablespace job Skipping. Job is detected as not applicable.
-----------------
Running Configure_pdb_service job
Skipping. Job is detected as not applicable.
-----------------
Running Set_pdb_admin_user_profile job Skipping. Job is detected as not applicable.
-----------------
Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.
-----------------
Running Configure_flashback job Completed Configure_flashback job
 

 	 

 
Running Load_db_details job Completed Load_db_details job
 
Running Update_cloud_service_recommended_config_parameters job Completed Update_cloud_service_recommended_config_parameters job
 

 	 




Oracle  Database


Oracle  Database
dbaascli database create
 
Running Update_distributed_lock_timeout job Completed Update_distributed_lock_timeout job

Running Configure_archiving job Completed Configure_archiving job

Running Configure_huge_pages job Completed Configure_huge_pages job

Running Set_credentials job Completed Set_credentials job

Running Update_dba_directories job Completed Update_dba_directories job

Running Set_cluster_interconnects job Completed Set_cluster_interconnects job

Running Create_db_secure_profile job Completed Create_db_secure_profile job

Running Set_utc_timezone job Completed Set_utc_timezone job

Running Run_dst_post_installs job Completed Run_dst_post_installs job

Running Enable_auditing job Completed Enable_auditing job
-----------------
Running Apply_security_measures job Completed Apply_security_measures job
-----------------
 
Running Set_listener_init_params job Completed Set_listener_init_params job

Running Update_db_wallet job Completed Update_db_wallet job

Running Add_oratab_entry job Completed Add_oratab_entry job

Running Configure_sqlnet_ora job Completed Configure_sqlnet_ora job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job

Running Enable_fips job Completed Enable_fips job

Running DTRS_DB_Configure_Job job Completed DTRS_DB_Configure_Job job

Running Restart_database job Completed Restart_database job

Running Create_db_login_environment_file job Completed Create_db_login_environment_file job

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
-----------------
Running Cleanup job Completed Cleanup job
 

 


Database Home 
dbaascli dbhome getDatabases

[root@vmem-6gl0h1 ~]# dbaascli dbhome getDatabases --oracleHomeName oraHome1 DBAAS CLI version 23.4.1.0.0
Executing command dbhome getDatabases --oracleHomeName oraHome1 Job id: b25b9808-9a86-4eb8-b794-81dfec37870b
Session log: /var/opt/oracle/log/dbHome/getDatabases/dbaastools_2023-11-20_07-35-05-PM_256165.log
{
"DB19" : {
"dbSyncTime" : 1700475789484,
"createTime" : 1697765022000,
"updateTime" : 0, "dbName" : "DB19",
"dbUniqueName" : "DB19_qq4_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 881928558,
"cpuCount" : 4, "sgaTarget" : "3808MB",
"pgaAggregateTarget" : "2500MB", "dbSize" : "55GB",
"dbUsedSize" : "12GB", "totalFraSize" : "1024GB", "fraSizeUsed" : "24GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.20.0.0.0“,




Database Home
dbaascli dbhome getDatabases

"resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkguca", "compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezoghgmh7a", "resourceOCID" : "ocid1.database.oc1.ap-osaka-1.anvwsljrssl65iqa5gxmj3ghhtbyetakgl6w3qke6xpiq2o22up42s4jrsmq", "resourceID" : "d2705e01-7891-4bf7-8e91-5f01988a5a64",
"resourceType" : "CDB", "parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "AZF3cdN/r08+v+h8h+xNzfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "instanceName" : "DB191", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
},





Database Home
dbaascli dbhome getDatabases

"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "instanceName" : "DB192", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
}
},
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "3793508688",
"cdbId" : "d2705e01-7891-4bf7-8e91-5f01988a5a64",
"refreshablePDB" : false, "refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "081CDD8C63033C68E0639500000A7A09", "dbid" : "3793508688",
"conId" : "3", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkguca", "compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezoghgmh7a",
"resourceOCID" : "ocid1.pluggabledatabase.oc1.ap-osaka-1.anvwsljrssl65iqar7ii5kmp2bxfwc3e7t2hjgnaou5u6ipgt4pre6ppgvaq", "resourceID" : "3793508688",
"resourceType" : "PDB",
"parentResourceID" : "d2705e01-7891-4bf7-8e91-5f01988a5a64"
},




Database Home 
dbaascli dbhome getDatabases

"tdeDetails" : {
"tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "AUWRZPDD2U/Iv3TnUlZjty8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"pdbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "openMode" : "READ_WRITE", "restricted" : false
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "openMode" : "READ_WRITE", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB19_PDB1.paas.oracle.com",
"connectString" : "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB19_PDB1.paas.oracle.com", "tcpsConnectStrings" : [ "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:2484/DB19_PDB1.paas.oracle.com" ]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
},
"messages" : [ ]
},



Database Home
dbaascli dbhome getDatabases

"DBFDSI" : {
"dbSyncTime" : 1700475789354,
"createTime" : 1697777238000,
"updateTime" : 0, "dbName" : "DBFDSI",
"dbUniqueName" : "DBFDSI_phh_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 3353687590,
"cpuCount" : 4, "sgaTarget" : "3808MB",
"pgaAggregateTarget" : "2500MB", "dbSize" : "55GB",
"dbUsedSize" : "12GB", "totalFraSize" : "1191GB", "fraSizeUsed" : "20GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : true, "patchVersion" : "19.20.0.0.0", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkguca", "compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezoghgmh7a",

Database Home 
dbaascli dbhome getDatabases

"resourceOCID" : "ocid1.database.oc1.ap-osaka-1.anvwsljrssl65iqa2tavuxqsonfs432lnl5dpycn7o4y3v5uxfddwjjvlg3q", "resourceID" : "2b67088f-a84c-4b70-a2bc-9650d128fa97",
"resourceType" : "CDB", "parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "ASMotBwDek/vvwNK44p4rhoAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "instanceName" : "DBFDSI1", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "instanceName" : "DBFDSI2", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
}
},


Database Home 
dbaascli dbhome getDatabases

"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "3217098636",
"cdbId" : "2b67088f-a84c-4b70-a2bc-9650d128fa97", "refreshablePDB" : false,
"refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "081FB65CDB86887CE0639500000ABAD4", "dbid" : "3217098636",
"conId" : "3", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkguca", "compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezoghgmh7a",
"resourceOCID" : "ocid1.pluggabledatabase.oc1.ap-osaka-1.anvwsljrssl65iqay24yxzmv7szvwdkutzl2yfvv37pss4iagd5vhrebl3mq", "resourceID" : "3217098636",
"resourceType" : "PDB",
"parentResourceID" : "2b67088f-a84c-4b70-a2bc-9650d128fa97"
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "ARbww5QrCU8bv8x9UaBu1H0AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},






Database Home 
dbaascli dbhome getDatabases

"pdbNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "openMode" : "READ_WRITE", "restricted" : false
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "openMode" : "READ_WRITE", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DBFDSI_PDB1.paas.oracle.com",
"connectString" : "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:1521/DBFDSI_PDB1.paas.oracle.com", "tcpsConnectStrings" : [ "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:2484/DBFDSI_PDB1.paas.oracle.com" ]
}, {
"serviceName" : "PDB1_dg",
"connectString" : "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:1521/PDB1_dg", "tcpsConnectStrings" : [ "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:2484/PDB1_dg" ]
}, {
"serviceName" : "PDB1_dg_ro",
"connectString" : "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:1521/PDB1_dg_ro", "tcpsConnectStrings" : [ "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:2484/PDB1_dg_ro" ]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
},
"messages" : [ ]
}
}
dbaascli execution completed



Database Home 

dbaascli dbhome getDatabases











 

nonCDB    Oracle  Database
dbaascli database create --createAsCDB false


 
[root@orcl0322-61tsm1 ~]# dbaascli database create --dbname dbcli02 -
-oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_6 --createAsCDB false
DBAAS CLI version 22.1.1.1.0
Executing command database create --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_6 --createAsCDB false Job id: 9a721027-0385-406f-bbc5-16f0fca121cf
Enter SYS_PASSWORD:

Enter SYS_PASSWORD (reconfirmation):

Enter TDE_PASSWORD:

Enter TDE_PASSWORD (reconfirmation):

Loading PILOT... Enter SYS_PASSWORD
***********
Enter SYS_PASSWORD (reconfirmation):
**********
Enter TDE_PASSWORD
**********
Enter TDE_PASSWORD (reconfirmation):
***********
Session ID of the current execution is: 37 Log file location:
/var/opt/oracle/log/dbcli02/database/create/pilot_2022-03-25_05-50-
00-AM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
 
-----------------
Running Default_value_initialization job Completed Default_value_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job
-----------------
Running Validate_cpu_availability job Completed Validate_cpu_availability job
-----------------
Running Validate_asm_availability job Completed Validate_asm_availability job

Running Validate_disk_space_availability job Completed Validate_disk_space_availability job
-----------------
Running validate_users_umask job Completed validate_users_umask job
-----------------
Running Validate_huge_pages_availability job Completed Validate_huge_pages_availability job
-----------------
Running Validate_hostname_domain job Completed Validate_hostname_domain job
-----------------
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job
-----------------
Running DB_creation_acquire_lock job Completed DB_creation_acquire_lock job

 

nonCDB  の  Oracle  Database
dbaascli database create --createAsCDB false

 


-----------------
Running Setup_acfs_volumes job Completed Setup_acfs_volumes job
-----------------
Running Setup_db_folders job Completed Setup_db_folders job
-----------------
Running Check_and_configure_huge_pages job Completed Check_and_configure_huge_pages job
-----------------
Running DB_creation job Completed DB_creation job
-----------------
Running DB_creation_release_lock job Completed DB_creation_release_lock job
-----------------
Running Load_db_details job Completed Load_db_details job
-----------------
Running Populate_creg job Completed Populate_creg job
-----------------
Running Register_ocids job
Skipping. Job is detected as not applicable.
-----------------
Running Create_users_tablespace job Skipping. Job is detected as not applicable.
-----------------
 

Running Configure_pdb_service job
Skipping. Job is detected as not applicable.
-----------------
Running Set_pdb_admin_user_profile job Skipping. Job is detected as not applicable.
-----------------
Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.
-----------------
Running Configure_flashback job Completed Configure_flashback job
-----------------
Running Configure_undo_retention job Completed Configure_undo_retention job
-----------------
Running Update_cloud_service_recommended_config_parameters job Completed Update_cloud_service_recommended_config_parameters job
-----------------
Running Update_distributed_lock_timeout job Completed Update_distributed_lock_timeout job
-----------------
Running Configure_archiving job Completed Configure_archiving job
-----------------
Running Configure_huge_pages job Completed Configure_huge_pages job
-----------------
Running Set_credentials job Completed Set_credentials job
<>
 

65	varchar2
 

nonCDB  の  Oracle  Databaseを作成する
dbaascli database create --createAsCDB false

 

<続き>
-----------------
Running Update_dba_directories job Completed Update_dba_directories job
-----------------
Running Set_cluster_interconnects job Completed Set_cluster_interconnects job
-----------------
Running Create_db_secure_profile job Completed Create_db_secure_profile job
-----------------
Running Set_utc_timezone job Completed Set_utc_timezone job
-----------------
Running Run_dst_post_installs job Completed Run_dst_post_installs job
-----------------
Running Enable_auditing job Completed Enable_auditing job
-----------------
Running Apply_security_measures job Completed Apply_security_measures job
-----------------
Running Set_listener_init_params job Completed Set_listener_init_params job
-----------------
Running Update_db_wallet job Completed Update_db_wallet job
 

Running Add_oratab_entry job Completed Add_oratab_entry job
-----------------
Running Configure_sqlnet_ora job Completed Configure_sqlnet_ora job
-----------------
Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job
-----------------
Running Enable_fips job Completed Enable_fips job
-----------------
Running DB_backup_assistant job Completed DB_backup_assistant job
-----------------
Running Restart_database job Completed Restart_database job
-----------------
Running Create_db_login_environment_file job Completed Create_db_login_environment_file job
-----------------
Running Generate_dbsystem_details job Completed Generate_dbsystem_details job
-----------------
Running Cleanup job Completed Cleanup job dbaascli execution completed
 

 
 

nonCDB  の  Oracle  Database
SQL> show con_name  non CDB が作成されたことを確認
[oracle@orcl0322-61tsm1 ~]$ . dbcli02.env

[oracle@orcl0322-61tsm1 ~]$ env|grep ORACLE ORACLE_UNQNAME=dbcli02
ORACLE_SID=dbcli021 ORACLE_BASE=/u02/app/oracle
ORACLE_HOSTNAME=orcl0322-61tsm1.sub07160524340.testvcn.oraclevcn.com ORACLE_HOME=/u02/app/oracle/product/19.0.0.0/dbhome_6

[oracle@orcl0322-61tsm1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Fri Mar 25 06:31:07 2022
Version 19.11.0.0.0

Copyright (c) 1982, 2020, Oracle. All rights reserved.


Connected to:
Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production Version 19.11.0.0.0

SQL> show con_name CON_NAME
dbcli02
SQL>




 
nonCDB のOCI
 


 

Database  convertToPDB  コマンド⼀覧
dbaascli database convertToPDB --help

[root@orcl0322-61tsm1 ~]# dbaascli database convertToPDB --help
DBAAS CLI version 22.1.1.1.0
Executing command database convertToPDB --help
database convertToPDB - to convert given non-CDB database to PDB.

Usage: dbaascli database convertToPDB --dbname  [--resume [--sessionID ]] [--executePrereqs]
{
[--copyDatafiles]
| [--backupPrepared]
}
[--cdbName ] [--targetPDBName ] [--waitForCompletion ]

 







PDB.]
 
Where:
--dbname - Oracle database name.
[--resume - To resume the previous execution]
[--sessionID - to resume a specific session id.]
[--executePrereqs - to execute the Pre-Conversion checks only. ] [--copyDatafiles | --backupPrepared]
[--copyDatafiles - to create a new copy of the datafiles instead of using the ones from the source database.]
[--backupPrepared - flag to acknowledge that a proper database backup is in place for the non CDB prior to performing the conversion to

[--cdbName - to specify the name of the target CDB in which the PDB will be created. If the CDB does not exist, then it will be created in
 
the same Oracle home as the source non CDB. ]
[--targetPDBName - to specify the name of the PDB that will be created as part of the operation. ] [--waitForCompletion - Specify false to run the operation in background. Valid values : true|false.]



 

nonCDB  CDB
dbaascli database convertToPDB --precheck


 
[root@orcl0322-61tsm1 ~]# dbaascli database convertToPDB --dbname dbcli02 --precheck
DBAAS CLI version 22.1.1.1.0
Executing command database convertToPDB --precheck Job id: 7f09a238-51de-47db-a960-31c8cb834e45 Loading PILOT...
Session ID of the current execution is: 40 Log file location:
/var/opt/oracle/log/dbcli02/database/convertToPDB/pilot_2022-03- 25_06-32-46-AM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Validate_source_db_open_state job Completed Validate_source_db_open_state job
-----------------
Running Validate_source_db_database_type job Completed Validate_source_db_database_type job
-----------------
Running Validate_source_db_version job Completed Validate_source_db_version job
-----------------
Running Validate_rdbms_conversion_packages job Completed Validate_rdbms_conversion_packages job
-----------------
Running Validate_source_db_database_role job Completed Validate_source_db_database_role job
-----------------
 
Running Validate_source_db_tde_configuration job Completed Validate_source_db_tde_configuration job
-----------------
Running Validate_source_db_credentials job Completed Validate_source_db_credentials job
-----------------
Running Validate_target_pdb_name job Completed Validate_target_pdb_name job
-----------------
Running Validate_dataguard_configuration job Completed Validate_dataguard_configuration job
-----------------
Running Validate_backup_confirmation job Execution of Validate_backup_confirmation failed
[FATAL] [DBAAS-70324] The following non container database cannot be converted to pluggable database without RMAN backup confirmation: dbcli02.
CAUSE: The requested operation will modify the original data files.
Therefore it is required to confirm that there is a RMAN database backup in place.
ACTION: If the required database RMAN based backup is in place, retry the operation with the flag --backupPrepared to confirm. Or specify the --copyDatafiles flag to convert the database using a copy of the original data files.
↑RMANバ

******** PLUGIN EXECUTION FAILED ******** Executing jobs which need to be run always... Completed execution.
 


 

nonCDB を CDB (--backupPrepared付)
dbaascli database convertToPDB --precheck


 
[root@orcl0322-61tsm1 ~]# dbaascli database convertToPDB --dbname dbcli02 --backupPrepared --precheck
DBAAS CLI version 22.1.1.1.0
Executing command database convertToPDB --backupPrepared --precheck Job id: dea58be4-24e3-4988-8d3b-b2cbddc8d82d
Loading PILOT...
Session ID of the current execution is: 42 Log file location:
/var/opt/oracle/log/dbcli02/database/convertToPDB/pilot_2022-03- 25_06-59-18-AM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Validate_source_db_open_state job Completed Validate_source_db_open_state job
-----------------
Running Validate_source_db_database_type job Completed Validate_source_db_database_type job
 
Running Validate_source_db_tde_configuration job Completed Validate_source_db_tde_configuration job
-----------------
Running Validate_source_db_credentials job Completed Validate_source_db_credentials job
-----------------
Running Validate_target_pdb_name job Completed Validate_target_pdb_name job
-----------------
Running Validate_dataguard_configuration job Completed Validate_dataguard_configuration job
-----------------
Running Validate_backup_confirmation job Completed Validate_backup_confirmation job
-----------------
Running Validate_new_cdb_creation job Completed Validate_new_cdb_creation job dbaascli execution completed
 

 
Running Validate_source_db_version job Completed Validate_source_db_version job

Running Validate_rdbms_conversion_packages job Completed Validate_rdbms_conversion_packages job

Running Validate_source_db_database_role job Completed Validate_source_db_database_role job




 

nonCDB の Oracle Database 
dbaascli database convertToPDB


 
[root@orcl0322-61tsm1 ~]# dbaascli database convertToPDB --dbname dbcli02 --backupPrepared
DBAAS CLI version 22.1.1.1.0
Executing command database convertToPDB --backupPrepared Job id: 003bbec9-3f00-4db8-b593-65298fa75d0a
Loading PILOT...
Session ID of the current execution is: 44 Log file location:
/var/opt/oracle/log/dbcli02/database/convertToPDB/pilot_2022-03- 25_07-10-35-AM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Validate_source_db_open_state job Completed Validate_source_db_open_state job
-----------------
Running Validate_source_db_database_type job Completed Validate_source_db_database_type job
-----------------
Running Validate_source_db_version job Completed Validate_source_db_version job
-----------------
Running Validate_rdbms_conversion_packages job Completed Validate_rdbms_conversion_packages job
-----------------
Running Validate_source_db_database_role job Completed Validate_source_db_database_role job
 
-----------------
Running Validate_source_db_tde_configuration job Completed Validate_source_db_tde_configuration job
-----------------
Running Validate_source_db_credentials job Completed Validate_source_db_credentials job
-----------------
Running Validate_target_pdb_name job Completed Validate_target_pdb_name job
-----------------
Running Validate_dataguard_configuration job Completed Validate_dataguard_configuration job
-----------------
Running Validate_backup_confirmation job Completed Validate_backup_confirmation job
-----------------
Running Validate_new_cdb_creation job Completed Validate_new_cdb_creation job
-----------------
Running Acquire_source_db_lock job Completed Acquire_source_db_lock job
-----------------
Running Drop_dbaas_profile job Completed Drop_dbaas_profile job
-----------------
Running Create_new_cdb job Completed Create_new_cdb job
-----------------

 

nonCDB の Oracle Database
dbaascli database convertToPDB

 


Running Export_source_db_tde_keys job Completed Export_source_db_tde_keys job
-----------------
Running Import_tde_keys_into_target_cdb job Completed Import_tde_keys_into_target_cdb job
-----------------
Running Acquire_target_cdb_lock job Completed Acquire_target_cdb_lock job
-----------------
Running Purge_source_db_recycle_bin job Completed Purge_source_db_recycle_bin job
-----------------
Running Start_source_db_in_read_only job Completed Start_source_db_in_read_only job
-----------------
Running Generate_source_db_metadata_file job Completed Generate_source_db_metadata_file job
-----------------
Running Verify_source_db_plug_compatibility job Completed Verify_source_db_plug_compatibility job
-----------------
Running Shutdown_source_db job Completed Shutdown_source_db job
-----------------
Running Create_new_pdb job Completed Create_new_pdb job
-----------------
 

Running Execute_source_db_conversion_script job Completed Execute_source_db_conversion_script job
-----------------
Running Open_pdb job Completed Open_pdb job
-----------------
Running Verify_pdb_plug_in_violations job Completed Verify_pdb_plug_in_violations job
-----------------
Running Import_tde_keys_into_new_pdb job Completed Import_tde_keys_into_new_pdb job
-----------------
Running Bounce_pdb job Completed Bounce_pdb job
-----------------
Running Activate_tde_configuration_in_pdb job Completed Activate_tde_configuration_in_pdb job
-----------------
Running Verify_pdb_violations_post_tde_activation job Completed Verify_pdb_violations_post_tde_activation job
-----------------
Running Bounce_pdb_post_tde_activation job Completed Bounce_pdb_post_tde_activation job
-----------------
Running Release_target_cdb_lock job Completed Release_target_cdb_lock job
-----------------
<>
 



nonCDB の Oracle Database を CDB 
dbaascli database convertToPDB


Running Release_source_db_lock job Completed Release_source_db_lock job

Running Configure_pdb_open_state job Completed Configure_pdb_open_state job

Running Configure_pdb_service job Completed Configure_pdb_service job

Running Configure_tnsnames_for_pdb job Completed Configure_tnsnames_for_pdb job

Running Update_cloud_registry_for_pdb job Completed Update_cloud_registry_for_pdb job

Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed



 
CDB  


 
CDB  
 

Database  
dbaascli database create ----executePrereqs yes

 
[root@orakawa-vgfvk1 ~]# dbaascli database create --dbname dbcli01 -- oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_1 --dbSID dbclisid
--dbNCharset UTF8 --dbTerritory JAPAN --dbLanguage JAPANESE -- dbUniqueName dbcli01uniq --dbCharset JA16SJISTILDE --sgaSizeInMB 2000
--pdbName dbcli01pdb01 --pgaSizeInMB 2000 --executePrereqs yes
DBAAS CLI version 22.1.1.1.0
Executing command database create --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_1 --dbSID dbclisid -- dbNCharset UTF8 --dbTerritory JAPAN --dbLanguage JAPANESE -- dbUniqueName dbcli01uniq --dbCharset JA16SJISTILDE --sgaSizeInMB 2000
--pdbName dbcli01pdb01 --pgaSizeInMB 2000 --executePrereqs yes Job id: 21ee5ded-be08-4668-87dc-8285d048f9e6
Enter SYS_PASSWORD:

Enter SYS_PASSWORD (reconfirmation): Enter TDE_PASSWORD:
Enter TDE_PASSWORD (reconfirmation):

Loading PILOT... Enter SYS_PASSWORD
*************
Enter SYS_PASSWORD (reconfirmation):
************* Enter TDE_PASSWORD
**********
Enter TDE_PASSWORD (reconfirmation):
***********
 
Session ID of the current execution is: 6 Log file location:
/var/opt/oracle/log/dbcli01/database/create/pilot_2022-03-28_09-04- 11-AM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Default_value_initialization job Completed Default_value_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job

Running Validate_cpu_availability job Completed Validate_cpu_availability job
-----------------
Running Validate_asm_availability job Completed Validate_asm_availability job

Running Validate_disk_space_availability job Completed Validate_disk_space_availability job
-----------------
Running validate_users_umask job Completed validate_users_umask job
-----------------
Running Validate_huge_pages_availability job Completed Validate_huge_pages_availability job
-----------------
<>
 


Database  
dbaascli database create --パラメータ --executePrereqs yes

 
<続き>
Running Validate_hostname_domain job Completed Validate_hostname_domain job
 
-----------------
Running Register_ocids job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job
 
Running Create_users_tablespace job Skipping. Job is detected as not applicable.
 

 	 

 
Running DB_creation_acquire_lock job Skipping. Job is detected as not applicable.
 
Running Configure_pdb_service job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Setup_acfs_volumes job
Skipping. Job is detected as not applicable.
 
Running Set_pdb_admin_user_profile job Skipping. Job is detected as not applicable.
 

 	 

 
Running Setup_db_folders job
Skipping. Job is detected as not applicable.
 
Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Check_and_configure_huge_pages job Skipping. Job is detected as not applicable.
 
Running Configure_flashback job
Skipping. Job is detected as not applicable.
 

 	 

 
Running DB_creation job
Skipping. Job is detected as not applicable.
 
Running Configure_undo_retention job Skipping. Job is detected as not applicable.
 

 	 

 
Running DB_creation_release_lock job Skipping. Job is detected as not applicable.
 
Running Update_cloud_service_recommended_config_parameters job Skipping. Job is detected as not applicable.
 

 	 

 
Running Load_db_details job
Skipping. Job is detected as not applicable.
 
Running Update_distributed_lock_timeout job Skipping. Job is detected as not applicable.
 

 	 

 
Running Populate_creg job
Skipping. Job is detected as not applicable.
 
Running Configure_archiving job
Skipping. Job is detected as not applicable.
<>
 

78	varchar2
 

Database 
dbaascli database create -- --executePrereqs yes

 

-----------------
Running Configure_huge_pages job
Skipping. Job is detected as not applicable.
-----------------
Running Set_credentials job
Skipping. Job is detected as not applicable.
-----------------
Running Update_dba_directories job
Skipping. Job is detected as not applicable.
-----------------
Running Set_cluster_interconnects job Skipping. Job is detected as not applicable.
-----------------
Running Create_db_secure_profile job Skipping. Job is detected as not applicable.
-----------------
Running Set_utc_timezone job
Skipping. Job is detected as not applicable.
-----------------
Running Run_dst_post_installs job
Skipping. Job is detected as not applicable.
-----------------
Running Enable_auditing job
Skipping. Job is detected as not applicable.
-----------------
Running Apply_security_measures job Skipping. Job is detected as not applicable.
-----------------
 
Running Set_listener_init_params job Skipping. Job is detected as not applicable.
-----------------
Running Update_db_wallet job
Skipping. Job is detected as not applicable.
-----------------
Running Add_oratab_entry job
Skipping. Job is detected as not applicable.
-----------------
Running Configure_sqlnet_ora job
Skipping. Job is detected as not applicable.
-----------------
Running Configure_tnsnames_ora job
Skipping. Job is detected as not applicable.
-----------------
Running Enable_fips job
Skipping. Job is detected as not applicable.
-----------------
Running DB_backup_assistant job
Skipping. Job is detected as not applicable.
-----------------
Running Restart_database job
Skipping. Job is detected as not applicable.
-----------------
Running Create_db_login_environment_file job Skipping. Job is detected as not applicable.
-----------------
Running Generate_dbsystem_details job Skipping. Job is detected as not applicable.
 

 

 

79	varchar2
 
Running Cleanup job
Skipping. Job is detected as not applicable. dbaascli execution completed
 


Database  の作成(パラメーター指定)
dbaascli database create --パラメーター

 
[root@orakawa-vgfvk1 ~]# dbaascli database create --dbname dbcli01 -- oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_1 --dbSID dbclisid
--dbNCharset UTF8 --dbTerritory JAPAN --dbLanguage JAPANESE -- dbUniqueName dbcli01uniq --dbCharset JA16SJISTILDE --sgaSizeInMB 2000
--pdbName dbcli01pdb01 --pgaSizeInMB 2000
DBAAS CLI version 22.1.1.1.0
Executing command database create --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_1 --dbSID dbclisid -- dbNCharset UTF8 --dbTerritory JAPAN --dbLanguage JAPANESE -- dbUniqueName dbcli01uniq --dbCharset JA16SJISTILDE --sgaSizeInMB 2000
--pdbName dbcli01pdb01 --pgaSizeInMB 2000 Job id: dd17a9d8-5422-44a0-a963-910d30f37e93 Enter SYS_PASSWORD:

Enter SYS_PASSWORD (reconfirmation): Enter TDE_PASSWORD:
Enter TDE_PASSWORD (reconfirmation):

Loading PILOT... Enter SYS_PASSWORD
**************
Enter SYS_PASSWORD (reconfirmation):
************
Enter TDE_PASSWORD
************
Enter TDE_PASSWORD (reconfirmation):
************
 
Session ID of the current execution is: 7 Log file location:
/var/opt/oracle/log/dbcli01/database/create/pilot_2022-03-28_09-11- 23-AM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Default_value_initialization job Completed Default_value_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job

Running Validate_cpu_availability job Completed Validate_cpu_availability job
-----------------
Running Validate_asm_availability job Completed Validate_asm_availability job

Running Validate_disk_space_availability job Completed Validate_disk_space_availability job
-----------------
Running validate_users_umask job Completed validate_users_umask job
-----------------
Running Validate_huge_pages_availability job Completed Validate_huge_pages_availability job
-----------------
Running Validate_hostname_domain job Completed Validate_hostname_domain job



Database  
dbaascli database create --パラメーター

 
<続き>
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job
-----------------
Running DB_creation_acquire_lock job Completed DB_creation_acquire_lock job
-----------------
Running Setup_acfs_volumes job Completed Setup_acfs_volumes job
-----------------
Running Setup_db_folders job Completed Setup_db_folders job
-----------------
Running Check_and_configure_huge_pages job Completed Check_and_configure_huge_pages job
-----------------
Running DB_creation job Completed DB_creation job
-----------------
Running DB_creation_release_lock job Completed DB_creation_release_lock job
-----------------
Running Load_db_details job Completed Load_db_details job
-----------------
Running Populate_creg job Completed Populate_creg job
-----------------
Running Register_ocids job
Skipping. Job is detected as not applicable.
-----------------
 
Running Update_dba_directories job Completed Update_dba_directories job
-----------------
Running Set_cluster_interconnects job Completed Set_cluster_interconnects job
-----------------
Running Create_db_secure_profile job Completed Create_db_secure_profile job
-----------------
Running Set_utc_timezone job Completed Set_utc_timezone job
-----------------
Running Run_dst_post_installs job Completed Run_dst_post_installs job
-----------------
Running Enable_auditing job Completed Enable_auditing job
-----------------
Running Apply_security_measures job Completed Apply_security_measures job
-----------------
Running Set_listener_init_params job Completed Set_listener_init_params job
-----------------
Running Update_db_wallet job Completed Update_db_wallet job
-----------------
Running Add_oratab_entry job Completed Add_oratab_entry job
-----------------
<>
 

81	varchar2
 

Database  の作成(パラメーター指定)
dbaascli database create --パラメーター
<続き>
Running Configure_sqlnet_ora job Completed Configure_sqlnet_ora job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job

Running Enable_fips job Completed Enable_fips job

Running DB_backup_assistant job Completed DB_backup_assistant job

Running Restart_database job Completed Restart_database job

Running Create_db_login_environment_file job Completed Create_db_login_environment_file job

Running Generate_dbsystem_details job Completed Generate_dbsystem_details job

Running Cleanup job Completed Cleanup job dbaascli execution completed


 

Database  


dbca 

[root@ecc2c1n1 ~]# less /var/opt/oracle/log/dbcli01/database/create/pilot_2022-03-28_09-11-23-AM

INFO: [2022-03-28 09:11:44.459 JST][pool-176-thread-1][DefaultCommandExecutor$2.call:284] Command constructed for node (localnode):/usr/bin/su oracle -c 'export LC_ALL=en_US.UTF-8;export TNS_ADMIN=/u02/app/oracle/product/19.0.0.0/dbhome_1/network/admin/dbcli01;export ORACLE_HOME=/u02/app/oracle/product/19.0.0.0/dbhome_1;/var/opt/oracle/dbaastools/dbaasca/bin/dbca -silent -oui_internal -createDatabase - databaseConfigType RAC -templateName /u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed.dbc -datafileJarLocation
/u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed.dfb -pdbSeedMetadataFile
/u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed_pdbseed.xml -pdbSeedBackUpfile
/u02/app/oracle/product/19.0.0.0/dbhome_1/assistants/dbca/templates/exa_seed_pdbseed.dfb -gdbName dbcli01.sub03230643360.orakawavcn.oraclevcn.com
-sid dbclisid -createAsContainerDatabase true -numberOfPdbs 1 -pdbName dbcli01pdb01 -pdbAdminUserName admin -honorNodeNumberForInstance - storageType ASM -datafileDestination +DATAC1 -recoveryAreaDestination +RECOC1 -recoveryAreaSize 307200 -redoLogFileDestination +DATAC1 - numberOfRedoLogsPerInstance 4 -redoLogFileSize 4000 -useOMF true -enableArchive true -tempFileProperties 1024MB:16GB:512GB -pdbTempFileProperties 1024MB:16GB:UNLIMITED -pdbTablespaceProperties USERS:1024MB:16GB:UNLIMITED -useBigFileForTablespace true -adminManaged -nodelist orakawa- vgfvk1,orakawa-vgfvk2 -characterSet JA16SJISTILDE -forceInternalAlterCharacterSet -nationalCharacterSet UTF8 -configureTDE true -tdeWalletRoot
/var/opt/oracle/dbaas_acfs/dbcli01/wallet_root -encryptTablespaces ALL -initParams '"'"'nls_territory=JAPAN,db_create_online_log_dest_1=+DATAC1,os_authent_prefix="",db_name=dbcli01,pga_aggregate_target=2000m,nls_language=JAPANESE
,sga_target=2000m,control_management_pack_access=DIAGNOSTIC+TUNING,db_domain=sub03230643360.orakawavcn.oraclevcn.com,enable_ddl_logging=TRUE,inmem ory_size=400m,db_unique_name=dbcli01uniq'"'"' -skipPasswordComplexityCheck false -checkOnly -J-Dapplication.exceptions.severity=DBT- 06012:WARNING,DBT-06604:WARNING -J-Doracle.assistants.dbca.useStandardLogLocation=true -jreLoc /usr/java/jdk1.8.0_311-amd64/jre'



 

Database  
uniquname, SID, NLS
[oracle@orakawa-vgfvk1 ~]$ . dbcli01.env [oracle@orakawa-vgfvk1 ~]$ env | grep ORA ORACLE_UNQNAME=dbcli01uniq ORACLE_SID=dbclisid1 ORACLE_BASE=/u02/app/oracle
ORACLE_HOSTNAME=orakawa-vgfvk1.sub03230643360.orakawavcn.oraclevcn.com ORACLE_HOME=/u02/app/oracle/product/19.0.0.0/dbhome_1
[oracle@orakawa-vgfvk1 ~]$ export NLS_LANG=Japanese_Japan.AL32UTF8 [oracle@orakawa-vgfvk1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on 月 3月 28 09:52:55 2022
Version 19.11.0.0.0

Copyright (c) 1982, 2020, Oracle. All rights reserved.

Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production Version 19.11.0.0.0

SQL> SELECT PARAMETER, VALUE
2	FROM NLS_DATABASE_PARAMETERS
3	WHERE PARAMETER IN ('NLS_CHARACTERSET', 'NLS_NCHAR_CHARACTERSET'); PARAMETER
VALUE

NLS_NCHAR_CHARACTERSET
UTF8

NLS_CHARACTERSET
JA16SJISTILDE

 

Database 

SQL> select * from v$nls_parameters;

PARAMETER		VALUE			CON_ID
NLS_LANGUAGE		JAPANESE			1
NLS_TERRITORY		JAPAN			1
NLS_CURRENCY		¥			1
NLS_ISO_CURRENCY		JAPAN			1
NLS_NUMERIC_CHARACTERS		.,			1
NLS_CALENDAR		GREGORIAN			1
NLS_DATE_FORMAT		RR-MM-DD			1
NLS_DATE_LANGUAGE		JAPANESE			1
NLS_CHARACTERSET		JA16SJISTILDE			1
NLS_SORT		BINARY			1
NLS_TIME_FORMAT		HH24:MI:SSXFF			1
NLS_TIMESTAMP_FORMAT		RR-MM-DD HH24:MI:SSXFF			1
NLS_TIME_TZ_FORMAT		HH24:MI:SSXFF TZR			1
NLS_TIMESTAMP_TZ_FORMAT		RR-MM-DD HH24:MI:SSXFF	TZR		1
NLS_DUAL_CURRENCY		¥			1
NLS_NCHAR_CHARACTERSET		UTF8			1
NLS_COMP		BINARY			1
NLS_LENGTH_SEMANTICS		BYTE			1
NLS_NCHAR_CONV_EXCP		FALSE			1
19行が選択されました。					



Database  の作成(パラメーター指定)
PDB作成、 PGA SGA
SQL> show pdbs

CON_ID CON_NAME	OPEN MODE RESTRICTED

2 PDB$SEED	READ ONLY NO
3 DBCLI01PDB01	READ WRITE NO

[root@orakawa-vgfvk1 ~]# dbaascli database list
DBAAS CLI version 22.1.1.1.0
Executing command database list Retrieving dbs..

Database List
1.DB Name=dbcli01 CPU=4
PGA=2 GB SGA=2 GB DATA=0 GB FRA=0 GB
Nodelist=orakawa-vgfvk1,orakawa-vgfvk2


Cluster Information Total CPU per Node=4
Total Memory per Node=1367 GB
Total Nodes=orakawa-vgfvk1,orakawa-vgfvk2






86	varchar2
 

Database  の作成(パラメーター指定)
※dbTerritory, dbLanguageが AMERICAになっている…

 
[root@orakawa-vgfvk1 ~]# dbaascli database getDetails --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command database getDetails
Job id: e3d753c9-3f66-44f7-b3e5-6cb6d92474bc
{
"id" : "79c3169c-f7e8-43b0-95db-ae884a85de37", "dbSyncTime" : 0,
"createTime" : 1648393200000,
"updateTime" : 0,
"dbName" : "dbcli01", "dbUniqueName" : "dbcli01uniq",
"dbDomain" : "sub03230643360.orakawavcn.oraclevcn.com", "dbId" : 3324078197,
"cpuCount" : 4,
"sgaTarget" : "2000MB", "pgaAggregateTarget" : "2000MB", "dbKmsKeyOcid" : null,
"isCDB" : true, "dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.11.0.0.0", "resourceOCIDSettings" : null, "dbCharacterSet" : {
"characterSet" : "JA16SJISTILDE", "nlsCharacterset" : "UTF8", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
 
"dbNodeLevelDetails" : { "orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "instanceName" : "dbclisid1", "version" : "19.11.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
},
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "instanceName" : "dbclisid2", "version" : "19.11.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
}
},
"pdbs" : { "DBCLI01PDB01" : {
"pdbName" : "DBCLI01PDB01", "pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null,
<>
 
},
87	varchar2
 

Database  の作成(パラメーター指定)
※dbTerritory, dbLanguageが AMERICAになっている…
<続き>
"pdbNodeLevelDetails" : { "orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com",
"connectString" : "orakawa-vgfvk-scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas.oracle.com"
} ]
}
},
"messages" : [ ]
}
dbaascli execution completed [root@orakawa-vgfvk1 ~]#




database  
dbaascli system getDatabases

[root@wasabi-isfff1 ~]# dbaascli system getDatabases --help
DBAAS CLI version 22.3.1.1.0
Executing command system getDatabases --help
system getDatabases - list details of all the databases.
Usage: dbaascli system getDatabases [--oracleHome ] Where:
[--oracleHome - Oracle home path. ]

[root@wasabi-isfff1 ~]#



dbaascli system getDatabases

[root@wasabi-isfff1 ~]# dbaascli system getDatabases
DBAAS CLI version 22.3.1.1.0
Executing command system getDatabases
Job id: 1f87b1dc-79bb-43fe-8f0e-e71485c13b0f
{
"DB1" : {
"id" : "134663e7-60b8-41f9-bfb8-f438f32eb072", "dbSyncTime" : 1665558623416,
"createTime" : 1664463600000,
"updateTime" : 0, "dbName" : "DB1",
"dbUniqueName" : "DB1_5jj_kix",
"dbDomain" : "sub07160524340.testvcn.oraclevcn.com", "dbId" : 1710651431,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "48GB",
"dbUsedSize" : "7GB", "totalFraSize" : "28896GB", "fraSizeUsed" : "15GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.9.0.0.0", "resourceOCIDSettings" : null, "dbCharacterSet" : {
"characterSet" : "AL32UTF8",
91	Co"pnylrsigChhta©ra2c0t2e4r,sOetra"cle: a"nAdL/o1r6iUtsTFa1ff6ili"a,tes, "dbTerritory" : "AMERICA",
 


dbaascli system getDatabases

 

[root@wasabi-isfff1 ~]# dbaascli system getDatabases --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_3
DBAAS CLI version 22.3.1.1.0
Executing command system getDatabases --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_3 Job id: 64a88d13-6ac5-4049-bd7d-1181a37293dc
{
"DB1" : {
"id" : "134663e7-60b8-41f9-bfb8-f438f32eb072", "dbSyncTime" : 1665634730252,
"createTime" : 1664463600000,
"updateTime" : 0, "dbName" : "DB1",
"dbUniqueName" : "DB1_5jj_kix",
"dbDomain" : "sub07160524340.testvcn.oraclevcn.com", "dbId" : 1710651431,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "48GB",
"dbUsedSize" : "7GB", "totalFraSize" : "28896GB", "fraSizeUsed" : "15GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE",
 


"dgEnabled" : false, "patchVersion" : "19.9.0.0.0", "resourceOCIDSettings" : null, "dbCharacterSet" : {
"characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "wasabi-isfff1" : {
"nodeName" : "wasabi-isfff1", "instanceName" : "DB11", "version" : "19.9.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_3", "status" : "OPEN"
},
"wasabi-isfff2" : {
"nodeName" : "wasabi-isfff2", "instanceName" : "DB12", "version" : "19.9.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_3", "status" : "OPEN"
}
},

 


92	varchar2
 

データベースの⼀覧
dbaascli system getDatabases


"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "3093976667",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "E9E467DD272E037BE0536900000AA583", "dbid" : "3093976667",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"wasabi-isfff2" : {
"nodeName" : "wasabi-isfff2", "openMode" : "READ_WRITE"
},
"wasabi-isfff1" : {
"nodeName" : "wasabi-isfff1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB1_PDB1.paas.oracle.com", "connectString" : "wasabi-isfff-
scan.sub07160524340.testvcn.oraclevcn.com:1521/DB1_PDB1.paas.oracle.c om"
} ],
"pdbSize" : "4GB", "pdbUsedSize" : "1GB"
}
},

}
 
2:02[4,]Oracle and/or its affiliates,
 

データベースの詳細確認
dbaascli database getDetails --help

[root@orakawa-vgfvk1 ~]# dbaascli database getDetails --help
DBAAS CLI version 22.1.1.1.0
Executing command database getDetails --help
database getDetails - display details about a specific database.
Usage: dbaascli database getDetails --dbname  Where:
--dbname - Oracle database name.


dbaascli database getDetails


 
[root@orakawa-vgfvk1 ~]# dbaascli database getDetails --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command database getDetails
Job id: be584b63-dfc5-4bcf-8683-165f20b8747f
{
"id" : "79c3169c-f7e8-43b0-95db-ae884a85de37",
"dbSyncTime" : 0,
"createTime" : 1648393200000,
"updateTime" : 0,
"dbName" : "dbcli01", "dbUniqueName" : "dbcli01uniq",
"dbDomain" : "sub03230643360.orakawavcn.oraclevcn.com", "dbId" : 3324078197,
"cpuCount" : 4, "sgaTarget" : "2000MB",
"pgaAggregateTarget" : "2000MB", "dbKmsKeyOcid" : null,
"isCDB" : true, "dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.11.0.0.0", "resourceOCIDSettings" : null, "dbCharacterSet" : {
"characterSet" : "JA16SJISTILDE", "nlsCharacterset" : "UTF8", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN“
 
"dbNodeLevelDetails" : { "orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "instanceName" : "dbclisid1", "version" : "19.11.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
},
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "instanceName" : "dbclisid2", "version" : "19.11.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "status" : "OPEN"
}
},


 
},



dbaascli database getDetails


"pdbs" : { "DBCLI01PDB01" : {
"pdbName" : "DBCLI01PDB01",
"pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
 

"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com", "connectString" : "orakawa-vgfvk-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb0 1.paas.oracle.com"
} ]
}
},
"messages" : [ ]
}
dbaascli execution completed
 
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},


Database Home 
dbaascli system getDBHomes


 
[root@saburo-5puyv1 ~]# dbaascli system getDBHomes
DBAAS CLI version 24.1.2.0.0
Executing command system getDBHomes
Job id: 10ca839d-1d0e-4265-984e-0487d9cf0d97
Session log: /var/opt/oracle/log/system/getDBHomes/dbaastools_2024- 03-14_05-54-56-PM_165733.log
{
"OraHome1" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "homeName" : "OraHome1",
"version" : "19.22.0.0.0",
"createTime" : 1710147213945,
"updateTime" : 1710317105918, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "version" : "19.22.0.0.0",
"patches" : [ "34697081", "35692839", "35239280", "35926646",
"35949090", "35967489", "35943157" ]
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "version" : "19.22.0.0.0",
"patches" : [ "34697081", "35692839", "35239280", "35926646",
"35949090", "35967489", "35943157" ]
}
},
"messages" : [ ]
 
"OraHome2" : {
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_1", "homeName" : "OraHome2",
"version" : "11.2.0.4.231017",
"createTime" : 1710314743029,
"updateTime" : 1710314743029, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "version" : "11.2.0.4.231017",
"patches" : [ "25139545", "33613829", "33991024", "35638387",
"22291453", "30432076", "31335037", "32327201", "32558369",
"34006614", "34533061", "34698179", "35099667", "35220732",
"35239280", "35313335", "35685663", "32224895", "22366322",
"31228670", "21289564", "35574089" ]
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "version" : "11.2.0.4.231017",
"patches" : [ "25139545", "33613829", "33991024", "35638387",
"22291453", "30432076", "31335037", "32327201", "32558369",
"34006614", "34533061", "34698179", "35099667", "35220732",
"35239280", "35313335", "35685663", "32224895", "22366322",
"31228670", "21289564", "35574089" ]
}
},
"messages" : [ ]
},
 
},


 

Database Home 
dbaascli system getDBHomes

"OraHome3" : {
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_2", "homeName" : "OraHome3",
"version" : "11.2.0.4.231017",
"createTime" : 1710394822227,
"updateTime" : 1710395608351, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : { "saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "version" : "11.2.0.4.231017",
"patches" : [ "25139545", "33613829", "33991024", "35638387", "22291453", "30432076", "31335037", "32327201", "32558369", "34006614",
"34533061", "34698179", "35099667", "35220732", "35239280", "35313335", "35685663", "32224895", "22366322", "31228670", "21289564", "35574089" ]
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "version" : "11.2.0.4.231017",
"patches" : [ "25139545", "33613829", "33991024", "35638387", "22291453", "30432076", "31335037", "32327201", "32558369", "34006614",
"34533061", "34698179", "35099667", "35220732", "35239280", "35313335", "35685663", "32224895", "22366322", "31228670", "21289564", "35574089" ]
}
},
"messages" : [ ]
}
}
dbaascli execution completed [root@saburo-5puyv1 ~]#




dbaascli database delete --help

[root@wasabi-isfff1 ~]# dbaascli database delete --help
DBAAS CLI version 22.3.1.1.0
Executing command database delete --help database delete - delete the given database.

Usage: dbaascli database delete --dbname  [--deleteArchiveLogs ] [--deleteBackups ] [--precheckOnly ] [-- waitForCompletion ] [--force] [--dbSID ] [--resume [--sessionID ]]

Where:
--dbname - Oracle database name.
[--deleteArchiveLogs - specify true or false to indicate database archive logs deletion. ] [--deleteBackups - specify true or false to indicate database backups deletion. ]
[--precheckOnly - specify yes to run only the prechecks for this operation. Valid values : yes|no ] [--waitForCompletion - specify false to run the operation in background. Valid values : true|false.] [--force - flag to force delete database.]
[--dbSID - specify database SID]
[--resume - to resume the previous execution]
[--sessionID - to resume a specific session id.] [root@wasabi-isfff1 ~]#



dbaascli database delete


 
[root@orcl0329-pfutx1 ~]# dbaascli database delete --dbName dbcli02
DBAAS CLI version 22.1.1.1.0
Executing command database delete --dbName dbcli02 Job id: 222c0750-f49e-4d97-aa23-5f85c9351115
Loading PILOT...
Session ID of the current execution is: 28 Log file location:
/var/opt/oracle/log/dbcli02/database/delete/pilot_2022-03-30_11-55- 01-PM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Validate_version job Completed Validate_version job
-----------------
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job
-----------------
Running DB_backup_assistant job
Skipping. Job is detected as not applicable.
-----------------
Running DB_deletion_acquire_lock job Completed DB_deletion_acquire_lock job
 
Running Clear_crontab_entries job Completed Clear_crontab_entries job
-----------------
Running Delete_db_network_directory job Completed Delete_db_network_directory job
-----------------
Running Clear_asm_entries job Completed Clear_asm_entries job
-----------------
Running DB_deletion_release_lock job Completed DB_deletion_release_lock job
-----------------
Running Delete_db_login_environment_file job Completed Delete_db_login_environment_file job
-----------------
Running Delete_creg_file job Completed Delete_creg_file job
-----------------
Running Delete_db_acfs_directory job Completed Delete_db_acfs_directory job
-----------------
Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed
 

 
Running DB_deletion job Completed DB_deletion job

Running Remove_oratab_entry job Completed Remove_oratab_entry job


dbaascli  
Databases ailed  Terminate 




dbaascli database deleteInstance --help

[root@taro-3nusm1 ~]# dbaascli database deleteinstance --help DBAAS CLI version 24.1.1.0.0
Executing command database deleteinstance --help
database deleteInstance - allows user to delete the database instance on the specified node.

Usage: dbaascli database deleteInstance --dbname  --node  [--continueOnUnreachableNode]
{
[--resume [--sessionID ]]
| [--revert [--sessionID ]]
}
[--okvServer  --okvAdminUserName  [--okvServerRestPort ]] [--okvServerRestPort ] [--okvWalletName ] [-- waitForCompletion ]

Where:
--dbname - Oracle database name.
--node - specifies the node name for database instance.
[--continueOnUnreachableNode - perform the operation even if the node is unreachable.] [--resume | --revert]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.] [--revert - to rollback the previous operation]
[--sessionID - to resume a specific session id.] [--okvServer - Specifies the Oracle Key Vault server]
--okvAdminUserName - Specifies the Oracle Key Vault admin user name
[--okvServerRestPort - Specifies the rest port number for Oracle Key Vault] [--okvServerRestPort - Specifies the rest port number for Oracle Key Vault]
[--okvWalletName - Specifies the Oracle Key Vault wallet name]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [root@taro-3nusm1 ~]#

103 varchar2

dbaascli database deleteInstance


[root@orcl-jyvid1 ~]# dbaascli database getdetails --dbname DB19c DBAAS CLI version 22.2.1.0.1
Executing command database getdetails
Job id: c31f0748-927d-4e1c-90f4-3ab5cddc9f30
{
"id" : "91e07074-c0e7-499c-9dce-f7a1b005dff2", "dbSyncTime" : 0,
"createTime" : 1652227200000,
"updateTime" : 0, "dbName" : "DB19c",
"dbUniqueName" : "DB19c_vxm_kix",
"dbDomain" : "sub07160524340.testvcn.oraclevcn.com", "dbId" : 2232397119,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "47GB",
"dbUsedSize" : "7GB", "totalFraSize" : "28912GB", "fraSizeUsed" : "15GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.13.0.0.0", "resourceOCIDSettings" : null,
 
 22.2.1.0.1 


"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "instanceName" : "DB19c1", "version" : "19.13.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
},
"orcl-jyvid2" : {
"nodeName" : "orcl-jyvid2", "instanceName" : "DB19c2", "version" : "19.13.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
}
},
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "2902028327",
"cpuCount" : null,
"storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DEB2908B77A2DE19E053CA00000A9EE5",
 

dbaascli database deleteInstance

"dbid" : "2902028327",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "openMode" : "READ_WRITE"
},
"orcl-jyvid2" : {
"nodeName" : "orcl-jyvid2", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB19c_PDB1.paas.oracle.com",
"connectString" : "orcl-jyvid-scan.sub07160524340.testvcn.oraclevcn.com:1521/DB19c_PDB1.paas.oracle.com"
} ],
"pdbSize" : "4GB", "pdbUsedSize" : "1GB"
}
},
"messages" : [ ]
}
dbaascli execution completed









 
 22.2.1.0.1 
dbaascli database deleteInstance
[root@orcl-jyvid1 ~]# dbaascli database deleteInstance --dbname DB19c --node orcl-jyvid1
DBAAS CLI version 22.2.1.0.1
Executing command database deleteInstance --node orcl-jyvid1 Job id: 357de19c-6e75-4f77-9fb8-997238e2f618
Loading PILOT...
Session ID of the current execution is: 17
Log file location: /var/opt/oracle/log/DB19c/database/deleteInstance/pilot_2022-05-11_12-58-24-AM

Running Plugin_initialization job Completed Plugin_initialization job

Running Validate_input job Execution of Validate_input failed
[FATAL] [DBAAS-70126] An instance cannot be deleted from the local node.
ACTION: Specify a different node.
******** PLUGIN EXECUTION FAILED ******** Executing jobs which need to be run always... Completed execution.
[FATAL] [DBAAS-60022] Command '/var/opt/oracle/dbaastools/pilot/bin/pilot -plugin delete_db_instance_cloud NODE_NAME="orcl-jyvid1" DB_NAME="DB19c"
-J-Doracle.install.commons.pilot.log.enablePID=true	-logLevel FINE -logDir /var/opt/oracle/log/DB19c/database/deleteInstance -silent	- checkpointDir /var/opt/oracle/log/pilot_checkpoints -jreLoc /usr/java/jdk1.8.0_311-amd64/jre ' execution has failed on nodes [localnode].
ACTION: Refer application log file for more information.
*MORE DETAILS*
Result of node:localnode
[Execution of Validate_input failed, [FATAL] [DBAAS-70126] An instance cannot be deleted from the local node.,	ACTION: Specify a different node., ******** PLUGIN EXECUTION FAILED ********, Executing jobs which need to be run always..., Completed execution.]
Exit code of the operation:255


 
 22.2.1.0.1 
dbaascli database deleteInstance(
[root@orcl-jyvid1 ~]# dbaascli database deleteInstance --dbname DB19c --node orcl-jyvid2
DBAAS CLI version 22.2.1.0.1
Executing command database deleteInstance --node orcl-jyvid2 Job id: 985eebdd-fea3-43ed-bf47-f02a1d53e820
Loading PILOT...
Session ID of the current execution is: 18
Log file location: /var/opt/oracle/log/DB19c/database/deleteInstance/pilot_2022-05-11_12-58-53-AM

Running Plugin_initialization job Completed Plugin_initialization job

Running Validate_input job Execution of Validate_input failed
[FATAL] [DBAAS-70127] The instance in node 'orcl-jyvid2' is a preferred instance for service 'DB19c_PDB1.paas.oracle.com'.
ACTION: Specify a different node.
******** PLUGIN EXECUTION FAILED ******** Executing jobs which need to be run always... Completed execution.
[FATAL] [DBAAS-60022] Command '/var/opt/oracle/dbaastools/pilot/bin/pilot -plugin delete_db_instance_cloud NODE_NAME="orcl-jyvid2" DB_NAME="DB19c"
-J-Doracle.install.commons.pilot.log.enablePID=true	-logLevel FINE -logDir /var/opt/oracle/log/DB19c/database/deleteInstance -silent	- checkpointDir /var/opt/oracle/log/pilot_checkpoints -jreLoc /usr/java/jdk1.8.0_311-amd64/jre ' execution has failed on nodes [localnode].
ACTION: Refer application log file for more information.
*MORE DETAILS*
Result of node:localnode
[Execution of Validate_input failed, [FATAL] [DBAAS-70127] The instance in node 'orcl-jyvid2' is a preferred instance for service 'DB19c_PDB1.paas.oracle.com'.,	ACTION: Specify a different node., ******** PLUGIN EXECUTION FAILED ********, Executing jobs which need to be run always..., Completed execution.]
Exit code of the operation:255



DB19c_PDB1.paas.oracle.com preferred



dbaascli database deleteInstance

[root@orcl-jyvid1 ~]# dbaascli database deleteInstance --dbname DB19c --node orcl-jyvid2
DBAAS CLI version 22.2.1.0.1
Executing command database deleteInstance --node orcl-jyvid2 Job id: b5070c29-5a56-4cc6-9484-95ccf096ffa6
Loading PILOT...
Session ID of the current execution is: 19
Log file location: /var/opt/oracle/log/DB19c/database/deleteInstance/pilot_2022-05-11_03-58-13-AM

Running Plugin_initialization job Completed Plugin_initialization job

Running Validate_input job Completed Validate_input job

Running Delete_db_instance job Completed Delete_db_instance job

Running Reload_db_details job Completed Reload_db_details job

Running Remove_backup_jobs job Completed Remove_backup_jobs job

Running Update_cloud_metadata job Completed Update_cloud_metadata job

Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed



108 varchar2
 

特定ノードのDBインスタンスを削除
dbaascli database deleteInstance
--該当サービスの優先インスタンスからノード2を除外した後、再度削除処理を実施
[root@orcl-jyvid1 ~]# dbaascli database deleteInstance --dbname DB19c --node orcl-jyvid2
DBAAS CLI version 22.2.1.0.1
Executing command database deleteInstance --node orcl-jyvid2 Job id: b5070c29-5a56-4cc6-9484-95ccf096ffa6
Loading PILOT...
Session ID of the current execution is: 19
Log file location: /var/opt/oracle/log/DB19c/database/deleteInstance/pilot_2022-05-11_03-58-13-AM

Running Plugin_initialization job Completed Plugin_initialization job

Running Validate_input job Completed Validate_input job

Running Delete_db_instance job Completed Delete_db_instance job

Running Reload_db_details job Completed Reload_db_details job

Running Remove_backup_jobs job Completed Remove_backup_jobs job

Running Update_cloud_metadata job Completed Update_cloud_metadata job

Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed

109 varchar2
 

dbaascli database deleteInstance

 


[root@orcl-jyvid1 ~]# dbaascli database getdetails --dbname DB19c
DBAAS CLI version 22.2.1.0.1
Executing command database getdetails
Job id: 3330b270-92d7-4c79-9d6b-7486695c415c
{
"id" : "91e07074-c0e7-499c-9dce-f7a1b005dff2", "dbSyncTime" : 0,
"createTime" : 1652227200000,
"updateTime" : 0, "dbName" : "DB19c",
"dbUniqueName" : "DB19c_vxm_kix",
"dbDomain" : "sub07160524340.testvcn.oraclevcn.com", "dbId" : 2232397119,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "29GB",
"dbUsedSize" : "7GB", "totalFraSize" : "28912GB", "fraSizeUsed" : "16GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.13.0.0.0", "resourceOCIDSettings" : null,
 

"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : {
"orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "instanceName" : "DB19c1", "version" : "19.13.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
}
},
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "2902028327",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DEB2908B77A2DE19E053CA00000A9EE5", "dbid" : "2902028327",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "openMode" : "READ_WRITE"
 


110 varchar2
 

特定ノードのDBインスタンスを削除
dbaascli database deleteInstance


}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB19c_PDB1.paas.oracle.com",
"connectString" : "orcl-jyvid-scan.sub07160524340.testvcn.oraclevcn.com:1521/DB19c_PDB1.paas.oracle.com"
} ],
"pdbSize" : "4GB", "pdbUsedSize" : "1GB"
}
},
"messages" : [ ]
}
dbaascli execution completed



















111 varchar2
 

特定ノードのDBインスタンスを削除
dbaascli database deleteInstance

--インスタンス削除後、OCIコンソールでは下記メッセージが表示される


112 varchar2
 

インスタンスの追加
dbaascli database addInstance


[root@vm01wasa-zb1hy1 ~]# dbaascli database addInstance --help
DBAAS CLI version 23.1.1.0.1
Executing command database addInstance --help
database addInstance - allows user to add the database instance on the specified node.

Usage: dbaascli database addInstance --dbname  --node  [--newNodeSID ]
{
[--resume [--sessionID ]]
| [--revert [--sessionID ]]
}

Where:
--dbname - Oracle database name.
--node - specifies the node name for database instance.
[--newNodeSID - SID for the instance to add in the new node. ] [--resume | --revert]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.] [--revert - to rollback the previous operation]
[--sessionID - to resume a specific session id.]

[root@vm01wasa-zb1hy1 ~]#









113 varchar2
 


データベースのduplicate
dbaascli database duplicate

[root@wasa-ycfpo1 ~]# dbaascli database duplicate --help DBAAS CLI version 24.1.1.0.0
Executing command database duplicate --help
database duplicate - create a new database from active database.

Usage: dbaascli database duplicate --dbName  --sourceDBConnectionString 
{
--oracleHome 
| --oracleHomeName 
}
[--dbSID ] [--dbUniqueName ] [--sgaSizeInMB ] [--pgaSizeInMB ] [--datafileDestination ] [-- fraDestination ] [--fraSizeInMB ] [--sourceDBTDEWalletLocation ] [--nodeList ]
{
[--resume [--sessionID ]]
| [--revert [--sessionID ]]
}
[--rmanParallelism ] [--rmanSectionSizeInGB ] [--tdeConfigMethod  [--kmsKeyOCID ]] [--sourceDBTdeConfigMethod
 [--sourceDBKmsKeyOCID ]] [--executePrereqs] [--waitForCompletion ] [--skipPDBs ]

Where:
--dbName - Oracle database name.	複製先のDB名(db_unique_name)
--sourceDBConnectionString - source database connection string in the format of :/.
--oracleHome | --oracleHomeName
--oracleHome - specifies Oracle home location	複製先のDBHOME(既存と同じだと既存DBHOME上に作成)
--oracleHomeName - specifies Oracle home name [--dbSID - specifies database SID]
[--dbUniqueName - specifies database unique name]
[--sgaSizeInMB - specifies sga_target value in mega byte unit]



duplicate
dbaascli database duplicate

[root@wasa-ycfpo1 ~]# dbaascli database duplicate --help DBAAS CLI version 24.1.1.0.0
続き
Where:
--dbName - Oracle database name.	複製先のDB名(db_unique_name)
--sourceDBConnectionString - source database connection string in the format of :/.
--oracleHome | --oracleHomeName
--oracleHome - specifies Oracle home location	複製先のDBHOME(既存と同じDBHOMEを指定すると、既存DBHOME上に作成)
--oracleHomeName - specifies Oracle home name [--dbSID - specifies database SID]
[--dbUniqueName - specifies database unique name]
[--sgaSizeInMB - specifies sga_target value in mega byte unit]
[--pgaSizeInMB - specifies pga_aggregate_target value in mega byte unit]
[--datafileDestination - specifies ASM disk group name to use for database datafiles]
[--fraDestination - specifies ASM disk group name to use for database fast recovery area] [--fraSizeInMB - specifies fast recovery area size value in mega byte unit]
[--sourceDBTDEWalletLocation - specifies location of source database TDE wallet on local file system which is copied from the source database node. ]
[--nodeList - specifies comma separated node list for database] [--resume | --revert]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.] [--revert - to rollback the previous operation]
[--sessionID - to resume a specific session id.] [--rmanParallelism - specifies parallelsim value]
[--rmanSectionSizeInGB - specifies RMAN section size in GB]
[--tdeConfigMethod - specifies TDE configuration method. Allowed values are FILE, KMS]
[--kmsKeyOCID - specifies KMS key OCID to use for TDE. This is applicable only if KMS is selected for TDE] [--sourceDBTdeConfigMethod - specifies source database TDE configuration method. Allowed values are FILE, KMS]
[--sourceDBKmsKeyOCID - specifies source database KMS key OCID to use for TDE. This is applicable only if KMS is selected for TDE] [--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
 
115
 
Copy[r-ig-hstk©ip2P0D2B4s, O-rascpleecainfdi/oersitscoamffmiliaatesse,parated source database PDB names which needs to be excluded for the duplicate database operation.
 
Example: pdb1,pdb2... ]
 
 

データベースのduplicate
dbaascli database duplicate --executePrereqs

[root@taro-3nusm1 ~]# dbaascli database duplicate --dbName DB0207 --oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_1 --sourceDBConnectionString taro-3nusm- scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0206_3cg_kix.sub04210756190.exavcn.oraclevcn.com --sourceDBTDEWalletLocation
/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde --sourceDBTdeConfigMethod FILE --tdeConfigMethod FILE --executePrereqs DBAAS CLI version 24.1.1.0.0
Executing command database duplicate --dbName DB0207 --oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_1 --sourceDBConnectionString taro-3nusm- scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0206_3cg_kix.sub04210756190.exavcn.oraclevcn.com --sourceDBTDEWalletLocation
/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde --sourceDBTdeConfigMethod FILE --tdeConfigMethod FILE --executePrereqs Job id: 15b17842-84d3-44fe-84c7-474f647c34fe
Session log: /var/opt/oracle/log/DB0207/database/duplicate/dbaastools_2024-02-19_10-34-49-AM_225678.log Enter Source DB SYS_PASSWORD:

Enter Source DB TDE_PASSWORD: Enter SYS_PASSWORD:
Enter SYS_PASSWORD (reconfirmation): Enter TDE_PASSWORD:
Enter TDE_PASSWORD (reconfirmation):

Loading PILOT... Enter SYS_PASSWORD
**********
Enter SYS_PASSWORD (reconfirmation):
************
Enter TDE_PASSWORD
***********


116 varchar2
 


データベースのduplicate
dbaascli database duplicate --executePrereqs

続き
Enter TDE_PASSWORD (reconfirmation):
************
Session ID of the current execution is: 710
Log file location: /var/opt/oracle/log/DB0207/database/duplicate/pilot_2024-02-19_10-36-11-AM_233687

Running Plugin_initialization job Enter Source DB SYS_PASSWORD
**********
Enter Source DB TDE_PASSWORD
*************
Completed Plugin_initialization job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_1

Running Default_value_initialization job Completed Default_value_initialization job

Running Validate_input_params job Completed Validate_input_params job

Running Validate_cpu_availability job Completed Validate_cpu_availability job

Running Validate_asm_availability job Completed Validate_asm_availability job

Running Validate_disk_space_availability job Completed Validate_disk_space_availability job




117 varchar2
 


データベースのduplicate
dbaascli database duplicate --executePrereqs

続き
Running Validate_huge_pages_availability job Completed Validate_huge_pages_availability job

Running Validate_hostname_domain job Completed Validate_hostname_domain job

Running Install_db_cloud_backup_module job Skipping. Job is detected as not applicable.

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Validate_backup_report job
Skipping. Job is detected as not applicable.
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_1 dbaascli execution completed
[root@taro-3nusm1 ~]#













118 varchar2
 
 

データベースのduplicate
dbaascli database duplicate --executePrereqs






























119 varchar2
 
 

データベースのduplicate
dbaascli database duplicate

[root@taro-3nusm1 ~]# dbaascli database duplicate --dbName DB0207 --oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_1 --sourceDBConnectionString taro-3nusm- scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0206_3cg_kix.sub04210756190.exavcn.oraclevcn.com --sourceDBTDEWalletLocation
/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde --sourceDBTdeConfigMethod FILE --tdeConfigMethod FILE DBAAS CLI version 24.1.1.0.0
Executing command database duplicate --dbName DB0207 --oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_1 --sourceDBConnectionString taro-3nusm- scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0206_3cg_kix.sub04210756190.exavcn.oraclevcn.com --sourceDBTDEWalletLocation
/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde --sourceDBTdeConfigMethod FILE --tdeConfigMethod FILE Job id: f8d5bd40-d667-418f-8685-1586ca0da9bf
Session log: /var/opt/oracle/log/DB0207/database/duplicate/dbaastools_2024-02-19_10-44-27-AM_290111.log Enter Source DB SYS_PASSWORD:

Enter Source DB TDE_PASSWORD: Enter SYS_PASSWORD:
Enter SYS_PASSWORD (reconfirmation): Enter TDE_PASSWORD:
Enter TDE_PASSWORD (reconfirmation):

Loading PILOT... Enter SYS_PASSWORD
**********
Enter SYS_PASSWORD (reconfirmation):
*********
Enter TDE_PASSWORD
**************


120 varchar2
 


データベースのduplicate
dbaascli database duplicate

続き
Enter TDE_PASSWORD (reconfirmation):
************
Session ID of the current execution is: 711
Log file location: /var/opt/oracle/log/DB0207/database/duplicate/pilot_2024-02-19_10-45-19-AM_294035

Running Plugin_initialization job Enter Source DB SYS_PASSWORD
*************
Enter Source DB TDE_PASSWORD
***********
Completed Plugin_initialization job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_1

Running Default_value_initialization job Completed Default_value_initialization job

Running Validate_input_params job Completed Validate_input_params job

Running Validate_cpu_availability job Completed Validate_cpu_availability job

Running Validate_asm_availability job Completed Validate_asm_availability job

Running Validate_disk_space_availability job Completed Validate_disk_space_availability job




121 varchar2
 


データベースのduplicate
dbaascli database duplicate

続き
Running Validate_huge_pages_availability job Completed Validate_huge_pages_availability job

Running Validate_hostname_domain job Completed Validate_hostname_domain job

Running Install_db_cloud_backup_module job Skipping. Job is detected as not applicable.

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Validate_backup_report job
Skipping. Job is detected as not applicable.

Running Configure_gilistener_file_for_duplicatedb job Completed Configure_gilistener_file_for_duplicatedb job Acquiring write lock: create_db_cloud

Running Setup_acfs_volumes job Completed Setup_acfs_volumes job

Running Setup_db_folders job Completed Setup_db_folders job

Running DB_creation job Completed DB_creation job Releasing lock: create_db_cloud



122 varchar2
 


データベースのduplicate
dbaascli database duplicate

続き
Running Generate_db_metadata job Completed Generate_db_metadata job

Running Create_db_from_backup job
Skipping. Job is detected as not applicable. Completed Create_db_from_backup job

Running Load_db_details job Completed Load_db_details job

Running Populate_creg job Completed Populate_creg job

Running Register_ocids job
Skipping. Job is detected as not applicable.

Running Run_datapatch job
Skipping. Job is detected as not applicable.

Running Create_users_tablespace job Skipping. Job is detected as not applicable.

Running Configure_pdb_service job Completed Configure_pdb_service job

Running Set_pdb_admin_user_profile job Completed Set_pdb_admin_user_profile job




123 varchar2
 


データベースのduplicate
dbaascli database duplicate

続き
Running Lock_pdb_admin_user job Completed Lock_pdb_admin_user job

Running Configure_flashback job Completed Configure_flashback job

Running Update_cloud_service_recommended_config_parameters job Completed Update_cloud_service_recommended_config_parameters job

Running Update_distributed_lock_timeout job Completed Update_distributed_lock_timeout job

Running Configure_archiving job Completed Configure_archiving job

Running Configure_huge_pages job Completed Configure_huge_pages job

Running Set_credentials job Completed Set_credentials job

Running Update_dba_directories job Completed Update_dba_directories job

Running Set_cluster_interconnects job Completed Set_cluster_interconnects job

Running Create_db_secure_profile job Completed Create_db_secure_profile job


 

124
 

varchar2
 


データベースのduplicate
dbaascli database duplicate

続き
Running Set_utc_timezone job Completed Set_utc_timezone job

Running Run_dst_post_installs job Completed Run_dst_post_installs job

Running Enable_auditing job Completed Enable_auditing job

Running Apply_security_measures job Completed Apply_security_measures job

Running Set_listener_init_params job Completed Set_listener_init_params job

Running Update_db_wallet job Completed Update_db_wallet job

Running Add_oratab_entry job Completed Add_oratab_entry job

Running Configure_sqlnet_ora job Completed Configure_sqlnet_ora job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job

Running Enable_fips job Completed Enable_fips job


 

125
 

varchar2
 


データベースのduplicate
dbaascli database duplicate

続き
Running DTRS_DB_Configure_Job job Completed DTRS_DB_Configure_Job job

Running Restart_database job Completed Restart_database job

Running Create_db_login_environment_file job Completed Create_db_login_environment_file job

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job

Running Cleanup job Completed Cleanup job
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_1 dbaascli execution completed
[root@taro-3nusm1 ~]#











126 varchar2
 
 

データベースのduplicate
dbaascli database duplicate


























127 varchar2
 

データベースの停⽌
dbaascli database stop --help

[root@orakawa-vgfvk1 ~]# dbaascli database stop --help
DBAAS CLI version 22.1.1.1.0
Executing command database stop --help database stop - help for database stop.
Usage: dbaascli database stop [--dbname ] [--mode ] Where:
[--dbname - Oracle database name. ]
[--mode - abort|immediate|normal|transactional for DB. ]






















128 varchar2
 

データベースの停⽌
dbaascli database stop

[root@orakawa-vgfvk1 ~]# dbaascli database stop --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command database stop
Job id: 11be0a84-80e7-4e53-b94a-dff2ce819fde
dbaascli execution completed
[root@orakawa-vgfvk1 ~]# dbaascli database status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command database status Database Status:
Instance dbclisid1 is not running on node orakawa-vgfvk1 Instance dbclisid2 is not running on node orakawa-vgfvk2

[root@orakawa-vgfvk1 ~]# ps -ef | grep ora_smon
oracle	240797	1	0	15:10	?	00:00:00	ora_smon_dbcli02sid1
root	325923	297968	0	15:22	pts/1	00:00:00	grep --color=auto ora_smon

















129 varchar2
 

データベースの起動
dbaascli database start --help

[root@orakawa-vgfvk1 ~]# dbaascli database start --help
DBAAS CLI version 22.1.1.1.0
Executing command database start --help database start - help for database start.
Usage: dbaascli database start [--dbname ] [--mode ] Where:
[--dbname - Oracle database name. ] [--mode - mount|nomount for DB.]






















130 varchar2
 


データベースの状態確認
dbaascli database status --help

[root@taro-3nusm1 ~]# dbaascli database status --help DBAAS CLI version 24.1.1.0.0
Executing command database status --help
database status - checks status of a database.
Usage: dbaascli database status [--dbname ] [--service  --user ] Where:
[--dbname - Oracle database name. ] [--service - service name.]
--user - username for the service.
[root@taro-3nusm1 ~]#

















131 varchar2
 

データベースの起動
dbaascli database start

[root@orakawa-vgfvk1 ~]# dbaascli database start --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command database start
Job id: d65598db-a4d0-419e-aa17-99362b572455
dbaascli execution completed

[root@orakawa-vgfvk1 ~]# dbaascli database status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command database status Database Status:
Instance dbclisid1 is running on node orakawa-vgfvk1 with online services dbcli01_dbcli01pdb01.paas.oracle.com. Instance status: Open. Instance dbclisid2 is running on node orakawa-vgfvk2 with online services dbcli01_dbcli01pdb01.paas.oracle.com. Instance status: Open.

Database name: dbcli01
Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 – Production

[root@orakawa-vgfvk1 ~]# ps -ef | grep ora_smon
oracle	240797	1	0 15:10 ?	00:00:00 ora_smon_dbcli02sid1
oracle	336376	1	0 15:23 ?	00:00:00 ora_smon_dbclisid1
root	348701 297968 0 15:25 pts/1	00:00:00 grep --color=auto ora_smon










132 varchar2
 


データベースの停⽌して再起動
dbaascli database bounce --help
指定したExadata Cloud Infrastructureデータベースを停止して再起動 [root@taro-3nusm1 ~]# dbaascli database bounce --help
DBAAS CLI version 24.1.1.0.0
Executing command database bounce --help
database bounce - bounce a specific database.
Usage: dbaascli database bounce [--dbname ] [--rolling ] Where:
[--dbname - Oracle database name. ]
[--rolling - specifies true|false to bounce database in a rolling manner. Default value is false. ]

[root@taro-3nusm1 ~]#
















133 varchar2
 

データベースのパラメーター変更
dbaascli database modifyParameters --help


[root@ecc2c1n1 ~]# dbaascli database modifyParameters --help DBAAS CLI version 21.4.1.1.0
Executing command database modifyParameters --help
database modifyParameters - modifies or resets initialization parameters for a given Oracle database.

Usage: dbaascli database modifyParameters --dbname 
{
--setParameters  [--backupPrepared] [--instance ] [--allowBounce]
| --resetParameters  [--backupPrepared] [--instance ] [--allowBounce]
}

Where:
--dbname - Oracle database name.
--setParameters | --resetParameters
--setParameters - comma separated list of parameters to be modified with new values. E.g. parameter1=valueA,parameter2=valueB,etc.
[--backupPrepared - flag to acknowledge that a proper database backup is in place prior to modifying critical or sensitive parameters.]
[--instance - name of the instance on which the parameters will be processed. If not specified, the operation will be performed at the database
 
level.]



level.]
 

[--allowBounce - flag to grant permission to bounce the database in order to reflect the changes on applicable static parameters.]
--resetParameters - comma separated list of parameters to be reset to their corresponding default values. E.g. parameter1,parameter2,etc.
[--backupPrepared - flag to acknowledge that a proper database backup is in place prior to modifying critical or sensitive parameters.]
[--instance - name of the instance on which the parameters will be processed. If not specified, the operation will be performed at the database

[--allowBounce - flag to grant permission to bounce the database in order to reflect the changes on applicable static parameters.]
 

[root@ecc2c1n1 ~]#





134 varchar2
 

データベースのパラメーター変更
dbaascli database modifyParameters

[root@orakawa-vgfvk1 ~]# dbaascli database modifyParameters --dbname dbcli01 --setParameters "sga_min_size=100M"
DBAAS CLI version 22.1.1.1.0
Executing command database modifyParameters --setParameters sga_min_size=100M
INFO : Review log file => /var/opt/oracle/log/dbcli01/modifyParameters/modifyParameters_2022-03-28_15:28:46.168027364905.log INFO : Validating inputs...
INFO : Validation of inputs PASSED
INFO : Processing parameters of the dbcli01 database... Loading PILOT...
Session ID of the current execution is: 29
Log file location: /var/opt/oracle/log/dbcli01/modifyParameters/pilot_2022-03-28_03-28-47-PM

Running Plugin_Initialize job Completed Plugin_Initialize job

Running Validate_Parameters job Completed Validate_Parameters job

Running Apply_Dynamic_Parameters_Changes job Completed Apply_Dynamic_Parameters_Changes job

Running Apply_Static_Parameters_Changes job Completed Apply_Static_Parameters_Changes job
INFO : Parameters processing of the dbcli01 database COMPLETED
・・・

SQL> show parameter sga_min_size

NAME	TYPE	VALUE

sga_min_size	big integer 100M

135 varchar2
 

データベースのパラメーターリセット
dbaascli database modifyParameters

[root@orakawa-vgfvk1 ~]# dbaascli database modifyParameters --dbname dbcli01 --resetParameters sga_min_size
DBAAS CLI version 22.1.1.1.0
Executing command database modifyParameters --resetParameters sga_min_size
INFO : Review log file => /var/opt/oracle/log/dbcli01/modifyParameters/modifyParameters_2022-03-28_15:32:15.674018387709.log INFO : Validating inputs...
INFO : Validation of inputs PASSED
INFO : Processing parameters of the dbcli01 database... Loading PILOT...
Session ID of the current execution is: 30
Log file location: /var/opt/oracle/log/dbcli01/modifyParameters/pilot_2022-03-28_03-32-16-PM

Running Plugin_Initialize job Completed Plugin_Initialize job

Running Validate_Parameters job Completed Validate_Parameters job

Running Apply_Dynamic_Parameters_Changes job Completed Apply_Dynamic_Parameters_Changes job

Running Apply_Static_Parameters_Changes job Completed Apply_Static_Parameters_Changes job
INFO : Parameters processing of the dbcli01 database COMPLETED
・・・

SQL> show parameter sga_min_size

NAME	TYPE	VALUE

sga_min_size	big integer 0

136 varchar2
 


データベースのパスワード変更
dbaascli database changePassword

[root@wasa-ycfpo1 ~]# dbaascli database changepassword --help DBAAS CLI version 24.1.1.0.0
Executing command database changepassword --help
database changePassword - change the password for a given user in the database.

Usage: dbaascli database changePassword --dbname  [--user ]
{
[--prepareStandbyBlob  [--blobLocation ]]
| [--standbyBlobFromPrimary ]
}
[--resume [--sessionID ]] [--executePrereqs] [--waitForCompletion ]

Where:
--dbname - Oracle database name.
[--user - username whose password change is required. ] [--prepareStandbyBlob | --standbyBlobFromPrimary]
[--prepareStandbyBlob - specifies true to generate a blob file containing the artifacts needed to perform the operation in a DG environment. ] [--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
[--standbyBlobFromPrimary - specifies the location of the standby blob file which is prepared from the primary database. This is required only for standby operations. ]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
[root@wasa-ycfpo1 ~]#





137 varchar2
 


データベースのパスワード変更
dbaascli database changePassword

[root@wasa-ycfpo1 ~]# dbaascli database changepassword --dbname DB1120 --user SYS
DBAAS CLI version 24.1.1.0.0
Executing command database changepassword --dbname DB1120 --user SYS Job id: e90c5469-126e-4d46-990c-02fc7ffd0bc2
Session log: /var/opt/oracle/log/DB1120/database/changePassword/dbaastools_2024-02-07_02-51-09-AM_108911.log Enter new password:

Enter new password (reconfirmation):

Loading PILOT...
Session ID of the current execution is: 3315
Log file location: /var/opt/oracle/log/DB1120/database/changePassword/pilot_2024-02-07_02-51-23-AM_111145

Running Plugin_initialization job Enter new password
***********
Completed Plugin_initialization job

Running DB_change_password_prechecks job Completed DB_change_password_prechecks job

Running Extract_blob_in_standby job Skipping. Job is detected as not applicable.

Running Copy_blob_contents_in_standby job Skipping. Job is detected as not applicable.

Running Change_password job Completed Change_password job

Running Update_db_wallet job Completed Update_db_wallet job
-	C-o-p-y-r-ig-h-t--©--2024, Oracle and/or its affiliates,
Running Prepare_blob_for_standby_in_primary job
 


オラクル・ホームの情報表⽰
dbaascli dbHome getDatabases --help

[root@orcl-jyvid1 ~]# dbaascli dbHome getDatabases --help
DBAAS CLI version 22.2.1.0.1
Executing command dbHome getDatabases --help
dbHome getDatabases - display details of databases in specified Oracle Home.

Usage: dbaascli dbHome getDatabases
{
--oracleHomeName 
| --oracleHome 
}

Where:
--oracleHomeName | --oracleHome
--oracleHomeName - Oracle home name.
--oracleHome - Oracle home path.















139 varchar2
 
オラクル・ホーム内のデータベースの情報表⽰
dbaascli dbHome getDatabases

[root@orcl-jyvid1 ~]# dbaascli dbHome getDatabases --oraclehomename OraHome4
DBAAS CLI version 22.2.1.0.1
Executing command dbHome getDatabases --oraclehomename OraHome4 Job id: 0f00a4b9-8ec2-4b2e-8977-a1fa2c91af99
{
"DB19c" : {
"id" : "91e07074-c0e7-499c-9dce-f7a1b005dff2", "dbSyncTime" : 0,
"createTime" : 1652227200000,
"updateTime" : 0, "dbName" : "DB19c",
"dbUniqueName" : "DB19c_vxm_kix",
"dbDomain" : "sub07160524340.testvcn.oraclevcn.com", "dbId" : 2232397119,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "29GB",
"dbUsedSize" : "7GB", "totalFraSize" : "28912GB", "fraSizeUsed" : "16GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.13.0.0.0", "resourceOCIDSettings" : null,
 
  22.2.1.0.1 で追加 


"dbCharacterSet" : { "characterSet" : "AL32UTF8",
"nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "instanceName" : "DB19c1", "version" : "19.13.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
}
},
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "2902028327",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DEB2908B77A2DE19E053CA00000A9EE5", "dbid" : "2902028327",
"conId" : "3",
"resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "openMode" : "READ_WRITE"
}
 

140 varchar2
 

オラクル・ホーム内のデータベースの情報表⽰
dbaascli dbHome getDatabases


},
"pdbConnectStrings" : [ {
"serviceName" : "DB19c_PDB1.paas.oracle.com",
"connectString" : "orcl-jyvid-scan.sub07160524340.testvcn.oraclevcn.com:1521/DB19c_PDB1.paas.oracle.com"
} ],
"pdbSize" : "4GB", "pdbUsedSize" : "1GB"
}
},
"messages" : [ ]
}
}
dbaascli execution completed

















141 varchar2
 

Database  Homeの削除
dbaascli dbhome purge --help

[root@orakawa-vgfvk1 ~]# dbaascli dbhome purge --help
DBAAS CLI version 22.1.1.1.0
Executing command dbhome purge --help
dbHome purge - purge an empty Oracle Database Home/s existing on the VM.
Usage: dbaascli dbHome purge [--hName ] [--hPath ] Where:
[--hName - name of Oracle Home to be purged. ] [--hPath - path of Oracle Home to be purged. ]




















142 varchar2
 

Database  Homeの削除
dbaascli dbhome purge

 
DBの存在している dbhome の削除はエラーになる [root@orakawa-vgfvk1 ~]# dbaascli dbhome info
DBAAS CLI version 22.1.1.1.0
Executing command dbhome info
Enter a homename or just press enter if you want details of all homes

1.HOME_NAME=OraHome1 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_2 VERSION=19.13.0.0
PATCH_LEVEL=19.13.0.0
DBs installed=dbcli01
Agent DB IDs=79c3169c-f7e8-43b0-95db-ae884a85de37 OH Backup=NOT Configured

2.HOME_NAME=OraHome2 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_3 VERSION=19.13.0.0
PATCH_LEVEL=19.13.0.0
DBs installed=
OH Backup=NOT Configured

3.HOME_NAME=dbcli01 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_1 VERSION=19.12.0.0
PATCH_LEVEL=19.12.0.0
DBs installed=dbcli02
Agent DB IDs=cc9b557e-4112-4df0-b126-50fd87c67cf5 OH Backup=NOT Configured
 

[root@orakawa-vgfvk1 ~]# dbaascli dbhome purge --hpath
/u02/app/oracle/product/19.0.0.0/dbhome_2
DBAAS CLI version 22.1.1.1.0
Executing command dbhome purge --hpath
/u02/app/oracle/product/19.0.0.0/dbhome_2
Number of databases in oracle home is 1: dbcli01
ERROR: Cannot purge with path /u02/app/oracle/product/19.0.0.0/dbhome_2: OH is in use (at least one db is running from this OH)
For more information, check logs at /var/opt/oracle/log/deloh
 


143 varchar2
 

Database  Homeの削除
dbaascli dbhome purge DBの存在していない dbhome は⼀瞬で削除

 
[root@orakawa-vgfvk1 ~]# dbaascli dbhome info
DBAAS CLI version 22.1.1.1.0
Executing command dbhome info
Enter a homename or just press enter if you want details of all homes

1.HOME_NAME=OraHome1 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_2 VERSION=19.13.0.0
PATCH_LEVEL=19.13.0.0
DBs installed=dbcli01
Agent DB IDs=79c3169c-f7e8-43b0-95db-ae884a85de37 OH Backup=NOT Configured

2.HOME_NAME=OraHome2 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_3 VERSION=19.13.0.0
PATCH_LEVEL=19.13.0.0
DBs installed=
OH Backup=NOT Configured

3.HOME_NAME=dbcli01 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_1 VERSION=19.12.0.0
PATCH_LEVEL=19.12.0.0
DBs installed=dbcli02
Agent DB IDs=cc9b557e-4112-4df0-b126-50fd87c67cf5 OH Backup=NOT Configured
 
[root@orakawa-vgfvk1 ~]# dbaascli dbhome purge --hpath
/u02/app/oracle/product/19.0.0.0/dbhome_3
DBAAS CLI version 22.1.1.1.0
Executing command dbhome purge --hpath
/u02/app/oracle/product/19.0.0.0/dbhome_3

INFO: Removing Oracle Home /u02/app/oracle/product/19.0.0.0/dbhome_3 Successfully removed with path /u02/app/oracle/product/19.0.0.0/dbhome_3

[root@orakawa-vgfvk1 ~]# dbaascli dbhome info
DBAAS CLI version 22.1.1.1.0
Executing command dbhome info

Enter a homename or just press enter if you want details of all homes 1.HOME_NAME=OraHome1
HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_2 VERSION=19.13.0.0
PATCH_LEVEL=19.13.0.0
DBs installed=dbcli01
Agent DB IDs=79c3169c-f7e8-43b0-95db-ae884a85de37 OH Backup=NOT Configured

2.HOME_NAME=dbcli01 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_1 VERSION=19.12.0.0
PATCH_LEVEL=19.12.0.0
DBs installed=dbcli02
Agent DB IDs=cc9b557e-4112-4df0-b126-50fd87c67cf5 OH Backup=NOT Configured
 


144 varchar2
 

dbaascli から dbhome 削除後のコンソールからの⾒え⽅
Failed > ハンバーガーメニューから Delete

































145 varchar2
 


Database timezone のアップグレード
dbaascli database upgradeTimezone --help

[root@taro-3nusm1 ~]# dbaascli database upgradeTimezone --help DBAAS CLI version 24.1.1.0.0
Executing command database upgradeTimezone --help
database upgradeTimeZone - to upgrade the database time zone version

Usage: dbaascli database upgradeTimeZone --dbname  --restartDB [--resume [--sessionID ]] [--waitForCompletion ] [--executePrereqs]
{
[--pdbs ]
| [--skipPDBs ]
}
[--skipClosedPDBs]

Where:
--dbname - Oracle database name.
--restartDB - flag is needed for taking an acknowledgement to restart the database in non rolling mode. [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [--executePrereqs - run the prerequisite checks and report the results. ]
[--pdbs | --skipPDBs]
[--pdbs - specify comma separated pdbs to upgrade DST version.]
[--skipPDBs - option to skip upgrading DST version on specified pdbs.] [--skipClosedPDBs - flag to skip upgrading dst version on closed pdbs.]
[root@taro-3nusm1 ~]#






146 varchar2
 


Database テンプレートの作成
dbaascli database createTemplate --help
後でデータベースの作成に使用できるデータベース・テンプレート(DBCAテンプレート)を作成 [root@taro-3nusm1 ~]# dbaascli database createTemplate --help
DBAAS CLI version 24.1.1.0.0
Executing command database createTemplate --help
database createTemplate - create a new template from the specified database.

Usage: dbaascli database createTemplate --dbname 
{
--templateLocation 
| --uploadToObjectStorage --objectStorageLoginUser  --objectStorageBucketName  [--objectStorageUrl ]
}
[--templateName ] [--rmanParallelism ]

Where:
--dbname - Oracle database name.
--templateLocation | --uploadToObjectStorage
--templateLocation - specifies the template location
--uploadToObjectStorage - to upload template to object storage
--objectStorageLoginUser - object storage login user
--objectStorageBucketName - object storage bucket name [--objectStorageUrl - object storage URL]
[--templateName - specifies the template name]
[--rmanParallelism - specifies Parallelsim value]
[root@taro-3nusm1 ~]#





147 varchar2
 









dbaascliを使⽤したOracle  Grid  Infrastructure
およびOracle  Databasesへのパッチ適⽤











148 varchar2
 

データベースへのパッチ適⽤

•	インプレース適⽤
•	現在の Oracle Home にパッチを適⽤する
•	dbaascli dbhome patch
•	アウトオブプレース適⽤(推奨)
•	パッチ適⽤済(新しいバージョン)のOracle Home にデータベースを移動する
•	dbaascli database move
















149 varchar2
 











Oracle  Databasesへのインプレースパッチ適⽤











150 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)事前確認
dbaascli dbhome info

 
[root@vmem-6gl0h1 ~]# dbaascli dbhome info DBAAS CLI version 23.4.1.0.0
Executing command dbhome info
[INFO] [DBAAS-14011] - The usage of this command is deprecated.
ACTION: It is recommended to use 'dbaascli dbHome getDetails or dbaascli system getDBHomes' for this operation.
Enter a homename or just press enter if you want details of all homes

1.HOME_NAME=OraHome2 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_2 VERSION=19.13.0.0
PATCH_LEVEL=19.13.0.0
DBs installed=
OH Backup=NOT Configured

2.HOME_NAME=OraHome3 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_3 VERSION=19.14.0.0
PATCH_LEVEL=19.14.0.0
DBs installed=
OH Backup=NOT Configured
 
3.HOME_NAME=OraHome1 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_1 VERSION=19.20.0.0
PATCH_LEVEL=19.20.0.0
DBs installed=DBFDSI DB19
Agent DB IDs=2b67088f-a84c-4b70-a2bc-9650d128fa97 d2705e01-7891- 4bf7-8e91-5f01988a5a64
OH Backup=NOT Configured

4.HOME_NAME=OraHome6 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_6 VERSION=19.21.0.0
PATCH_LEVEL=19.21.0.0
DBs installed=dbcli01
Agent DB IDs=e1546bda-82ae-4d56-b824-6d3a89e8afeb OH Backup=NOT Configured

5.HOME_NAME=OraHome4 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_4 VERSION=19.20.0.0
PATCH_LEVEL=19.20.0.0
DBs installed=Tutorial
Agent DB IDs=56916e81-b9ed-436b-ad80-8c771b24da0a OH Backup=NOT Configured
 








151 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)コマンド⼀覧
dbaascli dbhome patch --help

[root@vmem-6gl0h1 ~]# dbaascli dbhome patch --help DBAAS CLI version 23.4.1.0.0
Executing command dbhome patch --help
dbHome patch - patches the dbhome from one patch level to another.

Usage: dbaascli dbHome patch --targetVersion 
{
--oracleHome 
| --oracleHomeName 
}
[--imageFilePath ] [--executePrereqs] [--nodes ]
{
[--resume [--sessionID ]]
| [--rollback [--sessionID ]]
}
[--skipDatapatch] [--skipClosedPDBs] [--skipPDBs ] [--continueWithDbDowntime] [--skipUnreachableNodes] [--waitForCompletion ]

Where:
--targetVersion - target version to be patched to, specified as five numeric segments separated by periods (e.g. 19.12.0.0.0).
--oracleHome | --oracleHomeName
--oracleHome - Oracle home path.
--oracleHomeName - Oracle home name.
[--imageFilePath - absolute path of the image file to be used. ]
[--executePrereqs - run the prerequisite checks and report the results. ]
[--nodes - comma separated list of nodes if operation has to be performed on subset of nodes. ] [--resume | --rollback]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--rollback - option to rollback patched Oracle home. ] [--sessionID - to resume a specific session id.]
[--skipDatapatch - option to skip running datapatch on the databases. ] [--skipClosedPDBs - option to skip running datapatch on closed PDBs. ]
[--skipPDBs - option to skip running datapatch on given PDBs. Example: cdb1:pdb1,cdb2:pdb2... ]
[--continueWithDbDowntime - option to continue patching with database downtime. This option can be used in environments where there is only 1 active instance running and the patching operation can be continued even with downtime.]
[--skipUnreachableNodes - option to skip operation on unreachable nodes. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
152 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)事前確認
dbaascli dbhome patch --executePrereqs


 
[root@vmem-6gl0h1 ~]# dbaascli dbhome patch --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_4 --targetVersion 19.21.0.0.0
--executePrereqs
DBAAS CLI version 23.4.1.0.0
Executing command dbhome patch --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_4 --targetVersion 19.21.0.0.0
--executePrereqs
Job id: 69e14da1-c965-44c1-97cc-857391ee9665
Session log: /var/opt/oracle/log/dbHome/patch/dbaastools_2023-11- 21_02-01-32-PM_85342.log
Loading PILOT...
Session ID of the current execution is: 1165
Log file location: /var/opt/oracle/log/dbHome/patch/pilot_2023-11- 21_02-01-36-PM_86313

Running initialization job Completed initialization job

Running validate_user_input job Completed validate_user_input job

Running validate_nodes job Completed validate_nodes job

Running validate_oracle_home job Completed validate_oracle_home job

Running validate_source_version job Completed validate_source_version job

 
Running validate_target_version job Completed validate_target_version job
-----------------
Running validate_creg_file_existence job Completed validate_creg_file_existence job
-----------------
Running validate_diag_perm job Completed validate_diag_perm job
-----------------
Running validate_backup_loc job Completed validate_backup_loc job
-----------------
Running validate_patch_across_nodes job Completed validate_patch_across_nodes job
-----------------
Running validate_databases job Completed validate_databases job
-----------------
Running validate_users_umask job Completed validate_users_umask job
 

 

153 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)事前確認
dbaascli dbhome patch --executePrereqs
<続き>
Running validate_gold_image_url job Completed validate_gold_image_url job

Running validate_disk_space job Completed validate_disk_space job

Running validate_audit_files_in_source_home job Completed validate_audit_files_in_source_home job

Running download_gold_image job Completed download_gold_image job

Running validate_gold_image job Completed validate_gold_image job

Running run_installer_prereqs job Completed run_installer_prereqs job

Running check_patch_conflict job Completed check_patch_conflict job

Running remove_unzip_loc job Completed remove_unzip_loc job dbaascli execution completed







154 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤
dbaascli dbhome patch


 
[root@vmem-6gl0h1 ~]# dbaascli dbhome patch --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_4 --targetVersion 19.21.0.0.0 DBAAS CLI version 23.4.1.0.0
Executing command dbhome patch --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_4 --targetVersion 19.21.0.0.0 Job id: d086529e-2cf6-47b1-8a7e-f29e03de71b0
Session log: /var/opt/oracle/log/dbHome/patch/dbaastools_2023-11- 21_02-08-28-PM_148985.log
Loading PILOT...
Session ID of the current execution is: 1166
Log file location: /var/opt/oracle/log/dbHome/patch/pilot_2023-11- 21_02-08-32-PM_149942
-----------------
Running initialization job Completed initialization job
-----------------
Running validate_user_input job Completed validate_user_input job
-----------------
Running validate_nodes job Completed validate_nodes job
-----------------
Running validate_oracle_home job Completed validate_oracle_home job
-----------------
Running validate_source_version job Completed validate_source_version job
-----------------
Running validate_target_version job Completed validate_target_version job
-----------------
 
Running validate_creg_file_existence job Completed validate_creg_file_existence job
-----------------
Running validate_diag_perm job Completed validate_diag_perm job
-----------------
Running validate_backup_loc job Completed validate_backup_loc job
-----------------
Running validate_patch_across_nodes job Completed validate_patch_across_nodes job
-----------------
Running validate_databases job Completed validate_databases job
-----------------
Running validate_users_umask job Completed validate_users_umask job
-----------------
Running validate_gold_image_url job Completed validate_gold_image_url job
-----------------
Running validate_disk_space job Completed validate_disk_space job
-----------------
Running validate_audit_files_in_source_home job Completed validate_audit_files_in_source_home job
-----------------
Running download_gold_image job Completed download_gold_image job
-----------------
<>
 

155 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤
dbaascli dbhome patch

 

<続き>
Running validate_gold_image job Completed validate_gold_image job
 

-----------------
Running update_inventory-vmem-6gl0h1 job Completed update_inventory-vmem-6gl0h1 job
 

 	 

 
Running run_installer_prereqs job Completed run_installer_prereqs job
 
Running root_script_execution-vmem-6gl0h1 job Completed root_script_execution-vmem-6gl0h1 job
 

 	 

 
Running check_patch_conflict job Completed check_patch_conflict job
Acquiring write lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
-----------------
Running pre_patch_lock_manager job Completed pre_patch_lock_manager job
-----------------
Running copy_image-vmem-6gl0h1 job Completed copy_image-vmem-6gl0h1 job
-----------------
Running stop_database_instance-vmem-6gl0h1 job Completed stop_database_instance-vmem-6gl0h1 job
-----------------
Running detach_home-vmem-6gl0h1 job Completed detach_home-vmem-6gl0h1 job
-----------------
Running move_home-vmem-6gl0h1 job Completed move_home-vmem-6gl0h1 job
-----------------
Running move_image_to_home_loc-vmem-6gl0h1 job Completed move_image_to_home_loc-vmem-6gl0h1 job
-----------------
Running setup_db_home-vmem-6gl0h1 job Completed setup_db_home-vmem-6gl0h1 job
 
Running copy_home_to_backup_loc-vmem-6gl0h1 job Completed copy_home_to_backup_loc-vmem-6gl0h1 job
-----------------
Running move_config_files-vmem-6gl0h1 job Completed move_config_files-vmem-6gl0h1 job
-----------------
Running start_database_instance-vmem-6gl0h1 job Completed start_database_instance-vmem-6gl0h1 job
-----------------
Running exacs_post_patch_node_updation-vmem-6gl0h1 job Completed exacs_post_patch_node_updation-vmem-6gl0h1 job
-----------------
Running copy_image-vmem-6gl0h2 job Completed copy_image-vmem-6gl0h2 job
-----------------
Running stop_database_instance-vmem-6gl0h2 job Completed stop_database_instance-vmem-6gl0h2 job
-----------------
Running move_home-vmem-6gl0h2 job Completed move_home-vmem-6gl0h2 job
-----------------
Running setup_db_home-vmem-6gl0h2 job Completed setup_db_home-vmem-6gl0h2 job
-----------------
<>
 
156 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤
dbaascli dbhome patch

 

<続き>
Running update_inventory-vmem-6gl0h2 job Completed update_inventory-vmem-6gl0h2 job
-----------------
Running root_script_execution-vmem-6gl0h2 job Completed root_script_execution-vmem-6gl0h2 job
-----------------
Running move_config_files-vmem-6gl0h2 job Completed move_config_files-vmem-6gl0h2 job
-----------------
Running start_database_instance-vmem-6gl0h2 job Completed start_database_instance-vmem-6gl0h2 job
-----------------
Running exacs_post_patch_node_updation-vmem-6gl0h2 job Completed exacs_post_patch_node_updation-vmem-6gl0h2 job
 

-----------------
Running post_patch_lock_manager job Completed post_patch_lock_manager job
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
-----------------
Running cleanup job Completed cleanup job
-----------------
Running generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_dbsystem_details job
dbaascli execution completed
 

 
Running remove_home_from_backup_loc job Completed remove_home_from_backup_loc job

Running datapatch_and_recompile_invalid_objects job Datapatch execution on database 'Tutorial' is in progress Datapatch execution on database 'Tutorial' is complete
Recompilation of invalid objects on database 'Tutorial' is in progress
Recompilation of invalid objects on database 'Tutorial' is complete Completed datapatch_and_recompile_invalid_objects job

Running backup_old_home job Completed backup_old_home job



157 varchar2
 


dbaascliを使⽤したデータベース・ホームへのパッチ適⽤   再開
dbaascli dbhome patch --resume

 
[root@vmem-6gl0h1 opc]# dbaascli dbhome patch --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_4 --targetVersion 19.20.0.0.0
--resume
DBAAS CLI version 23.4.1.0.0
Executing command dbhome patch --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_4 --targetVersion 19.20.0.0.0
--resume
Job id: 7255a0a9-82ce-47f0-bac9-e5e202490a61
Session log: /var/opt/oracle/log/dbHome/patch/dbaastools_2023-11- 16_04-03-10-PM_355722.log
Loading PILOT...
Session ID of the current execution is: 898
Log file location: /var/opt/oracle/log/dbHome/patch/pilot_2023-11- 16_04-03-14-PM_356469
-----------------
Running initialization job Completed initialization job
 
Running validate_audit_files_in_source_home job Completed validate_audit_files_in_source_home job
-----------------
Running download_gold_image job Completed download_gold_image job
-----------------
Running validate_gold_image job Completed validate_gold_image job
-----------------
Running run_installer_prereqs job Completed run_installer_prereqs job
-----------------
Running check_patch_conflict job Completed check_patch_conflict job
Acquiring write lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
 

 	 

 
Running validate_disk_space job Completed validate_disk_space job
 
Running pre_patch_lock_manager job Completed pre_patch_lock_manager job
 

 	 




158 varchar2
 


dbaascliを使⽤したデータベース・ホームへのパッチ適⽤   再開
dbaascli dbhome patch --resume

 
Running copy_image-vmem-6gl0h1 job Completed copy_image-vmem-6gl0h1 job
 
Running root_script_execution-vmem-6gl0h1 job Completed root_script_execution-vmem-6gl0h1 job
 

 	 

 
Running stop_database_instance-vmem-6gl0h1 job Completed stop_database_instance-vmem-6gl0h1 job
 
Running copy_home_to_backup_loc-vmem-6gl0h1 job Completed copy_home_to_backup_loc-vmem-6gl0h1 job
 

 	 

 
Running detach_home-vmem-6gl0h1 job Completed detach_home-vmem-6gl0h1 job
 
Running move_config_files-vmem-6gl0h1 job Completed move_config_files-vmem-6gl0h1 job
 

 	 

 
Running move_home-vmem-6gl0h1 job Completed move_home-vmem-6gl0h1 job
 
Running start_database_instance-vmem-6gl0h1 job Completed start_database_instance-vmem-6gl0h1 job
 

 	 

 
Running move_image_to_home_loc-vmem-6gl0h1 job Completed move_image_to_home_loc-vmem-6gl0h1 job
 
Running exacs_post_patch_node_updation-vmem-6gl0h1 job Completed exacs_post_patch_node_updation-vmem-6gl0h1 job
 

 	 

 
Running setup_db_home-vmem-6gl0h1 job Completed setup_db_home-vmem-6gl0h1 job
 
Running copy_image-vmem-6gl0h2 job Completed copy_image-vmem-6gl0h2 job
 

 	 

 
Running update_inventory-vmem-6gl0h1 job Completed update_inventory-vmem-6gl0h1 job
 
Running stop_database_instance-vmem-6gl0h2 job Completed stop_database_instance-vmem-6gl0h2 job
 

 	 

 
159
 

varchar2
 
Running
 



dbaascliを使⽤したデータベース・ホームへのパッチ適⽤   再開
 
dbaascli dbhome patch --resume

Running move_home-vmem-6gl0h2 job Completed move_home-vmem-6gl0h2 job
-----------------
Running setup_db_home-vmem-6gl0h2 job Completed setup_db_home-vmem-6gl0h2 job
-----------------
Running update_inventory-vmem-6gl0h2 job Completed update_inventory-vmem-6gl0h2 job
-----------------
Running root_script_execution-vmem-6gl0h2 job Completed root_script_execution-vmem-6gl0h2 job
-----------------
Running move_config_files-vmem-6gl0h2 job Completed move_config_files-vmem-6gl0h2 job
 
Running remove_home_from_backup_loc job
Completed remove_home_from_backup_loc job


Running datapatch_and_recompile_invalid_objects job Datapatch execution on database 'Tutorial' is in progress Datapatch execution on database 'Tutorial' is complete
Recompilation of invalid objects on database 'Tutorial' is in progress
Recompilation of invalid objects on database 'Tutorial' is complete Completed datapatch_and_recompile_invalid_objects job
-----------------
Running backup_old_home job Completed backup_old_home job
-----------------
Running post_patch_lock_manager job Completed post_patch_lock_manager job
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
 

 	 

 
Running start_database_instance-vmem-6gl0h2 job Completed start_database_instance-vmem-6gl0h2 job
 
Running cleanup job Completed cleanup job
 

 	 

 
Running exacs_post_patch_node_updation-vmem-6gl0h2 job Completed exacs_post_patch_node_updation-vmem-6gl0h2 job
-----------------

160 varchar2
 
Running generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_dbsystem_details job
dbaascli execution completed
 



データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認
dbaascli dbhome patch
 
[root@vmem-6gl0h1 ~]# dbaascli dbhome info DBAAS CLI version 23.4.1.0.0
Executing command dbhome info
[INFO] [DBAAS-14011] - The usage of this command is deprecated.
ACTION: It is recommended to use 'dbaascli dbHome getDetails or dbaascli system getDBHomes' for this operation.
Enter a homename or just press enter if you want details of all homes


1.HOME_NAME=OraHome6 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_6 VERSION=19.21.0.0
PATCH_LEVEL=19.21.0.0
DBs installed=dbcli01
Agent DB IDs=e1546bda-82ae-4d56-b824-6d3a89e8afeb OH Backup=NOT Configured

2.HOME_NAME=OraHome4 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_4 VERSION=19.21.0.0
PATCH_LEVEL=19.21.0.0
DBs installed=Tutorial
Agent DB IDs=56916e81-b9ed-436b-ad80-8c771b24da0a OH Backup=NOT Configured
 
3.HOME_NAME=OraHome2 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_2 VERSION=19.13.0.0
PATCH_LEVEL=19.13.0.0
DBs installed=
OH Backup=NOT Configured


4.HOME_NAME=OraHome3 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_3 VERSION=19.14.0.0
PATCH_LEVEL=19.14.0.0
DBs installed=
OH Backup=NOT Configured


5.HOME_NAME=OraHome1 HOME_LOC=/u02/app/oracle/product/19.0.0.0/dbhome_1 VERSION=19.20.0.0
PATCH_LEVEL=19.20.0.0
DBs installed=DBFDSI DB19
Agent DB IDs=2b67088f-a84c-4b70-a2bc-9650d128fa97 d2705e01-7891- 4bf7-8e91-5f01988a5a64
OH Backup=NOT Configure
 
161 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認
dbaascli database getDetails


 
[root@vmem-6gl0h1 ~]# dbaascli database getDetails --dbname Tutorial DBAAS CLI version 23.4.1.0.0
Executing command database getDetails --dbname Tutorial Job id: 7ecf510c-4d24-48b1-85f7-baa324bafc64
Session log:
/var/opt/oracle/log/Tutorial/database/getDetails/dbaastools_2023-11- 21_02-52-20-PM_237823.log
{
"dbSyncTime" : 1700544784902,
"createTime" : 1699936138000,
"updateTime" : 0, "dbName" : "Tutorial",
"dbUniqueName" : "Tutorial_mss_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 2483528602,
"cpuCount" : 4, "sgaTarget" : "3808MB",
"pgaAggregateTarget" : "2500MB", "dbSize" : "51GB",
"dbUsedSize" : "12GB", "totalFraSize" : "1162GB", "fraSizeUsed" : "20GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.21.0.0.0", "resourceOCIDSettings" : {
 
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymb uazc5tkguca",
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37 iydjpezoghgmh7a",
"resourceOCID" : "ocid1.database.oc1.ap-osaka- 1.anvwsljrssl65iqa4xs42liz2sz7v7723vynynp7w4uyvhs7nmm7ze6tf6aa",
"resourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "resourceType" : "CDB",
"parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"AdyFgnerrE/+v3zjE/rRJJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1",
"instanceName" : "Tutorial1", "version" : "19.21.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
},
 
162 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認
dbaascli database getDetails

 

<続き>
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "instanceName" : "Tutorial2", "version" : "19.21.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
}
},
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "1370933588",
"cdbId" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "refreshablePDB" : false,
"refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "0A165E6D95AD5FF4E0639500000AC2B9", "dbid" : "1370933588",
"conId" : "3", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5 tkguca",
 

"resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkg uca",
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezo ghgmh7a",
"resourceOCID" : "ocid1.pluggabledatabase.oc1.ap-osaka- 1.anvwsljrssl65iqa7h7mkmvvk356cz3u3x3kbojiorfrsgdu6ccmgv3gvaia",
"resourceID" : "1370933588", "resourceType" : "PDB",
"parentResourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a"
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"ARbiuLLc6086v+JmNfEoia8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
 
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjp ezoghgmh7a",


163 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認
データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認

 
"pdbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "openMode" : "READ_WRITE", "restricted" : false
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "openMode" : "READ_WRITE", "restricted" : false
 
"pdbSize" : "8GB",
"pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
},
"messages" : [ ]
}
dbaascli execution completed
 
}
},
"pdbConnectStrings" : [ {
"serviceName" : "Tutorial_PDB1.paas.oracle.com", "connectString" : "vmem-6gl0h-
scan.sub04210756190.exavcn.oraclevcn.com:1521/Tutorial_PDB1.paas.orac le.com",
"tcpsConnectStrings" : [ "vmem-6gl0h- scan.sub04210756190.exavcn.oraclevcn.com:2484/Tutorial_PDB1.paas.orac le.com" ]
} ],



164 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後  ロールバック
データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認

Running validate_nodes job Completed validate_nodes job
-----------------
Running validate_oracle_home job Completed validate_oracle_home job


 

Session log: /var/opt/oracle/log/dbHome/patch/dbaastools_2023-11-21_02-56- 27-PM_318459.log
Loading PILOT...
Session ID of the current execution is: 1170
Log file location: /var/opt/oracle/log/dbHome/patch/pilot_2023-11-21_02- 56-32-PM_319554
-----------------
Running initialization job Completed initialization job
-----------------
Running validate_user_input job Completed validate_user_input job
-----------------
 
Running validate_creg_file_existence job Completed validate_creg_file_existence job
-----------------
Running validate_diag_perm job Completed validate_diag_perm job
-----------------
Running validate_backup_loc job Completed validate_backup_loc job
-----------------
Running validate_patch_across_nodes job Completed validate_patch_across_nodes job
-----------------
Running validate_databases job Completed validate_databases job
 

 

165 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後  ロールバック
データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認

 
Running validate_users_umask job Completed validate_users_umask job
 
Running pre_patch_lock_manager job Completed pre_patch_lock_manager job
 

 	 

 
Running validate_gold_image_url job Completed validate_gold_image_url job
 
Running copy_image-vmem-6gl0h1 job Completed copy_image-vmem-6gl0h1 job
 

 	 

 
Running validate_disk_space job Completed validate_disk_space job
 
Running stop_database_instance-vmem-6gl0h1 job Completed stop_database_instance-vmem-6gl0h1 job
 

 	 

 
Running validate_audit_files_in_source_home job Completed validate_audit_files_in_source_home job
 
Running detach_home-vmem-6gl0h1 job Completed detach_home-vmem-6gl0h1 job
 

 	 

 
Running download_gold_image job
Skipping. Job is detected as not applicable.
 
Running move_home-vmem-6gl0h1 job Completed move_home-vmem-6gl0h1 job
 

 	 

 
Running validate_gold_image job Completed validate_gold_image job
 
Running move_image_to_home_loc-vmem-6gl0h1 job Completed move_image_to_home_loc-vmem-6gl0h1 job
 

 	 

 
Running run_installer_prereqs job Completed run_installer_prereqs job
Acquiring write lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
 
Running setup_db_home-vmem-6gl0h1 job Completed setup_db_home-vmem-6gl0h1 job
-----------------
 

 
166 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後  ロールバック
データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認

 
Running update_inventory-vmem-6gl0h1 job Completed update_inventory-vmem-6gl0h1 job
 
Running stop_database_instance-vmem-6gl0h2 job Completed stop_database_instance-vmem-6gl0h2 job
 

 	 

 
Running root_script_execution-vmem-6gl0h1 job Completed root_script_execution-vmem-6gl0h1 job
 
Running move_home-vmem-6gl0h2 job Completed move_home-vmem-6gl0h2 job
 

 	 

 
Running copy_home_to_backup_loc-vmem-6gl0h1 job Completed copy_home_to_backup_loc-vmem-6gl0h1 job
 
Running setup_db_home-vmem-6gl0h2 job Completed setup_db_home-vmem-6gl0h2 job
 

 	 

 
Running move_config_files-vmem-6gl0h1 job Completed move_config_files-vmem-6gl0h1 job
 
Running update_inventory-vmem-6gl0h2 job Completed update_inventory-vmem-6gl0h2 job
 

 	 

 
Running start_database_instance-vmem-6gl0h1 job Completed start_database_instance-vmem-6gl0h1 job
 
Running root_script_execution-vmem-6gl0h2 job Completed root_script_execution-vmem-6gl0h2 job
 

 	 

 
Running exacs_post_patch_node_updation-vmem-6gl0h1 job Completed exacs_post_patch_node_updation-vmem-6gl0h1 job
 
Running move_config_files-vmem-6gl0h2 job Completed move_config_files-vmem-6gl0h2 job
 

 	 

 
Running copy_image-vmem-6gl0h2 job Completed copy_image-vmem-6gl0h2 job
 
Running start_database_instance-vmem-6gl0h2 job Completed start_database_instance-vmem-6gl0h2 job
 

 	 

167 varchar2
 


データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後  ロールバック
データベースホームへのパッチ適⽤(インプレース・パッチ適⽤)適⽤後確認

 
Running exacs_post_patch_node_updation-vmem-6gl0h2 job Completed exacs_post_patch_node_updation-vmem-6gl0h2 job
-----------------
Running remove_home_from_backup_loc job Completed remove_home_from_backup_loc job
-----------------
Running datapatch_and_recompile_invalid_objects job Datapatch execution on database 'Tutorial' is in progress Datapatch execution on database 'Tutorial' is complete
Recompilation of invalid objects on database 'Tutorial' is in progress
Recompilation of invalid objects on database 'Tutorial' is complete Completed datapatch_and_recompile_invalid_objects job
 
Running post_patch_lock_manager job Completed post_patch_lock_manager job
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
-----------------
Running cleanup job Completed cleanup job
-----------------
Running generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_dbsystem_details job
dbaascli execution completed
 

 












168 varchar2
 









Oracle   Databasesへのアウトオブプレースパッチ適
⽤











169 varchar2
 


データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)コマンド⼀覧
dbaascli database move --help
[root@vmem-6gl0h1 ~]# dbaascli database move --help DBAAS CLI version 23.4.1.0.0
Executing command database move --help
database move - move DB from one home to another home.

Usage: dbaascli database move
{
--oracleHome 
| --oracleHomeName 
}
--dbname  [--executePrereqs]
{
[--resume [--sessionID ]]
| [--rollback [--sessionID ]]
}
[--skipDatapatch] [--skipPDBs ] [--skipClosedPDBs] [--continueWithDbDowntime] [--allowParallelDBMove] [--waitForCompletion ] [--nodeList ]

Where:
--oracleHome | --oracleHomeName
--oracleHome - Oracle home path.
--oracleHomeName - Oracle home name.
--dbname - Oracle database name.
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume | --rollback]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--rollback - option to rollback database to previous home. ] [--sessionID - to resume a specific session id.]
[--skipDatapatch - option to skip running datapatch on the databases. ]
[--skipPDBs - option to skip patching on given PDBs. Example: pdb1,pdb2... ] [--skipClosedPDBs - option to skip patching on closed PDBs. ]
[--continueWithDbDowntime - option to continue patching with database downtime. This option can be used in environments where there is only 1 active instance running and the patching operation can be continued even with downtime.]
[--allowParallelDBMove - option to allow database move in parallel. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [--nodeList - comma separated list of nodes if operation has to be performed on subset of nodes. ]


170 varchar2
 


データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)現状確認
dbaascli database move


 
[root@vmem-6gl0h1 ~]# dbaascli database getDetails --dbname Tutorial DBAAS CLI version 23.4.1.0.0
Executing command database getDetails --dbname Tutorial Job id: d6028009-c39b-4267-82d9-cb134d883acb
Session log:
/var/opt/oracle/log/Tutorial/database/getDetails/dbaastools_2023-11- 21_03-21-04-PM_165778.
{
"dbSyncTime" : 1700546894660,
"createTime" : 1699936138000,
"updateTime" : 0, "dbName" : "Tutorial",
"dbUniqueName" : "Tutorial_mss_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 2483528602,
"cpuCount" : 4, "sgaTarget" : "3808MB",
"pgaAggregateTarget" : "2500MB", "dbSize" : "51GB",
"dbUsedSize" : "12GB", "totalFraSize" : "1162GB", "fraSizeUsed" : "20GB", "dbKmsKeyOcid" : null,
 
"isCDB" : true, "dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.20.0.0.0", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymb uazc5tkguca",
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37 iydjpezogh
"resourceOCID" : "ocid1.database.oc1.ap-osaka- 1.anvwsljrssl65iqa4xs42liz2sz7v7723vynynp7w4uyvhs7nmm
"resourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "resourceType" : "CDB",
"parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"AdyFgnerrE/+v3zjE/rRJJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
 






171 varchar2
 


データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)現状確認
dbaascli database move


 
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "instanceName" : "Tutorial1", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "instanceName" : "Tutorial2", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
}
},
 
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "1370933588",
"cdbId" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "refreshablePDB" : false,
"refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "0A165E6D95AD5FF4E0639500000AC2B9", "dbid" : "1370933588",
"conId" : "3", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymb uazc5tkguc
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37 iydjpe
"resourceOCID" : "ocid1.pluggabledatabase.oc1.ap-osaka- 1.anvwsljrssl65iqa7h7mkmvvk356cz3u3x3kbo
"resourceID" : "1370933588", "resourceType" : "PDB",
"parentResourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a"
 




172
 




varchar2
 
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"ARbiuLLc6086v+JmNfEoia8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
 



データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)現状確認
dbaascli database move

"pdbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "openMode" : "READ_WRITE", "restricted" : false
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "openMode" : "READ_WRITE", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "Tutorial_PDB1.paas.oracle.com",
"connectString" : "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:1521/Tutorial_PDB1.paas. "tcpsConnectStrings" : [ "vmem-6gl0h-scan.sub04210756190.exavcn.oraclevcn.com:2484/Tutorial_PDB
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
},
"messages" : [ ]
}
dbaascli execution completed




173 varchar2
 


データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)現状確認
 
dbaascli database move

移動先の DBHOME の確認

[root@vmem-6gl0h1 ~]# dbaascli system getDBHomes DBAAS CLI version 23.4.1.0.0
Executing command system getDBHomes
Job id: a061464e-8d74-4d0d-ab6c-08e359d9a108
Session log: /var/opt/oracle/log/system/getDBHomes/dbaastools_2023- 11-21_03-29-34-PM_272098.log
{
"OraHome1" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "homeName" : "OraHome1",
"version" : "19.20.0.0.0",
"createTime" : 1697764298000,
"updateTime" : 1697765609000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.20.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.20.0.0.0"
}
},
"messages" : [ ]
},
 
"OraHome2" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_2", "homeName" : "OraHome2",
"version" : "19.13.0.0.0",
"createTime" : 1697776609000,
"updateTime" : 1697777833000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.13.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.13.0.0.0"
}
},
"messages" : [ ]
},
"OraHome3" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_3", "homeName" : "OraHome3",
"version" : "19.14.0.0.0",
"createTime" : 1697786065000,
"updateTime" : 1697786065000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.14.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.14.0.0.0"
 
}
},
 
174
 
varchar2
 
"messages" : [ ]
},
 



データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)現状確認
dbaascli database move

 

移動先の DBHOME の確認
"OraHome4" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "homeName" : "OraHome4",
"version" : "19.20.0.0.0",
"createTime" : 1699923823000,
"updateTime" : 1700546433000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.20.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.20.0.0.0"
}
},
"messages" : [ ]
},
 

" "OraHome6" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_6", "homeName" : "OraHome6",
"version" : "19.21.0.0.0",
"createTime" : 1700455140000,
"updateTime" : 1700474635000, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "version" : "19.21.0.0.0"
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "version" : "19.21.0.0.0"
}
},
"messages" : [ ]
}
}
dbaascli execution completed
 











175 varchar2
 


データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤
dbaascli database move


 
[root@vmem-6gl0h1 ~]# dbaascli database move --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_6 --dbname Tutorial DBAAS CLI version 23.4.1.0.0
Executing command database move --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_6 --dbname Tutorial Job id: c1b726e7-89af-4846-adab-d72533630f7e
Session log:
/var/opt/oracle/log/Tutorial/database/move/dbaastools_2023-11-21_03- 33-09-PM_304389.log
Loading PILOT...
Session ID of the current execution is: 1172 Log file location:
/var/opt/oracle/log/Tutorial/database/move/pilot_2023-11-21_03-33-14- PM_305034
 
Running validate_major_version job Completed validate_major_version job
-----------------
Running validate_oracle_home_type job Completed validate_oracle_home_type job
-----------------
Running check_target_source_home_not_same job Completed check_target_source_home_not_same job
-----------------
Running validate_home_existence job Completed validate_home_existence job
-----------------
Running validate_home_consistency job Completed validate_home_consistency job
 

 	 

 
Running initialization job Completed initialization job
 
Running validate_home_options job Completed validate_home_options job
 

 	 

 
Running validate_user_input job Completed validate_user_input job
-----------------
Running validate_database job Completed validate_database job
 
Running validate_disk_space job Completed validate_disk_space job Acquiring write lock: tutorial
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_4 Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_6
 

 	 

 
Running validate_creg_file_existence job Completed validate_creg_file_existence job
 
Running pre_patch_lock_manager job Completed pre_patch_lock_manager job
 

 	 

 
Running validate_source_home job Completed validate_source_home job
 
Running copy_config_files job Completed copy_config_files job
 

 	 


176 varchar2
 


データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤
dbaascli database move


 
Running stop_database_instance-vmem-6gl0h1 job Completed stop_database_instance-vmem-6gl0h1 job
-----------------
Running update_database_resource-vmem-6gl0h1 job Completed update_database_resource-vmem-6gl0h1 job
-----------------
Running start_database_instance-vmem-6gl0h1 job Completed start_database_instance-vmem-6gl0h1 job
-----------------
Running stop_database_instance-vmem-6gl0h2 job Completed stop_database_instance-vmem-6gl0h2 job
-----------------
Running update_database_resource-vmem-6gl0h2 job Completed update_database_resource-vmem-6gl0h2 job
-----------------
Running start_database_instance-vmem-6gl0h2 job Completed start_database_instance-vmem-6gl0h2 job
-----------------
Running exacs_post_patch_node_updation job Completed exacs_post_patch_node_updation job
-----------------
Running update_dba_directories job Completed update_dba_directories job
-----------------
 
Running datapatch_and_recompile_invalid_objects job Datapatch execution on database 'Tutorial' is in progress Datapatch execution on database 'Tutorial' is complete
Recompilation of invalid objects on database 'Tutorial' is in progress
Recompilation of invalid objects on database 'Tutorial' is complete Completed datapatch_and_recompile_invalid_objects job
-----------------
Running post_patch_lock_manager job Completed post_patch_lock_manager job Releasing lock: tutorial
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_4 Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_6
-----------------
Running invoke_backup_asst job Completed invoke_backup_asst job
-----------------
Running post_move_validation job Completed post_move_validation job
-----------------
Running generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_dbsystem_details job
dbaascli execution completed
 







177 varchar2
 


データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤後確認
dbaascli database move


 
[root@vmem-6gl0h1 ~]# dbaascli database getDetails --dbname Tutorial DBAAS CLI version 23.4.1.0.0
Executing command database getDetails --dbname Tutorial Job id: beaf2d8a-ab11-42fe-b991-c20f43e607d7
Session log:
/var/opt/oracle/log/Tutorial/database/getDetails/dbaastools_2023-11- 21_03-44-33-PM_59171.log
{
"dbSyncTime" : 1700548919945,
"createTime" : 1699936138000,
"updateTime" : 0, "dbName" : "Tutorial",
"dbUniqueName" : "Tutorial_mss_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 2483528602,
"cpuCount" : 4, "sgaTarget" : "3808MB",
"pgaAggregateTarget" : "2500MB", "dbSize" : "55GB",
"dbUsedSize" : "12GB", "totalFraSize" : "1162GB", "fraSizeUsed" : "21GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.21.0.0.0",
 
"resourceOCIDSettings" : { "tenancyOCID" :
"ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymb uazc5tkguca",
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37 iydjpezoghgmh7a",
"resourceOCID" : "ocid1.database.oc1.ap-osaka- 1.anvwsljrssl65iqa4xs42liz2sz7v7723vynynp7w4uyvhs7nmm7ze6tf6aa",
"resourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "resourceType" : "CDB",
"parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"AdyFgnerrE/+v3zjE/rRJJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "instanceName" : "Tutorial1", "version" : "19.21.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_6", "status" : "OPEN"
 
178 varchar2	},
 



データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤後確認
dbaascli database move
"vmem-6gl0h2" : {
 
"nodeName" : "vmem-6gl0h2", "instanceName" : "Tutorial2", "version" : "19.21.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_6", "status" : "OPEN"
}
},
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "1370933588",
"cdbId" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "refreshablePDB" : false,
"refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "0A165E6D95AD5FF4E0639500000AC2B9", "dbid" : "1370933588",
"conId" : "3", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkgu ca",
"compartmentOCID" :
"ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezog hgmh7a",
"resourceOCID" : "ocid1.pluggabledatabase.oc1.ap-osaka- 1.anvwsljrssl65iqa7h7mkmvvk356cz3u3x3kbojiorfrsgdu6ccmgv3gvaia",
"resourceID" : "1370933588", "resourceType" : "PDB",
"parentResourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a"
 
"tdeDetails" : {
"tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"ARbiuLLc6086v+JmNfEoia8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"pdbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "openMode" : "READ_WRITE", "restricted" : false
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "openMode" : "READ_WRITE", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "Tutorial_PDB1.paas.oracle.com", "connectString" : "vmem-6gl0h-
scan.sub04210756190.exavcn.oraclevcn.com:1521/Tutorial_PDB1.paas.oracle.com", "tcpsConnectStrings" : [ "vmem-6gl0h-
scan.sub04210756190.exavcn.oraclevcn.com:2484/Tutorial_PDB1.paas.oracle.com" ]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
},
"messages" : [ ]
}
dbaascli execution completed
 
},179
 
varchar2
 

データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤後ロールバック
dbaascli database move


 
[root@vmem-6gl0h1 ~]# dbaascli database move --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_6 --dbname Tutorial -- rollback
DBAAS CLI version 23.4.1.0.0
Executing command database move --oracleHome
/u02/app/oracle/product/19.0.0.0/dbhome_6 --dbname Tutorial -- rollback
Job id: 31050e2b-b205-4a16-9d7c-dac5275dff5e Session log:
/var/opt/oracle/log/Tutorial/database/move/dbaastools_2023-11-21_03- 47-32-PM_89169.log
Loading PILOT...
Session ID of the current execution is: 1173 Log file location:
/var/opt/oracle/log/Tutorial/database/move/pilot_2023-11-21_03-47-37- PM_91117
 
Running validate_oracle_home_type job Completed validate_oracle_home_type job
-----------------
Running check_target_source_home_not_same job Completed check_target_source_home_not_same job
-----------------
Running validate_home_existence job Completed validate_home_existence job
-----------------
Running validate_home_consistency job Completed validate_home_consistency job
 
 
Running initialization job Completed initialization job
-----------------
Running validate_user_input job Completed validate_user_input job
-----------------
Running validate_database job Completed validate_database job
-----------------
Running validate_creg_file_existence job Completed validate_creg_file_existence job
-----------------
Running validate_source_home job Completed validate_source_home job
 

 
Running validate_home_options job Completed validate_home_options job
-----------------
Running validate_disk_space job Completed validate_disk_space job Acquiring write lock: tutorial
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_6 Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
-----------------
 

 

180 varchar2
 

データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤後ロールバック
dbaascli database move


 
Running pre_patch_lock_manager job Completed pre_patch_lock_manager job
-----------------
Running copy_config_files job Completed copy_config_files job
-----------------
Running stop_database_instance-vmem-6gl0h1 job Completed stop_database_instance-vmem-6gl0h1 job
-----------------
Running update_database_resource-vmem-6gl0h1 job Completed update_database_resource-vmem-6gl0h1 job
-----------------
Running start_database_instance-vmem-6gl0h1 job Completed start_database_instance-vmem-6gl0h1 job
-----------------
Running stop_database_instance-vmem-6gl0h2 job Completed stop_database_instance-vmem-6gl0h2 job
-----------------
Running update_database_resource-vmem-6gl0h2 job Completed update_database_resource-vmem-6gl0h2 job
-----------------
Running start_database_instance-vmem-6gl0h2 job Completed start_database_instance-vmem-6gl0h2 job
-----------------
Running exacs_post_patch_node_updation job Completed exacs_post_patch_node_updation job
 
Running datapatch_and_recompile_invalid_objects job Datapatch execution on database 'Tutorial' is in progress Datapatch execution on database 'Tutorial' is complete
Recompilation of invalid objects on database 'Tutorial' is in progress
Recompilation of invalid objects on database 'Tutorial' is complete Completed datapatch_and_recompile_invalid_objects job
-----------------
Running post_patch_lock_manager job Completed post_patch_lock_manager job Releasing lock: tutorial
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_6 Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_4
-----------------
Running invoke_backup_asst job Completed invoke_backup_asst job
-----------------
Running post_move_validation job Completed post_move_validation job
-----------------
Running generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_dbsystem_details job
dbaascli execution completed
 

 
Running update_dba_directories job Completed update_dba_directories job



181 varchar2
 

データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤後ロールバック後確認
dbaascli database move

 

[root@vmem-6gl0h1 ~]# dbaascli database getDetails --dbname Tutorial DBAAS CLI version 23.4.1.0.0
Executing command database getDetails --dbname Tutorial Job id: db3787a5-5d7a-48da-827c-bb45a470c975
Session log:
/var/opt/oracle/log/Tutorial/database/getDetails/dbaastools_2023-11- 21_04-00-10-PM_287998.log
{
"dbSyncTime" : 1700549872565,
"createTime" : 1699936138000,
"updateTime" : 0, "dbName" : "Tutorial",
"dbUniqueName" : "Tutorial_mss_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 2483528602,
"cpuCount" : 4, "sgaTarget" : "3808MB",
"pgaAggregateTarget" : "2500MB", "dbSize" : "55GB",
"dbUsedSize" : "12GB", "totalFraSize" : "1162GB", "fraSizeUsed" : "22GB", "dbKmsKeyOcid" : null, "isCDB" : true,
"dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.20.0.0.0",
 

"resourceOCIDSettings" : { "tenancyOCID" :
"ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymb uazc5tkguca",
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37 iydjpezoghgmh7a",
"resourceOCID" : "ocid1.database.oc1.ap-osaka- 1.anvwsljrssl65iqa4xs42liz2sz7v7723vynynp7w4uyvhs7nmm7ze6tf6aa",
"resourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "resourceType" : "CDB",
"parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"AdyFgnerrE/+v3zjE/rRJJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "instanceName" : "Tutorial1", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
 
182 varchar2	},
 

データベースホームへのパッチ適⽤(アウト・オブ・プレース・パッチ適⽤)適⽤後ロールバック後確認
dbaascli database move
 
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "instanceName" : "Tutorial2", "version" : "19.20.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_4", "status" : "OPEN"
}
},
"pdbs" : {
"PDB1" : {
"pdbName" : "PDB1", "pdbUID" : "1370933588",
"cdbId" : "56916e81-b9ed-436b-ad80-8c771b24da0a", "refreshablePDB" : false,
"refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "0A165E6D95AD5FF4E0639500000AC2B9", "dbid" : "1370933588",
"conId" : "3", "resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkguca",
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezoghgm h7a",
"resourceOCID" : "ocid1.pluggabledatabase.oc1.ap-osaka- 1.anvwsljrssl65iqa7h7mkmvvk356cz3u3x3kbojiorfrsgdu6ccmgv3gvaia",
"resourceID" : "1370933588", "resourceType" : "PDB",
"parentResourceID" : "56916e81-b9ed-436b-ad80-8c771b24da0a"
},
 
"tdeDetails" : {
"tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" :
"ARbiuLLc6086v+JmNfEoia8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"pdbNodeLevelDetails" : { "vmem-6gl0h1" : {
"nodeName" : "vmem-6gl0h1", "openMode" : "READ_WRITE", "restricted" : false
},
"vmem-6gl0h2" : {
"nodeName" : "vmem-6gl0h2", "openMode" : "READ_WRITE", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "Tutorial_PDB1.paas.oracle.com", "connectString" : "vmem-6gl0h-
scan.sub04210756190.exavcn.oraclevcn.com:1521/Tutorial_PDB1.paas.oracle.com", "tcpsConnectStrings" : [ "vmem-6gl0h-
scan.sub04210756190.exavcn.oraclevcn.com:2484/Tutorial_PDB1.paas.oracle.com"
]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
},
"messages" : [ ]
}
dbaascli execution completed
 
183 varchar2
 











Grid Infrastructure へのパッチ適⽤/ロールバック











184 varchar2
 


グリッド・インフラストラクチャへのパッチ適⽤前の事前チェック
dbaascli grid patch --help

[root@vmem-6gl0h1 ~]# dbaascli grid patch --help DBAAS CLI version 23.4.1.0.0
Executing command grid patch --help
grid patch - patch the Grid Infrastructure to the specified minor version.

Usage: dbaascli grid patch
{
--targetVersion 
| --targetHome 
}
[--executePrereqs] [--nodeList ] [--continueWithDbDowntime] [--containerURL ]
{
[--createImage [--createImageDir ]]
| [--imageFile ]
}
[--patchInParallel]
{
[--resume [--sessionID ]]
| [--rollback [--sessionID ]]
}
[--waitForCompletion ]

<>








185 varchar2
 


グリッド・インフラストラクチャへのパッチ適⽤前の事前チェック
dbaascli grid patch --help

 

<続き> Where:
 



--targetVersion | --targetHome
--targetVersion - target version to be patched to, specified as five numeric segments separated by periods (e.g. 19.12.0.0.0).
--targetHome - fully qualified path of the target Grid Infrastructure home for the out of place patching. [--executePrereqs - run the prerequisite checks and report the results. ]
[--nodeList - comma separated list of nodes if patching has to be performed on subset of nodes. ]
[--continueWithDbDowntime - option to continue patching with database downtime. This option can be used in environments where there is
 
only 1 active instance running and the patching operation can be continued even with downtime.] [--containerURL - custom URL for fetching Oracle Grid Infrastructure Image. ]
[--createImage | --imageFile]
[--createImage - create an image from a copy of the active Grid Infrastructure home, patched to the specified target version.] [--createImageDir - fully qualified path of the directory where the image is to be created.]
[--imageFile - fully qualified path of the image to be used.]
[--patchInParallel - perform the patching of the remote nodes in parallel.] [--resume | --rollback]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.] [--rollback - option to rollback patched OH. ]
[--sessionID - to resume a specific session id.]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [root@vmem-6gl0h1 ~]#








186 varchar2
 

グリッド・インフラストラクチャへのパッチ適⽤前の事前チェックの実⾏
dbaascli grid patch --executePrereqs

 

[root@orakawa-vgfvk1 ~]# dbaascli grid patch --targetversion 19.14.0.0.0 -
-executePrereqs
DBAAS CLI version 22.1.1.1.0
Executing command grid patch --targetversion 19.14.0.0.0 --executePrereqs
-----------------
Setting up parameters...
Patch Parameters setup successful.
-----------------
Loading PILOT...
Session ID of the current execution is: 21
Log file location: /var/opt/oracle/log/gridPatch/pilot_2022-03-28_01-33-05- PM
-----------------
Running initialization job Completed initialization job
 

-----------------
Running validate_crs_stack_state job Completed validate_crs_stack_state job
-----------------
Running validate_databases job Completed validate_databases job
-----------------
Running validate_disk_space job Completed validate_disk_space job
-----------------
Running validate_perm_on_dir job Completed validate_perm_on_dir job
-----------------
Running validate_users_umask job Completed validate_users_umask job
 

 	 

 
Running validate_nodes job Completed validate_nodes job
 
Running download_patches job Completed download_patches job
 

 	 

 
Running validate_target_version job Completed validate_target_version job
 
Running unpackage_patches job Completed unpackage_patches job
 

 	 

 
Running validate_backup_locations job Completed validate_backup_locations job
 
Running replace_opatch job Completed replace_opatch job
 

 	 

 
Running validate_source_home job Completed validate_source_home job
 
Running validate_patches job Completed validate_patches job
 

 	 

 
Running validate_creg_file_existence job Completed validate_creg_file_existence job
 
Running check_patch_conflicts job Completed check_patch_conflicts job
<>
 

187 varchar2
 

グリッド・インフラストラクチャへのパッチ適⽤前の事前チェックの実⾏
dbaascli grid patch --executePrereqs

<続き>

Running restore_opatch_prereqs_only job Completed restore_opatch_prereqs_only job

Running cleanup_prereqs_only job Completed cleanup_prereqs_only job
Grid Patching Prereqs Execution Successful. [root@orakawa-vgfvk1 ~]#





















188 varchar2
 


dbaascliを使⽤したOracle Grid Infrastructureへのパッチ適⽤
dbaascli grid patch


 
[root@vmem-6gl0h1 opc]# dbaascli grid patch --targetVersion 19.21.0.0.0
DBAAS CLI version 23.4.1.0.0
Executing command grid patch --targetVersion 19.21.0.0.0 Job id: 837916c6-3496-4124-9ff9-48dc55dbe5a0
Session log: /var/opt/oracle/log/grid/patch/dbaastools_2023-11-17_11- 53-52-AM_163990.log
Loading PILOT...
Session ID of the current execution is: 946
Log file location: /var/opt/oracle/log/grid/patch/pilot_2023-11- 17_11-53-56-AM_164600
 
Running validate_databases job Completed validate_databases job
-----------------
Running validate_disk_space job Completed validate_disk_space job
-----------------
Running validate_perm_on_dir job Completed validate_perm_on_dir job
-----------------
Running validate_users_umask job Completed validate_users_umask job
 

 	 

 
Running initialization job Completed initialization job
 
Running unpackage_patches job Completed unpackage_patches job
 

 	 

 
Running validate_nodes job Completed validate_nodes job
 
Running remove_zipped_patches job Completed remove_zipped_patches job
 

 	 

 
Running validate_target_version job Completed validate_target_version job
 
Running replace_opatch job Completed replace_opatch job
 

 	 

 
Running validate_backup_locations job Completed validate_backup_locations job
-----------------
Running validate_source_home job Completed validate_source_home job
-----------------
Running validate_creg_file_existence job Completed validate_creg_file_existence job
-----------------
Running validate_crs_stack_state job Completed validate_crs_stack_state job
1--8-9--C-o-p-y-r-ig-h-t-©--2-0-24, Oracle and/or its affiliates,
 
Running check_patch_conflicts job Completed check_patch_conflicts job
Acquiring write lock: _u01_app_19.0.0.0_grid Acquiring write lock: provisioning
-----------------
Running pre_patch_lock_manager job Completed pre_patch_lock_manager job
-----------------
Running create_global_backup_loc job Completed create_global_backup_loc job

<>
 


dbaascliを使⽤したOracle Grid Infrastructureへのパッチ適⽤
dbaascli grid patch

 

<続き>
-----------------
Running rotate_image_backup job Completed rotate_image_backup job
-----------------
Running backup_image job Completed backup_image job
 

Running rollback_conflicting_patches-vmem-6gl0h1 job Completed rollback_conflicting_patches-vmem-6gl0h1 job
-----------------
Running apply_gi_oneoffs_prepatch-vmem-6gl0h1 job Completed apply_gi_oneoffs_prepatch-vmem-6gl0h1 job
-----------------
Running apply_ru-vmem-6gl0h1 job Completed apply_ru-vmem-6gl0h1 job
 
Running rotate_config_backup job Completed rotate_config_backup job
 
Running stop_processes-vmem-6gl0h1 job Completed stop_processes-vmem-6gl0h1 job
 

 	 

 
Running backup_config-vmem-6gl0h1 job Completed backup_config-vmem-6gl0h1 job
 
Running apply_gi_oneoffs_postpatch-vmem-6gl0h1 job Completed apply_gi_oneoffs_postpatch-vmem-6gl0h1 job
 

 	 

 
Running save_local_backup-vmem-6gl0h1 job Completed save_local_backup-vmem-6gl0h1 job
 
Running rootadd_rdbms_script-vmem-6gl0h1 job Completed rootadd_rdbms_script-vmem-6gl0h1 job
 

 	 

 
Running stop_db_instances-vmem-6gl0h1 job Completed stop_db_instances-vmem-6gl0h1 job
 
Running run_rootcrs_postpatch-vmem-6gl0h1 job Completed run_rootcrs_postpatch-vmem-6gl0h1 job
 

 	 

 
Running run_rootcrs_prepatch-vmem-6gl0h1 job Completed run_rootcrs_prepatch-vmem-6gl0h1 job
 
Running start_db_instances-vmem-6gl0h1 job Completed start_db_instances-vmem-6gl0h1 job
 

 	 

 
Running stop_tfa-vmem-6gl0h1 job Completed stop_tfa-vmem-6gl0h1 job
 
Running update_opatch_log_ownership-vmem-6gl0h1 job Completed update_opatch_log_ownership-vmem-6gl0h1 job
 

 	 

 
Running check_processes-vmem-6gl0h1 job Completed check_processes-vmem-6gl0h1 job
 
Running disable_diagsnap-vmem-6gl0h1 job Completed disable_diagsnap-vmem-6gl0h1 job
 

 	 

 

190
 

varchar2
 
<>
 


dbaascliを使⽤したOracle Grid Infrastructureへのパッチ適⽤
dbaascli grid patch

 

<続き>
Running restore_tfa_status-vmem-6gl0h1 job Completed restore_tfa_status-vmem-6gl0h1 job
-----------------
Running remove_local_backup-vmem-6gl0h1 job Completed remove_local_backup-vmem-6gl0h1 job
-----------------
Running cleanup-vmem-6gl0h1 job Completed cleanup-vmem-6gl0h1 job
-----------------
Running backup_config_on_node-vmem-6gl0h2 job Completed backup_config_on_node-vmem-6gl0h2 job
-----------------
Running save_local_backup_on_node-vmem-6gl0h2 job Completed save_local_backup_on_node-vmem-6gl0h2 job
-----------------
Running stop_db_instances_on_node-vmem-6gl0h2 job Completed stop_db_instances_on_node-vmem-6gl0h2 job
-----------------
Running run_rootcrs_prepatch_on_node-vmem-6gl0h2 job Completed run_rootcrs_prepatch_on_node-vmem-6gl0h2 job
-----------------
Running stop_tfa_on_node-vmem-6gl0h2 job Completed stop_tfa_on_node-vmem-6gl0h2 job

Running stop_processes_on_node-vmem-6gl0h2 job Completed stop_processes_on_node-vmem-6gl0h2 job
 

Running copy_patched_home_from_local_node-vmem-6gl0h2 job Completed copy_patched_home_from_local_node-vmem-6gl0h2 job
-----------------
Running unpackage_config_backup_on_node-vmem-6gl0h2 job Completed unpackage_config_backup_on_node-vmem-6gl0h2 job
-----------------
Running run_rootcrs_postpatch_on_node-vmem-6gl0h2 job Completed run_rootcrs_postpatch_on_node-vmem-6gl0h2 job
-----------------
Running start_db_instances_on_node-vmem-6gl0h2 job Completed start_db_instances_on_node-vmem-6gl0h2 job
-----------------
Running disable_diagsnap_on_node-vmem-6gl0h2 job Completed disable_diagsnap_on_node-vmem-6gl0h2 job
-----------------
Running restore_tfa_status_on_node-vmem-6gl0h2 job Completed restore_tfa_status_on_node-vmem-6gl0h2 job
-----------------
Running remove_local_backup_on_node-vmem-6gl0h2 job Completed remove_local_backup_on_node-vmem-6gl0h2 job
-----------------
Running remove_local_patched_home_on_node-vmem-6gl0h2 job Completed remove_local_patched_home_on_node-vmem-6gl0h2 job
-----------------

<>
 

 
Running remove_home_on_node-vmem-6gl0h2 job Completed remove_home_on_node-vmem-6gl0h2 job


191 varchar2
 


dbaascliを使⽤したOracle Grid Infrastructureへのパッチ適⽤
dbaascli grid patch

<続き>

Running cleanup_patched_home_backup job Completed cleanup_patched_home_backup job

Running post_patch_validation job Completed post_patch_validation job

Running update_creg job Completed update_creg job

Running post_patch_lock_manager job Completed post_patch_lock_manager job Releasing lock: _u01_app_19.0.0.0_grid Releasing lock: provisioning

Running generate_system_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_system_details job
dbaascli execution completed











192 varchar2
 


dbaascliを使⽤したOracle Grid Infrastructureへのパッチ適⽤確認
dbaascli grid patch

[grid@vmem-6gl0h1 ~]$ opatch lspatches 35762404;OCW Interim patch for 35762404
35763448;ENFORCE V2 CHECKS ONLY FOR CLIENT CLOUD MNEMONIC QUERIES
34697081;NOT SHIPPING LIBAUTH_SDK_IAM.SO IN 23 SHIPHOME INSTALL
35638318;JDK BUNDLE PATCH 19.0.0.0.231017
35652062;ACFS RELEASE UPDATE 19.21.0.0.0 (35652062)
35643107;Database Release Update : 19.21.0.0.231017 (35643107)
35553096;TOMCAT RELEASE UPDATE 19.0.0.0.0 (35553096)
35099674;DSTV41 UPDATE - TZDATA2022G - NEED OJVM FIX
35050341;OJVM RELEASE UPDATE: 19.19.0.0.230418 (35050341)
33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)

OPatch succeeded.



















193 varchar2
 


dbaascliを使⽤したOracle Grid Infrastructureへのパッチのロールバック適⽤
dbaascli grid patch --rollback

 

[opc@vmem-6gl0h1 ~]$ sudo -s
[root@vmem-6gl0h1 opc]# dbaascli grid patch --targetVersion 19.21.0.0.0 --rollback
DBAAS CLI version 23.4.1.0.0
Executing command grid patch --targetVersion 19.21.0.0.0 --rollback Job id: 740847a4-c20f-4dc9-9486-6c632ce1d548
Session log: /var/opt/oracle/log/grid/patch/dbaastools_2023-11-17_01- 09-55-PM_240689.log
Loading PILOT...
Session ID of the current execution is: 950
Log file location: /var/opt/oracle/log/grid/patch/pilot_2023-11- 17_01-09-59-PM_241789
-----------------
Running initialization job Completed initialization job
-----------------
Running validate_backup_existence job Completed validate_backup_existence job Acquiring write lock: _u01_app_19.0.0.0_grid Acquiring write lock: provisioning
 

Running unpackage_image_backup-vmem-6gl0h2 job Completed unpackage_image_backup-vmem-6gl0h2 job
-----------------
Running unpackage_config_backup-vmem-6gl0h2 job Completed unpackage_config_backup-vmem-6gl0h2 job
-----------------
Running run_rootcrs_postpatch_for_rollback-vmem-6gl0h2 job Completed run_rootcrs_postpatch_for_rollback-vmem-6gl0h2 job
-----------------
Running remove_local_backup_for_rollback-vmem-6gl0h2 job Completed remove_local_backup_for_rollback-vmem-6gl0h2 job
-----------------
Running remove_global_config_backup_for_rollback-vmem-6gl0h2 job Completed remove_global_config_backup_for_rollback-vmem-6gl0h2 job
-----------------
Running cleanup_for_rollback-vmem-6gl0h2 job Completed cleanup_for_rollback-vmem-6gl0h2 job
-----------------
Running save_local_backup_for_rollback-vmem-6gl0h1 job Completed save_local_backup_for_rollback-vmem-6gl0h1 job
 

 	 

 
Running pre_rollback_lock_manager job Completed pre_rollback_lock_manager job

Running save_local_backup_for_rollback-vmem-6gl0h2 job Completed save_local_backup_for_rollback-vmem-6gl0h2 job
 
Running run_rootcrs_prepatch_for_rollback-vmem-6gl0h1 job Completed run_rootcrs_prepatch_for_rollback-vmem-6gl0h1 job

Running remove_home-vmem-6gl0h1 job Completed remove_home-vmem-6gl0h1 job
 

 	 

 
Running run_rootcrs_prepatch_for_rollback-vmem-6gl0h2 job Completed run_rootcrs_prepatch_for_rollback-vmem-6gl0h2 job
 
Running unpackage_image_backup-vmem-6gl0h1 job Completed unpackage_image_backup-vmem-6gl0h1 job
 

 	 

 
Running remove_home-vmem-6gl0h2 job Completed remove_home-vmem-6gl0h2 job
1--9-4--C-o-p-y-r-ig-h-t-©--2-0-24, Oracle and/or its affiliates,
 

<>
 


dbaascliを使⽤したOracle Grid Infrastructureへのパッチのロールバック適⽤
dbaascli grid patch --rollback

 

<続き>

Running unpackage_config_backup-vmem-6gl0h1 job Completed unpackage_config_backup-vmem-6gl0h1 job
-----------------
Running run_rootcrs_postpatch_for_rollback-vmem-6gl0h1 job Completed run_rootcrs_postpatch_for_rollback-vmem-6gl0h1 job
 

Running generate_system_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_system_details job
dbaascli execution completed
 

 
Running remove_local_backup_for_rollback-vmem-6gl0h1 job Completed remove_local_backup_for_rollback-vmem-6gl0h1 job

Running remove_global_config_backup_for_rollback-vmem-6gl0h1 job Completed remove_global_config_backup_for_rollback-vmem-6gl0h1 job

Running cleanup_for_rollback-vmem-6gl0h1 job Completed cleanup_for_rollback-vmem-6gl0h1 job

Running cleanup_patched_home_backup_on_rollback job Completed cleanup_patched_home_backup_on_rollback job

Running post_rollback_validation job Completed post_rollback_validation job

Running update_creg_for_rollback job Completed update_creg_for_rollback job

Running post_rollback_lock_manager job Completed post_rollback_lock_manager job Releasing lock: _u01_app_19.0.0.0_grid Releasing lock: provisioning


195 varchar2
 


dbaascliを使⽤したOracle Grid Infrastructureパッチのロールバック後確認
dbaascli grid patch --rollback

[grid@vmem-6gl0h1 ~]$ opatch lspatches
34243634;AIM ORA-600 [ATBMMN 1] - ATBMMN_MAKE_MODV_NULLABLE
34697081;NOT SHIPPING LIBAUTH_SDK_IAM.SO IN 23 SHIPHOME INSTALL
35080170;APPLIANCE.MODE IS DEFAULTED TO FALSE WITH ASM DISKGROUPS ON X10 EF CELLS AND CANNOT BE CHANGED
34993018;CLSF NEEDS TO CHECK I/O OSS ERROR CODE
34975490;14 SECS BLACKOUT WITH GRACEFUL CELL SERVICES SHUTDOWN
34810987;CACHE ASM METADATA IOS INTO EXADATA FLASHCACHE
35309390;OCW Interim patch for 35309390 35099674;DSTV41 UPDATE - TZDATA2022G - NEED OJVM FIX
35004974;JDK BUNDLE PATCH 19.0.0.0.230418
35050341;OJVM RELEASE UPDATE: 19.19.0.0.230418 (35050341)
35107512;TOMCAT RELEASE UPDATE 19.0.0.0.0 (35107512)
35050325;ACFS RELEASE UPDATE 19.19.0.0.0 (35050325)
35042068;Database Release Update : 19.19.0.0.230418 (35042068)
33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)

OPatch succeeded.















196 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid getDetails 現状確認

 
[root@wasa-ycfpo1 ~]# dbaascli grid getDetails
DBAAS CLI version 24.1.2.0.0
Executing command grid getDetails
Job id: 05f17098-517c-492c-a17a-814a58af0256
Session log: /var/opt/oracle/log/grid/getDetails/dbaastools_2024-04- 23_07-05-09-AM_17538.log
{
"createTime" : 1697432913000,
"updateTime" : 1697432913000,
"activeVersion" : "19.0.0.0.0", "state" : "NORMAL",
"scanListenerTCPPorts" : [ 1521 ], "scanListenerTCPSPorts" : [ 2484 ], "diskGroupDetails" : [ {
"name" : "DATA",
"redundancy" : "HIGH", "totalSize" : "4896GB", "freeSpace" : "3146GB"
}, {
"name" : "RECO",
"redundancy" : "HIGH", "totalSize" : "1224GB", "freeSpace" : "607GB"
}, {
"name" : "SPR", "redundancy" : null, "totalSize" : null, "freeSpace" : null
} ],
 
"giNodeLevelDetails" : { "wasa-ycfpo1" : {
"nodeName" : "wasa-ycfpo1", "homePath" : "/u01/app/19.0.0.0/grid", "version" : "19.19.0.0.0",
"status" : null
},
"wasa-ycfpo2" : {
"nodeName" : "wasa-ycfpo2", "homePath" : "/u01/app/19.0.0.0/grid", "version" : "19.19.0.0.0",
"status" : null
}
},
"messages" : [ ]
}
dbaascli execution completed [root@wasa-ycfpo1 ~]#
 



197 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid patch --createImage 空き領域が⾜りないとエラーになる
[root@wasa-ycfpo1 ~]# dbaascli grid patch --targetVersion 19.20.0.0.0 --createImage
DBAAS CLI version 24.1.2.0.0
Executing command grid patch --targetVersion 19.20.0.0.0 --createImage Job id: b65770e8-920c-4759-b3f8-bc1e60ca3946
Session log: /var/opt/oracle/log/grid/patch/dbaastools_2024-04-23_07-06-46-AM_26993.log Loading PILOT...
Session ID of the current execution is: 7227
Log file location: /var/opt/oracle/log/grid/patch/pilot_2024-04-23_07-06-53-AM_28972
Running initialization job Completed initialization job

Running validate_target_version job Completed validate_target_version job

Running validate_target_image_location job Completed validate_target_image_location job

Running validate_backup_locations job Completed validate_backup_locations job

Running validate_source job Completed validate_source job

Running validate_disk_space job Execution of validate_disk_space failed
[FATAL] [DBAAS-60032] Not enough space available on mount point '/acfs01' on node 'wasa-ycfpo1'.
CAUSE: Following directory paths ([/var/opt/oracle/dbaas_acfs/exapatch/custom_images, /var/opt/oracle/dbaas_acfs/exapatch/temp_create_loc_2024-04- 23_07-08-41-AM/inventory, /var/opt/oracle/dbaas_acfs/exapatch/temp_create_loc_2024-04-23_07-08-41-AM/base,
/var/opt/oracle/dbaas_acfs/exapatch/temp_create_loc_2024-04-23_07-08-41-AM/home]) are mounted on '/acfs01' which requires a free space of 57,633 MB; only 50,163 MB of space is available on the mount point.
*** Executing jobs which need to be run always... ***
******** PLUGIN EXECUTION FAILED ********
To resume this failed session, run the following command:
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli cswlib deleteLocal 空き容量を広げる
[root@wasa-ycfpo1 ~]# df -Th /acfs01
Filesystem	Type Size Used Avail Use% Mounted on
/dev/asm/acfsvol01-24 acfs 100G	52G	49G 52% /acfs01 [root@wasa-ycfpo1 ~]#
[root@wasa-ycfpo1 dbnid]# ls -lart total 480
drwx------ 2 oracle oinstall 20480 Oct 16 2023 19.18.0.0.0
lrwxrwxrwx 1 oracle oinstall	65 Oct 16 2023 db19000_bits_EXA.zip -> /var/opt/oracle/dbaas_acfs/dbnid/19.18.0.0.0/db19000_bits_EXA.zip
drwx------ 2 oracle oinstall 20480 Nov 24 06:10 19.20.0.0.0
drwx------ 2 oracle oinstall 20480 Jan 16 06:24 11.2.0.4.231017
lrwxrwxrwx 1 oracle oinstall	69 Jan 16 06:24 db11204_bits_EXA.zip -> /var/opt/oracle/dbaas_acfs/dbnid/11.2.0.4.231017/db11204_bits_EXA.zip
lrwxrwxrwx 1 oracle oinstall	68 Jan 16 06:24 exadbf_11204.tar.gz -> /var/opt/oracle/dbaas_acfs/dbnid/11.2.0.4.231017/exadbf_11204.tar.gz
drwx	2 oracle oinstall 20480 Jan 16 06:38 OCT2023
drwx------ 2 oracle oinstall 20480 Mar 7 05:52 19.22.0.0.0
drwxr-xr-x 9 oracle oinstall 20480 Mar 14 01:43 .
drwx------ 2 oracle oinstall 20480 Mar 14 01:46 19.21.0.0.0
drwxrwx	2 oracle oinstall 20480 Mar 14 05:44 tmp
drwxr-xr-x 30 oracle oinstall 20480 Apr 23 07:02 .. [root@wasa-ycfpo1 dbnid]# du -sh .
27G	.
[root@wasa-ycfpo1 dbnid]#
[root@wasa-ycfpo1 dbnid]# dbaascli cswlib deleteLocal	mageTag 19.20.0.0.0
DBAAS CLI version 24.1.2.0.0
Executing command cswlib deleteLocal	mageTag 19.20.0.0.0
Job id: ffe3c7ee-d6d6-4f64-9f70-6e2a5569ecc1
Session log: /var/opt/oracle/log/cswLib/deleteLocal/dbaastools_2024-04-23_07-15-59-AM_94033.log
Log file location: /var/opt/oracle/log/cswLib/deleteLocal/dbaastools_2024-04-23_07-15-59-AM_94033.log dbaascli execution completed
[root@wasa-ycfpo1 dbnid]# du -sh . 22G	.
[root@wasa-ycfpo1 dbnid]#

199 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid patch --createImage


 
[root@wasa-ycfpo1 ~]# dbaascli grid patch --targetVersion 19.20.0.0.0
--createImage
DBAAS CLI version 24.1.2.0.0
Executing command grid patch --targetVersion 19.20.0.0.0 -- createImage
Job id: 003bbeb3-11aa-4fec-b5d6-69d70a600860
Session log: /var/opt/oracle/log/grid/patch/dbaastools_2024-04-23_07- 19-36-AM_118326.log
Loading PILOT...
Session ID of the current execution is: 7228
Log file location: /var/opt/oracle/log/grid/patch/pilot_2024-04- 23_07-19-41-AM_118596
-----------------
Running initialization job Completed initialization job
-----------------
Running validate_target_version job Completed validate_target_version job
-----------------
Running validate_target_image_location job Completed validate_target_image_location job
-----------------
Running validate_backup_locations job Completed validate_backup_locations job
-----------------
Running validate_source job Completed validate_source job
-----------------
Running validate_disk_space job Completed validate_disk_space job
-----------------
 
Running unpackage_patches job Completed unpackage_patches job
-----------------
Running create_temp_locations job Completed create_temp_locations job
-----------------
Running copy_source_home job Completed copy_source_home job
-----------------
Running unlock_temp_home job Completed unlock_temp_home job
-----------------
Running attach_temp_home job Completed attach_temp_home job
-----------------
Running replace_opatch job Completed replace_opatch job
-----------------
Running check_patch_conflict job Completed check_patch_conflict job
-----------------
Running rollback_conflicting_patches job Completed rollback_conflicting_patches job
-----------------
Running apply_oneoffs_prepatch job Completed apply_oneoffs_prepatch job
-----------------
Running apply_ru job Completed apply_ru job
-----------------
Running apply_oneoffs_postpatch job Completed apply_oneoffs_postpatch job
 
200
 
varchar2
 
-----------------
Running create_gold_image job
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid patch --createImage
[root@wasa-ycfpo1 ~]# ls -alh /var/opt/oracle/dbaas_acfs/exapatch/custom_images/grid1920_2024-04-23_07-20-55-AM.zip
-rw-r--r-- 1 grid oinstall 7.7G Apr 23 08:01 /var/opt/oracle/dbaas_acfs/exapatch/custom_images/grid1920_2024-04-23_07-20-55-AM.zip [root@wasa-ycfpo1 ~]#
実⾏33分、


















201 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid patch --imageLocation


 
[root@wasa-ycfpo1 ~]# dbaascli grid patch --targetVersion 19.20.0.0.0
--imageLocation
/var/opt/oracle/dbaas_acfs/exapatch/custom_images/grid1920_2024-04- 23_07-20-55-AM.zip
DBAAS CLI version 24.1.2.0.0
Executing command grid patch --targetVersion 19.20.0.0.0 -- imageLocation
/var/opt/oracle/dbaas_acfs/exapatch/custom_images/grid1920_2024-04- 23_07-20-55-AM.zip
Job id: 303467f5-e26a-4ec4-84ab-8937d7a20fab
Session log: /var/opt/oracle/log/grid/patch/dbaastools_2024-04-23_08- 51-46-AM_15916.log
Loading PILOT...
Session ID of the current execution is: 7232
Log file location: /var/opt/oracle/log/grid/patch/pilot_2024-04- 23_08-51-52-AM_16539
-----------------
Running initialization job Completed initialization job
-----------------
Running validate_nodes job Completed validate_nodes job
-----------------
Running validate_image_location job Completed validate_image_location job
-----------------
Running validate_target_version job Completed validate_target_version job
-----------------
 
Running validate_backup_locations job Completed validate_backup_locations job
-----------------
Running validate_source_home job Completed validate_source_home job
-----------------
Running validate_creg_file_existence job Completed validate_creg_file_existence job
-----------------
Running validate_crs_stack_state job Completed validate_crs_stack_state job
-----------------
Running validate_databases job Completed validate_databases job
-----------------
Running validate_disk_space job Completed validate_disk_space job
-----------------
Running validate_perm_on_dir job Completed validate_perm_on_dir job
-----------------
Running unpackage_image job Completed unpackage_image job
-----------------
Running validate_image_product job Completed validate_image_product job
-----------------
Running validate_image_version job Completed validate_image_version job
 

 


202 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid patch --imageLocation


 
Running validate_image_patches job Completed validate_image_patches job
Acquiring write lock: _u01_app_19.0.0.0_grid Acquiring write lock: provisioning
-----------------
Running pre_patch_lock_manager job Completed pre_patch_lock_manager job
-----------------
Running create_global_backup_loc job Completed create_global_backup_loc job
-----------------
Running rotate_image_backup job Completed rotate_image_backup job
-----------------
Running rotate_config_backup job Completed rotate_config_backup job
-----------------
Running backup_image job Completed backup_image job
-----------------
Running backup_config-wasa-ycfpo1 job Completed backup_config-wasa-ycfpo1 job
-----------------
Running save_local_backup-wasa-ycfpo1 job Completed save_local_backup-wasa-ycfpo1 job
-----------------
Running stop_db_instances-wasa-ycfpo1 job Completed stop_db_instances-wasa-ycfpo1 job
-----------------
 
Running run_rootcrs_prepatch-wasa-ycfpo1 job Completed run_rootcrs_prepatch-wasa-ycfpo1 job
-----------------
Running stop_tfa-wasa-ycfpo1 job Completed stop_tfa-wasa-ycfpo1 job
-----------------
Running detach_source_home-wasa-ycfpo1 job Completed detach_source_home-wasa-ycfpo1 job
-----------------
Running clean_source_home-wasa-ycfpo1 job Completed clean_source_home-wasa-ycfpo1 job
-----------------
Running set_source_home_ownership-wasa-ycfpo1 job Completed set_source_home_ownership-wasa-ycfpo1 job
-----------------
Running move_image_software_to_source_home-wasa-ycfpo1 job Completed move_image_software_to_source_home-wasa-ycfpo1 job
-----------------
Running install_source_home-wasa-ycfpo1 job Completed install_source_home-wasa-ycfpo1 job
-----------------
Running set_inventory_crs_flag-wasa-ycfpo1 job Completed set_inventory_crs_flag-wasa-ycfpo1 job
-----------------
Running relink_options-wasa-ycfpo1 job Completed relink_options-wasa-ycfpo1 job
-----------------
Running unpackage_config_files-wasa-ycfpo1 job Completed unpackage_config_files-wasa-ycfpo1 job
 

 


203 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid patch --imageLocation


 
Running software_root_script-wasa-ycfpo1 job Completed software_root_script-wasa-ycfpo1 job
 
Running stop_db_instances_on_node-wasa-ycfpo2 job Completed stop_db_instances_on_node-wasa-ycfpo2 job
 

 	 

 
Running root_script_init-wasa-ycfpo1 job Completed root_script_init-wasa-ycfpo1 job
 
Running run_rootcrs_prepatch_on_node-wasa-ycfpo2 job Completed run_rootcrs_prepatch_on_node-wasa-ycfpo2 job
 

 	 

 
Running run_rootcrs_postpatch-wasa-ycfpo1 job Completed run_rootcrs_postpatch-wasa-ycfpo1 job
 
Running stop_tfa_on_node-wasa-ycfpo2 job Completed stop_tfa_on_node-wasa-ycfpo2 job
 

 	 

 
Running start_db_instances-wasa-ycfpo1 job Completed start_db_instances-wasa-ycfpo1 job
 
Running stop_processes_on_node-wasa-ycfpo2 job Completed stop_processes_on_node-wasa-ycfpo2 job
 

 	 

 
Running disable_diagsnap-wasa-ycfpo1 job Completed disable_diagsnap-wasa-ycfpo1 job
 
Running remove_home_on_node-wasa-ycfpo2 job Completed remove_home_on_node-wasa-ycfpo2 job
 

 	 

 
Running restore_tfa_status-wasa-ycfpo1 job Completed restore_tfa_status-wasa-ycfpo1 job
 
Running copy_patched_home_from_local_node-wasa-ycfpo2 job Completed copy_patched_home_from_local_node-wasa-ycfpo2 job
 

 	 

 
Running remove_local_backup-wasa-ycfpo1 job Completed remove_local_backup-wasa-ycfpo1 job
 
Running unpackage_config_backup_on_node-wasa-ycfpo2 job Completed unpackage_config_backup_on_node-wasa-ycfpo2 job
 

 	 

 
Running cleanup-wasa-ycfpo1 job Completed cleanup-wasa-ycfpo1 job
 
Running run_rootcrs_postpatch_on_node-wasa-ycfpo2 job Completed run_rootcrs_postpatch_on_node-wasa-ycfpo2 job
 

 	 

 
Running backup_config_on_node-wasa-ycfpo2 job Completed backup_config_on_node-wasa-ycfpo2 job
 
Running start_db_instances_on_node-wasa-ycfpo2 job Completed start_db_instances_on_node-wasa-ycfpo2 job
 

 	 

 
Running save_local_backup_on_node-wasa-ycfpo2 job Completed save_local_backup_on_node-wasa-ycfpo2 job
 
Running disable_diagsnap_on_node-wasa-ycfpo2 job Completed disable_diagsnap_on_node-wasa-ycfpo2 job
 

 	 


204 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid patch --imageLocation

Running restore_tfa_status_on_node-wasa-ycfpo2 job Completed restore_tfa_status_on_node-wasa-ycfpo2 job

Running remove_local_backup_on_node-wasa-ycfpo2 job Completed remove_local_backup_on_node-wasa-ycfpo2 job

Running remove_local_patched_home_on_node-wasa-ycfpo2 job Completed remove_local_patched_home_on_node-wasa-ycfpo2 job

Running cleanup_patched_home_backup job Completed cleanup_patched_home_backup job

Running post_patch_validation job Completed post_patch_validation job

Running update_creg job Completed update_creg job

Running post_patch_lock_manager job Completed post_patch_lock_manager job Releasing lock: _u01_app_19.0.0.0_grid Releasing lock: provisioning

Running generate_system_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed generate_system_details job
dbaascli execution completed [root@wasa-ycfpo1 ~]#
33分
createImage しないと 68分なので、早く終了できる
205 varchar2
 

GIソフトウェア・イメージを使⽤したOracle Grid Infrastructure (GI)へのパッチ適⽤
dbaascli grid getDetails 事後確認

 
[root@wasa-ycfpo1 ~]# dbaascli grid getDetails
DBAAS CLI version 24.1.2.0.0
Executing command grid getDetails
Job id: d43965a5-b588-4e1b-b453-fb7cae66d8eb
Session log: /var/opt/oracle/log/grid/getDetails/dbaastools_2024-04- 23_09-26-18-AM_374957.log
{
"createTime" : 1713863573000,
"updateTime" : 1713863573000,
"activeVersion" : "19.0.0.0.0", "state" : "NORMAL",
"scanListenerTCPPorts" : [ 1521 ], "scanListenerTCPSPorts" : [ 2484 ], "diskGroupDetails" : [ {
"name" : "DATA",
"redundancy" : "HIGH", "totalSize" : "4896GB", "freeSpace" : "3146GB"
}, {
"name" : "RECO",
"redundancy" : "HIGH", "totalSize" : "1224GB", "freeSpace" : "588GB"
}, {
"name" : "SPR", "redundancy" : null, "totalSize" : null, "freeSpace" : null
 
} ],
"giNodeLevelDetails" : { "wasa-ycfpo1" : {
"nodeName" : "wasa-ycfpo1", "homePath" : "/u01/app/19.0.0.0/grid", "version" : "19.20.0.0.0",
"status" : null
},
"wasa-ycfpo2" : {
"nodeName" : "wasa-ycfpo2", "homePath" : "/u01/app/19.0.0.0/grid", "version" : "19.20.0.0.0",
"status" : null
}
},
"messages" : [ ]
}
dbaascli execution completed [root@wasa-ycfpo1 ~]#
 




206 varchar2
 











アップグレード











207 varchar2
 

データベースのアップグレード
dbaascli database upgrade --help

[root@saburo-5puyv1 ~]# dbaascli database upgrade --help
DBAAS CLI version 24.1.2.0.0
Executing command database upgrade --help
database upgrade - performs the upgrade of an Oracle database.

Usage: dbaascli database upgrade --dbname 
{
--targetHome 
| --targetHomeName 
}
{
[--executePrereqs]
| [--rollback [--sessionID ]]
| [--resume [--sessionID ]]
}
{
[--standBy]
| ( [--allStandbyPrepared] [--upgradeOptions ] [--increaseCompatibleParameter] )
}
[--removeGRP] [--waitForCompletion ]











208 varchar2
 

データベースのアップグレード
dbaascli database upgrade --help

 

Where:
 

--dbname - Oracle database name.
--targetHome | --targetHomeName
--targetHome - target Oracle database home location.
--targetHomeName - target Oracle database home name. [--executePrereqs | --rollback | --resume]
[--executePrereqs - to run the Pre-Upgrade checks only. ]
[--rollback - to revert an Oracle database to its original Oracle home. ] [--sessionID - to resume a specific session id.]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--standBy | (--allStandbyPrepared --upgradeOptions --increaseCompatibleParameter)]
[--standBy - use this to upgrade Oracle standby databases in Data Guard configurations. ]
[--allStandbyPrepared - required for Data Guard configured Oracle primary databases. Flag to acknowledge that all the required operations are performed
 
on the Oracle standby databases prior to performing the upgrade of Oracle primary database. ]
[--upgradeOptions - to pass DBUA specific arguments to perform the Oracle database upgrade. Refer to the corresponding Oracle documentation for the supported arguments and options. ]
[--increaseCompatibleParameter - to automatically increase the compatible parameter as part of the database upgrade. The parameter will get increased only if the database upgrade was successful. ]
[--removeGRP - to automatically remove the Guaranteed Restore Point (GRP) backup only if the upgrade of the database was successful. ] [--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]

[root@saburo-5puyv1 ~]#








209 varchar2
 

データベースのアップグレード 事前確認
dbaascli database --getDetails

 

[root@saburo-5puyv1 ~]# dbaascli system getDatabases
DBAAS CLI version 24.1.2.0.0
Executing command system getDatabases
Job id: a6387237-447a-4f4b-b978-7b7cd614d8ad
Session log: /var/opt/oracle/log/system/getDatabases/dbaastools_2024-03- 14_05-28-21-PM_389149.log
{
"DB0313" : {
"dbSyncTime" : 1710404749576,
"createTime" : 1710395479000,
"updateTime" : 0, "dbName" : "DB0313",
"dbUniqueName" : "DB0313_3k9_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 2000465870,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "40GB",
"dbUsedSize" : "1GB", "totalFraSize" : "383GB", "fraSizeUsed" : "15GB", "dbKmsKeyOcid" : null, "isCDB" : false, "dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false,
"patchVersion" : "11.2.0.4.231017",
 

"resourceOCIDSettings" : { "tenancyOCID" :
"ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tk guca",
"compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpez oghgmh7a",
"resourceOCID" : "ocid1.database.oc1.ap-osaka- 1.anvwsljrssl65iqads3wtth4ijbjp2apzaffzfawkc6jay2h5dtteedwocqq",
"resourceID" : "fd3d4810-e9cf-42c5-8a73-d5abfc53f50c", "resourceType" : "CDB",
"parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" : null
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "instanceName" : "DB03132", "version" : "11.2.0.4.231017",
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_2", "status" : "OPEN"
 

210 varchar2
 

データベースのアップグレード 事前確認
dbaascli database --getDetails

<続き>
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "instanceName" : "DB03131", "version" : "11.2.0.4.231017",
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_2", "status" : "OPEN"
}
},
"pdbs" : null,
"messages" : [ ]
}
}
dbaascli execution completed [root@saburo-5puyv1 ~]#















211 varchar2
 

データベースのアップグレード 事前確認
dbaascli system getDBHomes


[root@saburo-5puyv1 ~]# dbaascli system getDBHomes DBAAS CLI version 24.1.2.0.0
Executing command system getDBHomes
Job id: 10ca839d-1d0e-4265-984e-0487d9cf0d97
Session log: /var/opt/oracle/log/system/getDBHomes/dbaastools_2024-03-14_05-54-56-PM_165733.log
{
"OraHome1" : {
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1", "homeName" : "OraHome1",
"version" : "19.22.0.0.0",
"createTime" : 1710147213945,
"updateTime" : 1710317105918, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "version" : "19.22.0.0.0",
"patches" : [ "34697081", "35692839", "35239280", "35926646", "35949090", "35967489", "35943157" ]
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "version" : "19.22.0.0.0",
"patches" : [ "34697081", "35692839", "35239280", "35926646", "35949090", "35967489", "35943157" ]
}
},
"messages" : [ ]
},




212 varchar2
 

データベースのアップグレード 事前確認
dbaascli system getDBHomes


続き
"OraHome2" : {
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_1", "homeName" : "OraHome2",
"version" : "11.2.0.4.231017",
"createTime" : 1710314743029,
"updateTime" : 1710314743029, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "version" : "11.2.0.4.231017",
"patches" : [ "25139545", "33613829", "33991024", "35638387", "22291453", "30432076", "31335037", "32327201", "32558369", "34006614", "34533061",
"34698179", "35099667", "35220732", "35239280", "35313335", "35685663", "32224895", "22366322", "31228670", "21289564", "35574089" ]
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "version" : "11.2.0.4.231017",
"patches" : [ "25139545", "33613829", "33991024", "35638387", "22291453", "30432076", "31335037", "32327201", "32558369", "34006614", "34533061",
"34698179", "35099667", "35220732", "35239280", "35313335", "35685663", "32224895", "22366322", "31228670", "21289564", "35574089" ]
}
},
"messages" : [ ]
},
"OraHome3" : {
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_2", "homeName" : "OraHome3",
"version" : "11.2.0.4.231017",
"createTime" : 1710394822227,
"updateTime" : 1710395608351, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
 
213
 
C"ospaybruigrhot-5©pu2y0v224", O:ra{cle and/or its affiliates,
"nodeName" : "saburo-5puyv2",
 


データベースのアップグレード  実⾏
dbaascli database upgrade

 

[root@saburo-5puyv1 ~]# dbaascli database upgrade --dbname DB0313 -- targetHome /u02/app/oracle/product/19.0.0.0/dbhome_1
DBAAS CLI version 24.1.2.0.0
Executing command database upgrade --dbname DB0313 --targetHome
/u02/app/oracle/product/19.0.0.0/dbhome_1 Job id: 6cbc9f3f-df1b-418c-a31e-e939db44639e
Session log: /var/opt/oracle/log/DB0313/database/upgrade/dbaastools_2024-03- 14_06-00-29-PM_207042.log
Loading PILOT...
Session ID of the current execution is: 519
Log file location: /var/opt/oracle/log/DB0313/database/upgrade/pilot_2024- 03-14_06-00-35-PM_207477
-----------------
Running Initialize_plugin job Completed Initialize_plugin job
-----------------
Running Validate_plugin_inputs job Completed Validate_plugin_inputs job
-----------------
Running Validate_required_passwords job Completed Validate_required_passwords job
-----------------
Running Check_database_role job Completed Check_database_role job
 

-----------------
Running Check_tde_autologin_wallet_configuration job Completed Check_tde_autologin_wallet_configuration job
-----------------
Running RDBMS_pre_upgrade_checks job
Logs directory: /u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/preupgrade/2024- 03-14180046
Performing Pre-Upgrade Checks...
============================
Pre-Upgrade Checks Results
=============================
/u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/preupgrade/2024-03- 14180046/DB0313_3k9_kix/upgrade.xml
/u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/preupgrade/2024-03- 14180046/DB0313_3k9_kix/preupgrade_fixups.sql
/u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/preupgrade/2024-03- 14180046/DB0313_3k9_kix/postupgrade_fixups.sql
[INFO] [DBAAS-51024] Refer to the following log file for any required action(s) that need to be reviewed or addressed:
/var/opt/oracle/log/DB0313/database/upgrade/preupgrade_summary_2024-03- 14_06-01-37-PM.log.
[INFO] [DBAAS-51023] No required manual actions were detected as part of the pre-upgrade check results.
Completed RDBMS_pre_upgrade_checks job
 

 	 

 
Running Create_pre_upgrade_log_location job Completed Create_pre_upgrade_log_location job
 
Running Pre_upgrade_fixups job Completed Pre_upgrade_fixups job
 

 	 

 
Running Check_database_statistics job Completed Check_database_statistics job
 
Running Check_valid_db_components job Completed Check_valid_db_components job
 

 

214 varchar2
 

データベースのアップグレード  実⾏
dbaascli database upgrade

 

Running Collect_pre_upgrade_diagnostics job
[INFO] [DBAAS-51025] Refer to the following log file for a database diagnostics report before performing the upgrade:
/var/opt/oracle/log/DB0313/database/upgrade/pre_upgrade_diagnostics_DB0313_2 024-03-14_06-02-34-PM.log.
Completed Collect_pre_upgrade_diagnostics job
-----------------
Running Check_em_database_control_repository job Completed Check_em_database_control_repository job
 

Running Create_configuration_files_backup job
[INFO] [DBAAS-52014] Backup of CREG, ENV, SPFILE and PFILE to
/var/opt/oracle/dbaas_acfs/upgrade_backup/DB0313. Completed Create_configuration_files_backup job
-----------------
Running Remove_database_cron_jobs job
[INFO] [DBAAS-52015] Crontab entry deleted. After upgrade reconfigure the backup again.
Completed Remove_database_cron_jobs job
 

 	 

 
Running Check_spfile_pointer_integrity job Completed Check_spfile_pointer_integrity job
-----------------
Running Check_archive_log_enabling job Completed Check_archive_log_enabling job
-----------------
Running Check_source_timezone_version job Completed Check_source_timezone_version job
-----------------
Running Check_required_gi_version job Completed Check_required_gi_version job
-----------------
Running Check_network_configuration_permissions job Completed Check_network_configuration_permissions job Acquiring read lock: _u02_app_oracle_product_11.2.0_dbhome_2
-----------------
Running Create_guaranteed_restore_point job
[INFO] [DBAAS-52013] Guaranteed restore point created, restore point name: DBAAS#UPGRADE#2024037418838.
Completed Create_guaranteed_restore_point job
 
Running Disable_concurrent_stats_collection job
[INFO] [DBAAS-52016] CONCURRENT statistics set to FALSE. Completed Disable_concurrent_stats_collection job
-----------------
Running Fixup_for_oracle_label_security job Completed Fixup_for_oracle_label_security job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_1
-----------------
Running Copy_network_configuration job Completed Copy_network_configuration job
-----------------
Running Update_timezone_files job Completed Update_timezone_files job
-----------------
Running Create_upgrade_log_location job Completed Create_upgrade_log_location job Acquiring write lock: db0313
-----------------
 

 

215 varchar2
 

データベースのアップグレード  実⾏
dbaascli database upgrade


Running Perform_database_upgrade job	39%	complete
Logs directory: /u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03-	39%	complete
14180247	40%	complete
Performing Pre-Upgrade Checks...	40%	complete
============================	40%	complete
Pre-Upgrade Checks Results	40%	complete
=============================	41%	complete
/u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03-	41%	complete
14180247/DB0313_3k9_kix/upgrade.xml	41%	complete
/u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03-	41%	complete
14180247/DB0313_3k9_kix/preupgrade_fixups.sql	42%	complete
/u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03-	42%	complete
14180247/DB0313_3k9_kix/postupgrade_fixups.sql	42%	complete
[WARNING] [DBT-20060] One or more Oracle upgrade pre-checks resulted in	42%	complete
warning conditions that may require further review.	43%	complete
ACTION: Refer to the pre-upgrade results location for details:	43%	complete
/u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03-	43%	complete
14180247/DB0313_3k9_kix	43%	complete
12%	complete	44%	complete
15%	complete	44%	complete
25%	complete	44%	complete
37%	complete	44%	complete
37%	complete	45%	complete
37%	complete	45%	complete
38%	complete	45%	complete
38%	complete	45%	complete
38%	complete	46%	complete
38%	complete	46%	complete
39%	complete	46%	complete
39%	complete	46%	complete


216 varchar2
 

データベースのアップグレード  実⾏
dbaascli database upgrade

 

47%	complete
47%	complete
47%	complete
47%	complete
48%	complete
48%	complete
48%	complete
48%	complete
49%	complete
49%	complete
49%	complete
49%	complete
50%	complete
62%	complete
75%	complete
76%	complete
77%	complete
87%	complete
100% complete
Completed Perform_database_upgrade job Releasing lock: db0313
 

Running Collect_post_upgrade_diagnostics job
[INFO] [DBAAS-52017] Refer to the following log file for a database diagnostics report after the upgrade:
/var/opt/oracle/log/DB0313/database/upgrade/post_upgrade_diagnostics_DB0313_ 2024-03-14_06-26-33-PM.log.
Completed Collect_post_upgrade_diagnostics job
-----------------
Running Update_database_upgrade_status job Completed Update_database_upgrade_status job
-----------------
Running Post_upgrade_fixups job Completed Post_upgrade_fixups job
-----------------
Running Update_tns_admin_environment_variable job Completed Update_tns_admin_environment_variable job
-----------------
Running Sync_database_pfile job Completed Sync_database_pfile job
-----------------
Running Move_database_password_file_to_asm job Completed Move_database_password_file_to_asm job
 

 	 

 
Running Update_source_cloud_registry_metadata job Completed Update_source_cloud_registry_metadata job
 
Running Verify_tde_configuration job Completed Verify_tde_configuration job
 

 	 

 
Running Verify_database_upgrade_logs job Completed Verify_database_upgrade_logs job
 
Running Update_oratab job Completed Update_oratab job
 

 	 
Running Update_oraenv_files job Completed Update_oraenv_files job


217 varchar2
 

データベースのアップグレード  実⾏
dbaascli database upgrade

Running Update_database_metadata job Completed Update_database_metadata job

Running Sync_network_configuration job Completed Sync_network_configuration job
Releasing lock: _u02_app_oracle_product_11.2.0_dbhome_2 Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_1

Running Perform_cluster_configuration_sync job Completed Perform_cluster_configuration_sync job

Running Verify_cluster_configuration_sync job Completed Verify_cluster_configuration_sync job

Running Configure_backup_assistant job Completed Configure_backup_assistant job

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
dbaascli execution completed [root@saburo-5puyv1 ~]#








218 varchar2
 

データベースのアップグレード 事後確認
dbaascli system getDatabases


[root@saburo-5puyv1 ~]# dbaascli system getDatabases
DBAAS CLI version 24.1.2.0.0
Executing command system getDatabases
Job id: 0b4e25a4-7d36-411c-9d9e-79cbce9a3755
Session log: /var/opt/oracle/log/system/getDatabases/dbaastools_2024-03-15_10-02-22-AM_329676.log
{
"DB0313" : {
"dbSyncTime" : 1710464290337,
"createTime" : 1710395479000,
"updateTime" : 0, "dbName" : "DB0313",
"dbUniqueName" : "DB0313_3k9_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 2000465870,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "40GB",
"dbUsedSize" : "1GB", "totalFraSize" : "383GB", "fraSizeUsed" : "20GB", "dbKmsKeyOcid" : null, "isCDB" : false, "dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false, "patchVersion" : "19.22.0.0.0",


219 varchar2
 

データベースのアップグレード 事後確認
dbaascli system getDatabases

"resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkguca", "compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezoghgmh7a", "resourceOCID" : "ocid1.database.oc1.ap-osaka-1.anvwsljrssl65iqads3wtth4ijbjp2apzaffzfawkc6jay2h5dtteedwocqq", "resourceID" : "fd3d4810-e9cf-42c5-8a73-d5abfc53f50c",
"resourceType" : "CDB", "parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "AZyE5LWDU099vwICh3f/cxEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "instanceName" : "DB03132", "version" : "19.22.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1",
"status" : "OPEN"
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "instanceName" : "DB03131", "version" : "19.22.0.0.0",
"homePath" : "/u02/app/oracle/product/19.0.0.0/dbhome_1",
 
220
 
Cop"ysrtigahttus©" 2:02"4O,POENra"cle and/or its affiliates,
}
 


データベースのアップグレード  ロールバック
dbaascli database upgrade --rollback

 

[root@saburo-5puyv1 ~]# dbaascli database upgrade --dbname DB0313 -- rollback --targetHome /u02/app/oracle/product/11.2.0/dbhome_2 DBAAS CLI version 24.1.2.0.0
Executing command database upgrade --dbname DB0313 --rollback --targetHome
/u02/app/oracle/product/11.2.0/dbhome_2
Job id: a7918a25-e88c-42f1-a7e7-aa659f96f58c
Session log: /var/opt/oracle/log/DB0313/database/upgrade/dbaastools_2024-03- 15_10-05-11-AM_348524.log
Loading PILOT...
Session ID of the current execution is: 552
Log file location: /var/opt/oracle/log/DB0313/database/upgrade/pilot_2024- 03-15_10-05-22-AM_350165
-----------------
Running Initialize_plugin job Completed Initialize_plugin job
-----------------
Running Validate_plugin_inputs job Completed Validate_plugin_inputs job
-----------------
Running Validate_required_passwords job Completed Validate_required_passwords job Acquiring write lock: db0313
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_1 Acquiring read lock: _u02_app_oracle_product_11.2.0_dbhome_2
-----------------
Running Verify_upgrade_operation_state job Completed Verify_upgrade_operation_state job
-----------------
Running Shutdown_database job Completed Shutdown_database job
 

Running Disable_database job Completed Disable_database job
-----------------
Running Mount_database_in_source_home job Completed Mount_database_in_source_home job
-----------------
Running Flashback_source_database job Completed Flashback_source_database job
-----------------
Running Shutdown_local_instance job Completed Shutdown_local_instance job
-----------------
Running Restore_oraenv_files job Completed Restore_oraenv_files job
-----------------
Running Restore_network_configuration job Completed Restore_network_configuration job
-----------------
Running Restore_database_metadata job Completed Restore_database_metadata job
-----------------
Running Restore_oratab job Completed Restore_oratab job
-----------------
Running Mount_restored_local_instance job Completed Mount_restored_local_instance job
-----------------
Running Open_local_instance job Completed Open_local_instance job
-----------------
 

 

221 varchar2
 

データベースのアップグレード  ロールバック
dbaascli database upgrade --rollback

Running Downgrade_database_service job Completed Downgrade_database_service job

Running Restore_tns_admin_environment_variable job Completed Restore_tns_admin_environment_variable job

Running Restore_source_spfile_pointer job Completed Restore_source_spfile_pointer job

Running Verify_rac_database_configuration job Completed Verify_rac_database_configuration job

Running Update_database_reference job Completed Update_database_reference job

Running Enable_restored_database job Completed Enable_restored_database job

Running Start_restored_database job Completed Start_restored_database job

Running Clean_upgrade_operation_metadata job Completed Clean_upgrade_operation_metadata job Releasing lock: db0313
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_1
Releasing lock: _u02_app_oracle_product_11.2.0_dbhome_2

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
dbaascli execution completed
2[r2o2ot@Csoapbyurrigoh-t5p©uy2v0124~,]O#racle and/or its affiliates,
 

データベースのアップグレード ロールバック 事後確認
dbaascli system getDatabases

[root@saburo-5puyv1 ~]# dbaascli system getDatabases DBAAS CLI version 24.1.2.0.0
Executing command system getDatabases
Job id: 483dbf36-3999-4322-a77b-e6437fa51365
Session log: /var/opt/oracle/log/system/getDatabases/dbaastools_2024-03-15_10-44-30-AM_218044.log
{
"DB0313" : {
"dbSyncTime" : 1710466135535,
"createTime" : 1710395479000,
"updateTime" : 0, "dbName" : "DB0313",
"dbUniqueName" : "DB0313_3k9_kix",
"dbDomain" : "sub04210756190.exavcn.oraclevcn.com", "dbId" : 2000465870,
"cpuCount" : 4, "sgaTarget" : "7600MB",
"pgaAggregateTarget" : "5000MB", "dbSize" : "40GB",
"dbUsedSize" : "1GB", "totalFraSize" : "383GB", "fraSizeUsed" : "21GB", "dbKmsKeyOcid" : null, "isCDB" : false, "dbRole" : "PRIMARY",
"dbType" : "RAC",
"dbClass" : "OLTP",
"dbEdition" : "EE", "dgEnabled" : false,
"patchVersion" : "11.2.0.4.231017",


223 varchar2
 

データベースのアップグレード ロールバック 事後確認
dbaascli system getDatabases

"resourceOCIDSettings" : {
"tenancyOCID" : "ocid1.tenancy.oc1..aaaaaaaa3mb7wrcy2ls3u3jsy2soq5ck3lc3q4mczitpdaymbuazc5tkguca", "compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjpezoghgmh7a", "resourceOCID" : "ocid1.database.oc1.ap-osaka-1.anvwsljrssl65iqads3wtth4ijbjp2apzaffzfawkc6jay2h5dtteedwocqq", "resourceID" : "fd3d4810-e9cf-42c5-8a73-d5abfc53f50c",
"resourceType" : "CDB", "parentResourceID" : null
},
"tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" : null
},
"dbCharacterSet" : { "characterSet" : "AL32UTF8", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", "dbLanguage" : "AMERICAN"
},
"dbNodeLevelDetails" : { "saburo-5puyv2" : {
"nodeName" : "saburo-5puyv2", "instanceName" : "DB03132", "version" : "11.2.0.4.231017",
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_2",
"status" : "OPEN"
},
"saburo-5puyv1" : {
"nodeName" : "saburo-5puyv1", "instanceName" : "DB03131", "version" : "11.2.0.4.231017",
"homePath" : "/u02/app/oracle/product/11.2.0/dbhome_2",
 
224
 
Cop"ysrtigahttus©" 2:02"4O,POENra"cle and/or its affiliates,
}
 


gridのアップグレード
dbaascli grid upgrade --help

[root@orcl0329-pfutx1 ~]# dbaascli grid upgrade --help
DBAAS CLI version 22.1.1.1.0
Executing command grid upgrade --help
grid upgrade - upgrade the grid from one major version to another.

Usage: dbaascli grid upgrade --targetVersion  [--containerURL ] [--executePrereqs] [--resume [--sessionID ]] [--rollback] [-- targetHome ] [--softwareOnly]

Where:
--targetVersion - target version to be upgraded to.
[--containerURL - custom url for fetching GI Image. ] [--executePrereqs - option to execute prereqs. ]
[--resume - To resume the previous execution]
[--sessionID - to resume a specific session id.] [--rollback - option to revert failed execution. ]
[--targetHome - path of the target grid home for the operation which is different from the current grid home. ] [--softwareOnly - option to install only grid software. ]














225 varchar2
 

gridのアップグレード 事前確認
dbaascli grid upgrade --executePrereqs





















226 varchar2
 

gridのアップグレード  実⾏
dbaascli grid upgrade





















227 varchar2
 

gridのアップグレード 実⾏後確認
dbaascli grid upgrade





















228 varchar2
 











PDBの管理











229 varchar2
 


PDBコマンド⼀覧
dbaascli pdb --help

[root@wasa-ycfpo1 ~]# dbaascli pdb --help DBAAS CLI version 24.1.1.0.0
Executing command pdb --help
pdb localClone - clone a PDB from another PDB in the same database. pdb getConnectString - get connectString of the specified PDB.
pdb remoteClone - clone the specified PDB from an another database. pdb close - close a PDB.
pdb create - create a new PDB. pdb open - open a PDB.
pdb relocate - relocate the specified PDB from remote DB into local DB. pdb delete - delete a PDB.
pdb bounce - bounce the PDB.
pdb getDetails - get the details of provided PDB in the database. pdb backup - performs PDB backup operations.
pdb recover - performs PDB recovery. pdb refresh - refresh a specified PDB.

[root@wasa-ycfpo1 ~]#













230 varchar2
 


PDBコマンド⼀覧
dbaascli pdb --getConnectString

[root@taro-3nusm1 ~]# dbaascli pdb getConnectString --help DBAAS CLI version 24.1.1.0.0
Executing command pdb getConnectString --help
pdb getConnectString - get connectString of the specified PDB.

Usage: dbaascli pdb getConnectString --dbname 
{
--pdbName 
| --pdbUID 
}

Where:
--dbname - Oracle database name.
--pdbName | --pdbUID
--pdbName - PDB name.
--pdbUID - identifier of PDB.

[root@taro-3nusm1 ~]#













232 varchar2
 


PDBコマンド⼀覧
dbaascli pdb --getConnectString

[root@taro-3nusm1 ~]# dbaascli pdb getConnectString --dbname DB0206 --pdbname PDB1
DBAAS CLI version 24.1.1.0.0
Executing command pdb getConnectString --dbname DB0206 --pdbname PDB1 Job id: e91c2b5a-9698-44fd-b3c3-c5bf0db39ee5
Session log: /var/opt/oracle/log/DB0206/pdb/getConnectString/dbaastools_2024-02-19_03-34-50-PM_214258.log [ {
"serviceName" : "DB0206_PDB1.paas.oracle.com",
"connectString" : "taro-3nusm-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0206_PDB1.paas.oracle.com", "tcpsConnectStrings" : [ "taro-3nusm-scan.sub04210756190.exavcn.oraclevcn.com:2484/DB0206_PDB1.paas.oracle.com" ]
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#


















233 varchar2
 

PDBのバウンス
dbaascli pdb bounce

[root@orakawa-vgfvk1 ~]# dbaascli pdb bounce --dbName dbcli01 --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb bounce --dbName dbcli01 --pdbname DBCLI01PDB01 Job id: 0f60aad0-e23d-418c-973c-46994dbbb9ec
dbaascli execution completed

























234 varchar2
 

PDBを停⽌
dbaascli pdb close

[root@orakawa-vgfvk1 ~]# dbaascli pdb close --dbName dbcli01 --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb close --dbName dbcli01 --pdbname DBCLI01PDB01 Job id: 336d0d67-408a-4859-9f65-31412c2de034
dbaascli execution completed

[oracle@orakawa-vgfvk1 ~]$ sqlplus / as sysdba SQL> show pdbs
CON_ID CON_NAME	OPEN MODE RESTRICTED

2 PDB$SEED	READ ONLY NO
3 DBCLI01PDB01	MOUNTED
















235 varchar2
 

PDBを停⽌
dbaascli pdb close

[root@orakawa-vgfvk1 ~]# dbaascli pdb list --dbName dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --dbName dbcli01 Job id: 1ec38883-d4d4-4235-896f-cfb337c45ce1 [ {
"pdbName" : "DBCLI01PDB01", "pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2",
"openMode" : "MOUNTED"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1",
"openMode" : "MOUNTED"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com",
"connectString" : "orakawa-vgfvk-scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas.oracle.com"
} ]
} ]
dbaascli execution completed


236 varchar2
 


PDBのオープン
dbaascli pdb open --help

[root@taro-3nusm1 ~]# dbaascli pdb open --help DBAAS CLI version 24.1.1.0.0
Executing command pdb open --help pdb open - open a PDB.

Usage: dbaascli pdb open
{
--pdbName 
| --pdbUID 
}
--dbname  [--openMode ] [--startServices ] [--waitForCompletion ] [--setPDBRefreshModeNone [--skipPDBRefresh] [-- pdbAdminUserName ]] [--executePrereqs] [--resume [--sessionID ]] [--blobLocation ]

Where:
--pdbName | --pdbUID
--pdbName - PDB name.
--pdbUID - identifier of PDB.
--dbname - Oracle database name.
[--openMode - Specify one of PDB open modes 'READ_ONLY', 'READ_WRITE'.]
[--startServices - start all or list all services corresponding to a PDB. Accepted values are ''all'' or comma separated PDB services.] [--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
[--setPDBRefreshModeNone - to convert refreshable PDB to non-refreshable PDB ] [--skipPDBRefresh - to skip refreshable PDB refresh]
[--pdbAdminUserName - specifies new PDB admin user name]
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]

[root@taro-3nusm1 ~]#


237 varchar2
 

PDBのオープン
dbaascli pdb open

[root@orakawa-vgfvk1 ~]# dbaascli pdb open --dbName dbcli01 --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb open --dbName dbcli01 --pdbname DBCLI01PDB01 Job id: be9f07c6-b3b7-46ec-a997-94fb36377a21
dbaascli execution completed

























238 varchar2
 

PDBのオープン
dbaascli pdb open

[root@orakawa-vgfvk1 ~]# dbaascli pdb getdetails --dbName dbcli01 --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb getdetails --dbName dbcli01 --pdbname DBCLI01PDB01 Job id: a67c12f8-8a3f-4d8a-89dd-8460b359a01b
{
"pdbName" : "DBCLI01PDB01", "pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2",
"openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1",
"openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com",
"connectString" : "orakawa-vgfvk-scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas.oracle.com"
} ]
}
dbaascli execution completed


239 varchar2
 


PDBの作成
dbaascli pdb create --help

[root@wasa-ycfpo1 ~]# dbaascli pdb create --help DBAAS CLI version 24.1.1.0.0
Executing command pdb create --help pdb create - create a new PDB.

Usage: dbaascli pdb create --pdbName  --dbName  [--maxCPU ] [--maxSize ] [--pdbAdminUserName ] [--lockPDBAdminAccount
] [--resume [--sessionID ]] [--executePrereqs] [--waitForCompletion ]
{
[--blobLocation ]
| [--standbyBlobFromPrimary ]
}
[--pdbKMSKeyVersionOCID ]

Where:
--pdbName - specifies new PDB name.
--dbName - Oracle database name.
[--maxCPU - specifies max number of CPUs to be allocated for the PDB. ] [--maxSize - specifies max storage size in GB for the new PDB. ]
[--pdbAdminUserName - specifies new PDB admin user name]
[--lockPDBAdminAccount - specifies true or false to lock the PDB admin user account. Default value is true] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [--blobLocation | --standbyBlobFromPrimary]
[--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
[--standbyBlobFromPrimary - specifies the location of the standby blob file which is prepared from the primary database. This is required only for standby operations. ]
[--pdbKMSKeyVersionOCID - OCI Vault key version OCID to be set for PDB. This is applicable only if database is OCI Vault configured]

[root@wasa-ycfpo1 ~]#

240 varchar2
 

PDBの作成
dbaascli pdb create

 

[root@orakawa-vgfvk1 ~]# dbaascli pdb create --dbName dbcli01 --pdbname DBCLI01PDB02
DBAAS CLI version 22.1.1.1.0
Executing command pdb create --dbName dbcli01 --pdbname DBCLI01PDB02 Job id: 047929e7-9ae9-45d0-8dd7-3e6df1d82435
Loading PILOT...
Session ID of the current execution is: 37
Log file location: /var/opt/oracle/log/dbcli01/pdb/create/pilot_2022-03- 28_04-51-39-PM
 

-----------------
Running Set_pdb_admin_user_profile job Completed Set_pdb_admin_user_profile job
-----------------
Running Lock_pdb_admin_user job Completed Lock_pdb_admin_user job
-----------------
Running Register_ocids job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job
 
Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed
 

 
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running PDB_creation job Completed PDB_creation job

Running Load_pdb_details job Completed Load_pdb_details job

Running Configure_pdb_service job Completed Configure_pdb_service job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job


242 varchar2
 

PDBの削除
dbaascli pdb delete --help

[oracle@vm01wasa-zb1hy1 ~]$ dbaascli pdb delete --help
DBAAS CLI version 23.1.1.0.1
Executing command pdb delete --help pdb delete - delete a PDB.

Usage: dbaascli pdb delete --dbName 
{
--pdbName 
| --pdbUID 
}
[--executePrereqs] [--waitForCompletion ] [--resume [--sessionID ]] [--allStandbyPrepared] [--cleanupRelocatedPDB]

Where:
--dbName - Oracle database name.
--pdbName | --pdbUID
--pdbName - specifies name of the PDB to delete.
--pdbUID - specifies UID of the PDB to delete.
[--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--allStandbyPrepared - specifies to confirm that the operation has been successfully run on all the standby databases.] [--cleanupRelocatedPDB - option to cleanup source database after a PDB has been relocated. ]
[oracle@vm01wasa-zb1hy1 ~]$






243 varchar2
 

PDBの削除
dbaascli pdb delete

[root@orakawa-vgfvk1 ~]# dbaascli pdb delete --dbName dbcli01 --pdbname DBCLI01PDB02
DBAAS CLI version 22.1.1.1.0
Executing command pdb delete --dbName dbcli01 --pdbname DBCLI01PDB02 Job id: 82612c7f-4725-4c88-9bca-90b6ee66a147
Loading PILOT...
Session ID of the current execution is: 38
Log file location: /var/opt/oracle/log/dbcli01/pdb/delete/pilot_2022-03-28_04-56-00-PM

Running Plugin_initialization job Completed Plugin_initialization job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Delete_pdb_service job Completed Delete_pdb_service job

Running PDB_deletion job Completed PDB_deletion job

Running Delete_tnsnames_entry job Completed Delete_tnsnames_entry job

Running Cleanup_resource_ocid_file job Completed Cleanup_resource_ocid_file job

Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed


245 varchar2
 
PDBの削除
コンソールからの⾒え⽅
DB削除時と同じく、Failedになるので、コンソールから Terminated する










削除後










246 varchar2
 

PDBの詳細確認
dbaascli pdb getDetails --help

[root@orakawa-vgfvk1 ~]# dbaascli pdb getDetails --help
DBAAS CLI version 22.1.1.1.0
Executing command pdb getDetails --help
pdb getDetails - get the details of provided PDB in the database.

Usage: dbaascli pdb getDetails --dbname 
{
--pdbName 
| --pdbUID 
}

Where:
--dbname - Oracle database name.
--pdbName | --pdbUID
--pdbName - PDB name.
--pdbUID - Identifier of PDB.















247 varchar2
 

PDBの詳細確認
dbaascli pdb getDetails

[root@orakawa-vgfvk1 ~]# dbaascli pdb getDetails --dbname dbcli01 --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb getDetails --pdbname DBCLI01PDB01 Job id: 64be9375-4ff6-44d2-b0d8-89f40468afb8
{
"pdbName" : "DBCLI01PDB01", "pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com",
"connectString" : "orakawa-vgfvk-scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas.oracle.com"
} ]
}
dbaascli execution completed


248 varchar2
 

CDB内のPDBの⼀覧
dbaascli pdb list --help

[root@orakawa-vgfvk1 ~]# dbaascli pdb list --help
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --help
pdb list - get information of PDBs in a db.
Usage: dbaascli pdb list --dbname  Where:
--dbname - Oracle database name.





















249 varchar2
 

CDB内のPDBの⼀覧
dbaascli pdb list

[root@orakawa-vgfvk1 ~]# dbaascli pdb list --dbName dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --dbName dbcli01 Job id: 0cc22b44-5f05-40fd-b460-ed95f0307dff [ {
"pdbName" : "DBCLI01PDB01", "pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com",
"connectString" : "orakawa-vgfvk-scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas.oracle.com"
} ]
} ]
dbaascli execution completed


250 varchar2
 


同⼀CDB内のローカルクローンPDB作成
dbaascli pdb localClone --help

[root@wasa-ycfpo1 ~]# dbaascli pdb localclone --help DBAAS CLI version 24.1.1.0.0
Executing command pdb localclone --help
pdb localClone - clone a PDB from another PDB in the same database.

Usage: dbaascli pdb localClone --pdbName  --dbName  [--targetPDBName ] [--powerLimit ] [--maxCPU ] [--maxSize ] [--resume [--sessionID ]] [--executePrereqs] [--waitForCompletion ]
{
[--blobLocation ]
| [--standbyBlobFromPrimary ]
}
[--excludeUserTablespaces ] [--excludePDBData ] [--pdbAdminUserName ] [--lockPDBAdminAccount ] [-- sourcePDBServiceConvertList ]

Where:
--pdbName - specifies source PDB name to clone.
--dbName - Oracle database name.
[--targetPDBName - specifies name for the target PDB (new cloned PDB). ]
[--powerLimit - specifies degree of parallelism to be used for the clone operation.] [--maxCPU - specifies max number of CPUs to be allocated for the PDB. ]
[--maxSize - specifies max storage size in GB for the new PDB. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [--blobLocation | --standbyBlobFromPrimary]
[--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
[--standbyBlobFromPrimary - specifies the location of the standby blob file which is prepared from the primary database. This is required only for standby operations. ]
[--excludeUserTablespaces - option to skip user tablespaces, example t1,t2,t3. ] [--excludePDBData - specifies true/yes to skip user data from source PDB. ]
[--pdbAdminUserName - specifies new PDB admin user name]
 
251
 
Cop[y-r-iglhotck©PD2B0A2d4m,iOnAracccloeuanntd/-orsiptsecaifffiliiaetsest,rue or false to lock the PDB admin user account. Default value is true]
[--sourcePDBServiceConvertList - specifies comma separated list of source to target service names which need to be converted. Syntax is
 


同⼀CDB内のローカルクローンPDB作成
dbaascli pdb localClone

 

[root@orakawa-vgfvk1 ~]# dbaascli pdb localClone --dbName dbcli01 -- pdbName DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb localClone --dbName dbcli01 --pdbName DBCLI01PDB01 Job id: b06c6f36-fd17-4df8-a0a1-07de4ca90b34
Loading PILOT...
Session ID of the current execution is: 40
Log file location: /var/opt/oracle/log/dbcli01/pdb/localClone/pilot_2022-03- 28_05-02-12-PM
 

-----------------
Running Set_pdb_admin_user_profile job Completed Set_pdb_admin_user_profile job
-----------------
Running Lock_pdb_admin_user job Completed Lock_pdb_admin_user job
-----------------
Running Register_ocids job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job
 
Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed
 

 
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running PDB_creation job Completed PDB_creation job

Running Load_pdb_details job Completed Load_pdb_details job

Running Configure_pdb_service job Completed Configure_pdb_service job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job


253 varchar2
 
同⼀CDB内のローカルクローンPDB作成作成後の確認
dbaascli pdb localClone

 

[root@orakawa-vgfvk1 ~]# dbaascli pdb list --dbName dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --dbName dbcli01 Job id: 946bf399-972b-4f8d-8d86-aec9b0112bcb [ {
“pdbName” : “DBCLI01PDB01”, ★クローン元
"pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com", "connectString" : "orakawa-vgfvk-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas. oracle.com"
} ]
 

}, {
“pdbName” : “DBCLI01_DBCLI01PDB01”, ★クローンして作成したPDB
"pdbUID" : "2527289634",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB43BDF61CB7F94DE0533500000AF910", "dbid" : "2527289634",
"conId" : "4", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_DBCLI01_DBCLI01PDB01.paas.oracle.com", "connectString" : "orakawa-vgfvk-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_DBCLI01_DBCLI01PDB 01.paas.oracle.com"
} ]
} ]
dbaascli execution completed
 

254 varchar2
 
同⼀CDB内のローカルクローンPDB作成クローンのPDB名を指定して作成 dbaascli pdb localClone


 
[root@orakawa-vgfvk1 ~]# dbaascli pdb localClone --dbName dbcli01 -- pdbName DBCLI01PDB01 --targetPDBName CLONE_PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb localClone --dbName dbcli01 --pdbName DBCLI01PDB01 -- targetPDBName CLONE_PDB01
Job id: 84f2296c-3f09-444d-81c2-3ad2a7f8a140 Loading PILOT...
Session ID of the current execution is: 42
Log file location: /var/opt/oracle/log/dbcli01/pdb/localClone/pilot_2022-03- 28_05-07-34-PM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
 
-----------------
Running Set_pdb_admin_user_profile job Completed Set_pdb_admin_user_profile job
-----------------
Running Lock_pdb_admin_user job Completed Lock_pdb_admin_user job
-----------------
Running Register_ocids job
Skipping. Job is detected as not applicable.
-----------------
Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed
 

 
Running Validate_input_params job Completed Validate_input_params job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running PDB_creation job Completed PDB_creation job

Running Load_pdb_details job Completed Load_pdb_details job

Running Configure_pdb_service job Completed Configure_pdb_service job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job

255 varchar2
 
同⼀CDB内のローカルクローンPDB作成クローン後の確認
dbaascli pdb localClone

 

[root@orakawa-vgfvk1 ~]# dbaascli pdb list --dbName dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --dbName dbcli01 Job id: f70e7252-0446-40cb-87ba-188daa1478fc [ {
“pdbName” : “CLONE_PDB01”, ★名前指定でクローンしたPDB
"pdbUID" : "1350521126",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB43D125DB4AA987E0533500000A5A8E", "dbid" : "1350521126",
"conId" : "5", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_CLONE_PDB01.paas.oracle.com", "connectString" : "orakawa-vgfvk-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_CLONE_PDB01.paas.o racle.com"
} ]
 

}, {
"pdbName" : "DBCLI01PDB01", "pdbUID" : "3034439310",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB3D7503BCD57E96E0533500000A2869", "dbid" : "3034439310",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com", "connectString" : "orakawa-vgfvk-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas. oracle.com"
} ]
<>
 

256 varchar2
 
同⼀CDB内のローカルクローンPDB作成クローン後の確認
dbaascli pdb localClone

<続き>
}, {
"pdbName" : "DBCLI01_DBCLI01PDB01", "pdbUID" : "2527289634",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB43BDF61CB7F94DE0533500000AF910", "dbid" : "2527289634",
"conId" : "4", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orakawa-vgfvk2" : {
"nodeName" : "orakawa-vgfvk2", "openMode" : "READ_WRITE"
},
"orakawa-vgfvk1" : {
"nodeName" : "orakawa-vgfvk1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_DBCLI01_DBCLI01PDB01.paas.oracle.com",
"connectString" : "orakawa-vgfvk-scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_DBCLI01_DBCLI01PDB01.paas.oracle.com"
} ]
} ]
dbaascli execution completed




257 varchar2
 

別CDBへのリモートクローンPDB作成コマンド⼀覧
dbaascli pdb remoteClone --help

[root@wasa-ycfpo1 ~]# dbaascli pdb remoteclone --help DBAAS CLI version 24.1.1.0.0
Executing command pdb remoteclone --help
pdb remoteClone - clone the specified PDB from an another database.

Usage: dbaascli pdb remoteClone --pdbName  --dbName  --sourceDBConnectionString  [--targetPDBName ] [--powerLimit ] [-- maxCPU ] [--maxSize ] [--resume [--sessionID ]] [--executePrereqs] [--waitForCompletion ] [--sourcePDBExportedTDEKeyFile ]
{
[--blobLocation ]
| [--standbyBlobFromPrimary ]
}
[--excludeUserTablespaces ] [--excludePDBData ] [--pdbAdminUserName ] [--lockPDBAdminAccount ] [-- sourcePDBServiceConvertList ] [--refreshablePDB --refreshMode  [--refreshIntervalInMinutes ]] [--updateDBBlockCacheSize]
{
[--dblinkUsername  [--honorCaseSensitiveUserName]]
| [--dbLinkName ]
}

Where:
--pdbName - specifies source PDB name to clone.
--dbName - specifies target database name.
--sourceDBConnectionString - source database connection string in the format of :/. [--targetPDBName - specifies name for the target PDB (new cloned PDB). ]
[--powerLimit - specifies degree of parallelism to be used for the clone operation.] [--maxCPU - specifies max number of CPUs to be allocated for the PDB. ]
[--maxSize - specifies max storage size in GB for the new PDB. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]



258 varchar2
 

別CDBへのリモートクローンPDB作成コマンド⼀覧
dbaascli pdb remoteClone --help

[root@wasa-ycfpo1 ~]# dbaascli pdb remoteclone --help

 
Where:続き
 


[--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
[--sourcePDBExportedTDEKeyFile - specifies source pdb exported key file. This variable is applicable to only 12.1 database.] [--blobLocation | --standbyBlobFromPrimary]
[--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
[--standbyBlobFromPrimary - specifies the location of the standby blob file which is prepared from the primary database. This is required only for
 
standby operations. ]
[--excludeUserTablespaces - option to skip user tablespaces, example t1,t2,t3. ] [--excludePDBData - specifies true/yes to skip user data from source PDB. ]
[--pdbAdminUserName - specifies new PDB admin user name]
[--lockPDBAdminAccount - specifies true or false to lock the PDB admin user account. Default value is true]
[--sourcePDBServiceConvertList - specifies comma separated list of source to target service names which need to be converted. Syntax is source_srv1:new_srv1,source_srv2:new_srv2.]
[--refreshablePDB - to create refreshable PDB ]
--refreshMode - specifies refresh mode for refreshable PDB. Valid values : AUTO|MANUAL
[--refreshIntervalInMinutes - specifies refresh interval for refreshablePDB in minutes]
[--updateDBBlockCacheSize - option to enable application to set db block cache size initialization parameters in order to support data copy with different block size.]
[--dblinkUsername | --dbLinkName]
[--dblinkUsername - specifies an existing common user of a remote database, used for database link to connect to remote database] [--honorCaseSensitiveUserName - to indicate specified username is case sensitive]
[--dbLinkName - specifies an existing database link name in the target database that points to the remote database]

[root@wasa-ycfpo1 ~]#



259 varchar2
 
別CDBへのリモートクローンPDB作成
ソースデータベース(CDB)の接続記述⼦確認
dbaascli pdb remoteClone

 

[root@ecc2c1n1 dbhome_1]# cd network/ [root@ecc2c1n1 network]# ls
admin install jlib lib log mesg tools trace [root@ecc2c1n1 network]# cd admin/
[root@ecc2c1n1 admin]# ls
DB220403 DB220404 dbcli03 dbcli04 samples shrept.lst [root@ecc2c1n1 admin]# cd dbcli04
[root@ecc2c1n1 dbcli04]# cat tnsnames.ora
DBCLI04=
(DESCRIPTION= (ADDRESS=
(PROTOCOL=TCP)
(HOST=ecc2c1-scan) (PORT=1521))
(CONNECT_DATA= (SERVER=DEDICATED)
(SERVICE_NAME=dbcli04.jp.osc.oracle.com) (FAILOVER_MODE=
(TYPE=select) (METHOD=basic))))
 

DBCLI04_PDB4=
(DESCRIPTION= (ADDRESS=
(PROTOCOL=TCP)
(HOST=ecc2c1-scan) (PORT=1521))
(CONNECT_DATA= (SERVER=DEDICATED)
(SERVICE_NAME=dbcli04_PDB4.paas.oracle.com) (FAILOVER_MODE=
(TYPE=select) (METHOD=basic))))

[root@ecc2c1n1 dbcli04]#
 
PDB4=
(DESCRIPTION= (ADDRESS=
(PROTOCOL=TCP)
(HOST=ecc2c1-scan) (PORT=1521))
(CONNECT_DATA= (SERVER=DEDICATED)
(SERVICE_NAME=PDB4.jp.osc.oracle.com) (FAILOVER_MODE=
(TYPE=select) (METHOD=basic))))
261 varchar2
 
別CDBへのリモートクローンPDB作成
ソースデータベース(CDB)の接続記述⼦確認
dbaascli pdb remoteClone

 

[oracle@orcl0329-pfutx1 ~]$ cd $ORACLE_HOME/network/admin/dbcli01 [oracle@orcl0329-pfutx1 dbcli01]$ cat tnsnames.ora DBCLI01_CZR_KIX=
(DESCRIPTION= (ADDRESS=
(PROTOCOL=TCP)
(HOST=orcl0329-pfutx-scan.sub03230643360.orakawavcn.oraclevcn.com) (PORT=1521))
(CONNECT_DATA= (SERVER=DEDICATED)

(SERVICE_NAME=dbcli01_czr_kix.sub03230643360.orakawavcn.oraclevcn.com)))
DBCLI01=
(DESCRIPTION= (ADDRESS=
(PROTOCOL=TCP)
(HOST=orcl0329-pfutx- scan.sub03230643360.orakawavcn.oraclevcn.com)
(PORT=1521)) (CONNECT_DATA=
(SERVER=DEDICATED)

(SERVICE_NAME=dbcli01_czr_kix.sub03230643360.orakawavcn.oraclevcn.com)  (FAILOVER_MODE=
(TYPE=select)
(METHOD=basic))))
 

DBCLI01PDB01=
(DESCRIPTION= (ADDRESS=
(PROTOCOL=TCP)
(HOST=orcl0329-pfutx-scan.sub03230643360.orakawavcn.oraclevcn.com) (PORT=1521))
(CONNECT_DATA= (SERVER=DEDICATED)
(SERVICE_NAME=dbcli01pdb01.sub03230643360.orakawavcn.oraclevcn.com) (FAILOVER_MODE=
(TYPE=select) (METHOD=basic))))
DBCLI01_DBCLI01PDB01= (DESCRIPTION= (ADDRESS=
(PROTOCOL=TCP)
(HOST=orcl0329-pfutx-scan.sub03230643360.orakawavcn.oraclevcn.com) (PORT=1521))
(CONNECT_DATA= (SERVER=DEDICATED)
(SERVICE_NAME=dbcli01_dbcli01pdb01.paas.oracle.com) (FAILOVER_MODE=
(TYPE=select) (METHOD=basic))))
 





262 varchar2
 

別CDBへのリモートクローンPDB作成
dbaascli pdb remoteClone

 

[root@orcl0329-pfutx1 ~]# dbaascli pdb remoteClone -- sourceDBconnectionString orcl0329- pfutx1.****.oraclevcn.com:1521/dbcli01_czr_.****.oraclevcn.com --pdbName DBCLI01PDB01 --dbname dbcli02
DBAAS CLI version 22.1.1.1.0
Executing command pdb remoteClone --sourceDBconnectionString orcl0329-pfutx- scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_czr_kix.sub0323064 3360.orakawavcn.oraclevcn.com --pdbName DBCLI01PDB01
Job id: 633cb170-8c4a-407b-a0d6-88057fb3fdb4 Enter REMOTE_DB_SYS_PASSWORD:

Enter REMOTE_DB_SYS_PASSWORD (reconfirmation):

Loading PILOT...
Session ID of the current execution is: 24
Log file location: /var/opt/oracle/log/dbcli02/pdb/remoteClone/pilot_2022- 03-30_05-01-05-AM
 

Running PDB_creation job Completed PDB_creation job
-----------------
Running Load_pdb_details job Completed Load_pdb_details job
-----------------
Running Configure_pdb_service job Completed Configure_pdb_service job
-----------------
Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job
-----------------
Running Set_pdb_admin_user_profile job Completed Set_pdb_admin_user_profile job
-----------------
Running Lock_pdb_admin_user job Completed Lock_pdb_admin_user job
 

 	 

 
Running Plugin_initialization job Enter REMOTE_DB_SYS_PASSWORD
*************
Completed Plugin_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job
 
Running Register_ocids job
Skipping. Job is detected as not applicable.
-----------------
Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed
 

 
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job




263 varchar2
 
別CDBへのリモートクローンPDB作成作成後の確認
dbaascli pdb remoteClone

 

[root@orcl0329-pfutx1 ~]# dbaascli pdb list --dbName dbcli02
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --dbName dbcli02 Job id: 0e2fa202-146d-4514-b52e-66942cb38e6c [ {
"pdbName" : "DBCLI02PDB01", "pdbUID" : "1883940535",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB69026AA1F16CB5E0531E00000A109D", "dbid" : "1883940535",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl0329-pfutx2" : {
"nodeName" : "orcl0329-pfutx2", "openMode" : "READ_WRITE"
},
"orcl0329-pfutx1" : {
"nodeName" : "orcl0329-pfutx1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli02_DBCLI02PDB01.paas.oracle.com", "connectString" : "orcl0329-pfutx-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli02_DBCLI02PDB01.paas. oracle.com"
} ]
 

}, {
“pdbName” : “DBCLI02_DBCLI01PDB01”,★クローンしたPDB
"pdbUID" : "639353669",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB6978B4E3F99C5EE0531E00000A0392", "dbid" : "639353669",
"conId" : "4", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl0329-pfutx2" : {
"nodeName" : "orcl0329-pfutx2", "openMode" : "READ_WRITE"
},
"orcl0329-pfutx1" : {
"nodeName" : "orcl0329-pfutx1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli02_DBCLI02_DBCLI01PDB01.paas.oracle.com", "connectString" : "orcl0329-pfutx-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli02_DBCLI02_DBCLI01PDB 01.paas.oracle.com"
} ]
} ]
dbaascli execution completed
 

264 varchar2
 

リモートデータベースからローカルデータベースへのPDBのリロケート
dbaascli pdb relocate --help

[root@orcl0329-pfutx1 ~]# dbaascli pdb relocate --help
DBAAS CLI version 22.1.1.1.0
Executing command pdb relocate --help
pdb relocate - relocate the specified PDB from remote DB into local DB.

Usage: dbaascli pdb relocate --pdbName  --dbName  --sourceDBConnectionString  [--targetPDBName ] [--powerLimit ] [-- maxCpu ] [--maxSize ] [--resume [--sessionID ]] [--executePrereqs ] [--sourcePDBServices ] [--sourcePDBReadOnlyServices
] [--waitForCompletion ] [--primaryDBWalletTar ]

Where:
--pdbName - Specify source pdb name to relocate.
--dbName - Specify target database name.
--sourceDBConnectionString - Source database connection string in the format of :/. [--targetPDBName - Specify name for the target pdb (new relocated pdb). ]
[--powerLimit - Specify degree of parallelism to be used for the relocate operation.] [--maxCpu - Specify max number of CPUs to be allocated for the PDB. ]
[--maxSize - Specify max storage size in GB for the new PDB. ] [--resume - To resume the previous execution]
[--sessionID - to resume a specific session id.]
[--executePrereqs - Specify yes to run only the prereqs for this operation. Valid values : yes|no ] [--sourcePDBServices - Specify comma separated source PDB services]
[--sourcePDBReadOnlyServices - Specify comma separated source PDB read only services]
[--waitForCompletion - Specify false to run the operation in background. Valid values : true|false.]
[--primaryDBWalletTar - specify primary database wallet tar file. This is required only for standby database PDB operations. ]







265 varchar2
 

リモートデータベースからローカルデータベースへのPDBのリロケート
dbaascli pdb relocate --help

[oracle@vm01wasa-zb1hy1 ~]$ dbaascli pdb relocate --help
DBAAS CLI version 23.1.1.0.1
Executing command pdb relocate --help
pdb relocate - relocate the specified PDB from remote DB into local DB.

Usage: dbaascli pdb relocate --pdbName  --dbName  --sourceDBConnectionString  [--targetPDBName ] [--powerLimit ] [-- maxCpu ] [--maxSize ] [--resume [--sessionID ]] [--executePrereqs] [--sourcePDBServices ] [--sourcePDBReadOnlyServices ] [-- waitForCompletion ]
{
[--blobLocation ]
| [--standbyBlobFromPrimary ]
}
[--upgradePDB ] [--updateDBBlockCacheSize]
{
[--skipOpenPDB]
| [--completePDBRelocate]
}

 









266
 
Where:
--pdbName - specifies source PDB name to relocate.
--dbName - specifies target database name.
--sourceDBConnectionString - source database connection string in the format of :/. [--targetPDBName - specifies name for the target PDB (new relocated pdb). ]
[--powerLimit - specifies degree of parallelism to be used for the relocate operation.] [--maxCpu - specifies max number of CPUs to be allocated for the PDB. ]
[--maxSize - specifies max storage size in GB for the new PDB. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--executePrereqs - run the prerequisite checks and report the results. ] [--sourcePDBServices - specifies comma separated source PDB services]
[--sourcePDBReadOnlyServices - specifies comma separated source PDB read only services]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
Cop[y-r-igbhltob©Lo2c0a2t4i,oOnra|cl-e-asntda/nodrbiytsBlaoffbilFiartoemsP,rimary]
[--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
 


リモートデータベースからローカルデータベースへのPDBのリロケート
dbaascli pdb relocate

 

[root@orcl0329-pfutx1 ~]# dbaascli pdb relocate --dbname dbcli01 --pdbname DBCLI02_DBCLI01PDB01 --sourceDBconnectionString orcl0329- pfutx****.oraclevcn.com:1521/dbcli02.*****.oraclevcn.com
DBAAS CLI version 22.1.1.1.0
Executing command pdb relocate --pdbname DBCLI02_DBCLI01PDB01 -- sourceDBconnectionString orcl0329-pfutx- scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli02_vwc_kix.sub0323064 3360.orakawavcn.oraclevcn.com
Job id: b15f3c7f-4b10-460b-acdc-97530dd69db2 Enter REMOTE_DB_SYS_PASSWORD:

Enter REMOTE_DB_SYS_PASSWORD (reconfirmation):

Loading PILOT...
Session ID of the current execution is: 27
Log file location: /var/opt/oracle/log/dbcli01/pdb/relocate/pilot_2022-03- 30_05-13-38-AM
 

Running PDB_creation job Completed PDB_creation job
-----------------
Running Load_pdb_details job Completed Load_pdb_details job
-----------------
Running Configure_pdb_service job Completed Configure_pdb_service job
-----------------
Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job
-----------------
Running Set_pdb_admin_user_profile job Completed Set_pdb_admin_user_profile job
-----------------
Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Plugin_initialization job Enter REMOTE_DB_SYS_PASSWORD
**********
Completed Plugin_initialization job
-----------------
Running Validate_input_params job Completed Validate_input_params job
 
Running Register_ocids job
Skipping. Job is detected as not applicable.
-----------------
Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed
 

 
Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job




267 varchar2
 
リモートデータベースからローカルデータベースへのPDBのリロケートリロケート後の確認
dbaascli pdb relocate
--ソースDBから対象のPDBがなくなっている事を確認 [root@orcl0329-pfutx1 ~]# dbaascli pdb list --dbName dbcli02
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --dbName dbcli02 Job id: 85762ba4-eaf8-4c41-90ab-f36c745362d7 [ {
"pdbName" : "DBCLI02PDB01", "pdbUID" : "1883940535",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB69026AA1F16CB5E0531E00000A109D", "dbid" : "1883940535",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl0329-pfutx2" : {
"nodeName" : "orcl0329-pfutx2", "openMode" : "READ_WRITE"
},
"orcl0329-pfutx1" : {
"nodeName" : "orcl0329-pfutx1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli02_DBCLI02PDB01.paas.oracle.com",
"connectString" : "orcl0329-pfutx-scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli02_DBCLI02PDB01.paas.oracle.com"
} ]
} ]
dbaascli execution completed
268 varchar2
 
リモートデータベースからローカルデータベースへのPDBのリロケートリロケート後の確認
dbaascli pdb relocate

 

--ターゲットDB上にPDBがいる事を確認

[root@orcl0329-pfutx1 ~]# dbaascli pdb list --dbName dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command pdb list --dbName dbcli01 Job id: 9f11160d-fbfb-4c95-bcb1-9747a439cc63 [ {
"pdbName" : "DBCLI01PDB01", "pdbUID" : "365264838",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB64D3DCF5B2E44DE0531E00000AD211", "dbid" : "365264838",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl0329-pfutx2" : {
"nodeName" : "orcl0329-pfutx2", "openMode" : "READ_WRITE"
},
"orcl0329-pfutx1" : {
"nodeName" : "orcl0329-pfutx1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_dbcli01pdb01.paas.oracle.com", "connectString" : "orcl0329-pfutx-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_dbcli01pdb01.paas. oracle.com" } ]
 

}, {
"pdbName" : "DBCLI02_DBCLI01PDB01",
"pdbUID" : "170684233",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DB6978B4E3F99C5EE0531E00000A0392", "dbid" : "639353669",
"conId" : "4", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl0329-pfutx2" : {
"nodeName" : "orcl0329-pfutx2", "openMode" : "READ_WRITE"
},
"orcl0329-pfutx1" : {
"nodeName" : "orcl0329-pfutx1", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "dbcli01_DBCLI02_DBCLI01PDB01.paas.oracle.com", "connectString" : "orcl0329-pfutx-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli01_DBCLI02_DBCLI01PDB 01.paas.oracle.com"
}, {
"serviceName" : "dbcli02_DBCLI02_DBCLI01PDB01.paas.oracle.com", "connectString" : "orcl0329-pfutx-
scan.sub03230643360.orakawavcn.oraclevcn.com:1521/dbcli02_DBCLI02_DBCLI01PDB 01.paas.oracle.com"
} ]
} ]
 
269
 
varchar2
 
dbaascli execution completed
 
 

Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

[root@wasa-ycfpo1 ~]# dbaascli pdb remoteclone --help	コマンド実行はソースDBの存在するVMのrootユーザー DBAAS CLI version 24.1.1.0.0
Executing command pdb remoteclone --help
pdb remoteClone - clone the specified PDB from an another database.

Usage: dbaascli pdb remoteClone --pdbName  --dbName  --sourceDBConnectionString  [--targetPDBName ] [--refreshablePDB -- refreshMode  [--refreshIntervalInMinutes ]]
{
[--dblinkUsername ]
| [--dbLinkName ]
}

Where:
--pdbName - specifies source PDB name to clone.	ソースのPDB名
--dbName - specifies target database name.	ソースのDB名
--sourceDBConnectionString - source database connection string in the format of :/. [--targetPDBName - specifies name for the target PDB (new cloned PDB). ]

[--refreshablePDB - to create refreshable PDB ]
--refreshMode - specifies refresh mode for refreshable PDB. Valid values : AUTO|MANUAL	AUTOかMANUALを指定
[--refreshIntervalInMinutes - specifies refresh interval for refreshablePDB in minutes]	AUTOの際はrefreshIntevalも必要(MANUAL時は不要)
[--dblinkUsername | --dbLinkName]
[--dblinkUsername - specifies an existing common user of a remote database, used for database link to connect to remote database]	事前作成必要
[--honorCaseSensitiveUserName - to indicate specified username is case sensitive]
[--dbLinkName - specifies an existing database link name in the target database that points to the remote database]





270 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

データベースリンクのユーザー資格情報 ソースデータベースで事前作成 [oracle@kara-vpvao1 ~]$ sql / as sysdba

SQLcl: Release 21.4 Production on Tue Oct 31 08:47:02 2023 Copyright (c) 1982, 2023, Oracle. All rights reserved.

New version: 23.2.0 available to download

Connected to:
Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production Version 19.18.0.0.0

SQL> CREATE USER c##remote_clone_user IDENTIFIED BY Demo#1Demo#1; User C##REMOTE_CLONE_USER created.
SQL> GRANT CREATE SESSION, RESOURCE, CREATE ANY TABLE, UNLIMITED TABLESPACE TO c##remote_clone_user CONTAINER=ALL;

Grant succeeded.
SQL> GRANT CREATE PLUGGABLE DATABASE TO c##remote_clone_user CONTAINER=ALL;

Grant succeeded.
SQL> GRANT SYSOPER TO c##remote_clone_user CONTAINER=ALL; Grant succeeded.
 
2S7QL1>
 
Copyright © 2024, Oracle and/or its affiliates
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

UI とおなじ refreshMode MANUAL で作成

[root@wasa-ycfpo1 ~]# dbaascli pdb remoteClone --dbName DB0304 --refreshablePDB --refreshmode MANUAL --dblinkUsername c##remote_clone_user -- sourceDBConnectionString kara-vpvao-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB1032_c25_kix.sub04210756190.exavcn.oraclevcn.com --pdbName PDB1 -- targetPDBName new_pdb5 --executePrereqs
DBAAS CLI version 24.1.1.0.0
Executing command pdb remoteClone --dbName DB0304 --refreshablePDB --refreshmode MANUAL --dblinkUsername c##remote_clone_user --sourceDBConnectionString kara- vpvao-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB1032_c25_kix.sub04210756190.exavcn.oraclevcn.com --pdbName PDB1 --targetPDBName new_pdb5 --executePrereqs Job id: 335d3b6b-7702-473c-8222-65a3a70ee0c8
Session log: /var/opt/oracle/log/DB0304/pdb/remoteClone/dbaastools_2024-03-04_07-45-28-AM_39087.log Enter REMOTE_DB_SYS_PASSWORD:

Enter REMOTE_DB_SYS_PASSWORD (reconfirmation):

Enter DB_LINK_USER_PASSWORD:

Enter DB_LINK_USER_PASSWORD (reconfirmation):

Loading PILOT...
Session ID of the current execution is: 4675
Log file location: /var/opt/oracle/log/DB0304/pdb/remoteClone/pilot_2024-03-04_07-46-46-AM_102795

Running Plugin_initialization job Enter TDE_PASSWORD:
*********
Enter REMOTE_DB_SYS_PASSWORD
**************
Enter DB_LINK_USER_PASSWORD
*************
Completed Plugin_initialization job

 

272
 

varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き

Running Validate_input_params job Completed Validate_input_params job

Running Validate_target_pdb_service_name job Completed Validate_target_pdb_service_name job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Perform_pdb_cross_release_prechecks job Completed Perform_pdb_cross_release_prechecks job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_5 Acquiring read lock: db0304
Acquiring write lock: new_pdb5

Running PDB_creation job
Skipping. Job is detected as not applicable.

Running Load_pdb_details job
Skipping. Job is detected as not applicable.

Running Configure_pdb_service job
Skipping. Job is detected as not applicable.






273 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
Running Configure_tnsnames_ora job
Skipping. Job is detected as not applicable.

Running Set_pdb_admin_user_profile job Skipping. Job is detected as not applicable.

Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.

Running Register_ocids job
Skipping. Job is detected as not applicable.

Running Prepare_blob_for_standby_in_primary job Skipping. Job is detected as not applicable.
Releasing lock: new_pdb5 Releasing lock: db0304
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_5

Running Generate_dbsystem_details job Skipping. Job is detected as not applicable. dbaascli execution completed
[root@wasa-ycfpo1 ~]#








274 varchar2
 
 

Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

[root@wasa-ycfpo1 ~]# dbaascli pdb remoteClone --dbName DB0304 --refreshablePDB --refreshmode MANUAL --dblinkUsername c##remote_clone_user -- sourceDBConnectionString kara-vpvao-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB1032_c25_kix.sub04210756190.exavcn.oraclevcn.com --pdbName PDB1 -- targetPDBName new_pdb5
DBAAS CLI version 24.1.1.0.0
Executing command pdb remoteClone --dbName DB0304 --refreshablePDB --refreshmode MANUAL --dblinkUsername c##remote_clone_user --sourceDBConnectionString kara- vpvao-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB1032_c25_kix.sub04210756190.exavcn.oraclevcn.com --pdbName PDB1 --targetPDBName new_pdb5
Job id: 31972918-4456-4212-a3f4-2f0c77ab8fa8
Session log: /var/opt/oracle/log/DB0304/pdb/remoteClone/dbaastools_2024-03-04_07-51-39-AM_193220.log Enter REMOTE_DB_SYS_PASSWORD:

Enter REMOTE_DB_SYS_PASSWORD (reconfirmation):

Enter DB_LINK_USER_PASSWORD:
Enter DB_LINK_USER_PASSWORD (reconfirmation):

Loading PILOT...
Session ID of the current execution is: 4676
Log file location: /var/opt/oracle/log/DB0304/pdb/remoteClone/pilot_2024-03-04_07-52-14-AM_209582

Running Plugin_initialization job Enter TDE_PASSWORD:
*************
Enter REMOTE_DB_SYS_PASSWORD
**********
Enter DB_LINK_USER_PASSWORD
**************
Completed Plugin_initialization job




275 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
Running Validate_input_params job Completed Validate_input_params job

Running Validate_target_pdb_service_name job Completed Validate_target_pdb_service_name job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Perform_pdb_cross_release_prechecks job Completed Perform_pdb_cross_release_prechecks job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_5 Acquiring read lock: db0304
Acquiring write lock: new_pdb5

Running PDB_creation job Completed PDB_creation job

Running Load_pdb_details job Completed Load_pdb_details job

Running Configure_pdb_service job Completed Configure_pdb_service job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job





276 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
Running Set_pdb_admin_user_profile job Skipping. Job is detected as not applicable.

Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.

Running Register_ocids job
Skipping. Job is detected as not applicable.

Running Prepare_blob_for_standby_in_primary job Skipping. Job is detected as not applicable.
Releasing lock: new_pdb5 Releasing lock: db0304
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_5

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
dbaascli execution completed [root@wasa-ycfpo1 ~]#









277 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

作成された refreshable PDB の確認

[root@wasa-ycfpo1 ~]# dbaascli pdb getDetails --dbname DB0304 --pdbName NEW_PDB5 DBAAS CLI version 24.1.1.0.0
Executing command pdb getDetails --dbname DB0304 --pdbName NEW_PDB5 Job id: a4bd99b2-6748-44a3-a536-18f40380730b
Session log: /var/opt/oracle/log/DB0304/pdb/getDetails/dbaastools_2024-03-04_08-12-17-AM_353449.log
{
"pdbName" : "NEW_PDB5", "pdbUID" : "1773548185",
"cdbId" : "9fb40946-75db-4e7b-8981-45e4de0400aa", "refreshablePDB" : true,
"refreshMode" : "MANUAL", "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : null, "storageUsed" : "8544MB",
"guid" : "12D20FA39E6AB8C6E0632100000AE8C8", "dbid" : "1773548185",
"conId" : "4", "resourceOCIDSettings" : null, "tdeDetails" : {
"tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "Ac+NxumYhU+fv8VqDZbKGZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},





278 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
"pdbNodeLevelDetails" : { "wasa-ycfpo1" : {
"nodeName" : "wasa-ycfpo1", "openMode" : "MOUNTED", "restricted" : false
},
"wasa-ycfpo2" : {
"nodeName" : "wasa-ycfpo2", "openMode" : "MOUNTED", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB0304_NEW_PDB5.paas.oracle.com",
"connectString" : "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0304_NEW_PDB5.paas.oracle.com", "tcpsConnectStrings" : [ "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:2484/DB0304_NEW_PDB5.paas.oracle.com" ]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "7GB", "pdbSnapshotDetails" : null
}
dbaascli execution completed [root@wasa-ycfpo1 ~]#







279 varchar2
 
 

Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB





























280 varchar2
 
 

Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB




























281 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

PDB の OPEN MODE の確認

SQL> show pdbs

CON_ID	CON_NAME	OPEN MODE	RESTRICTED

2 PDB$SEED		READ ONLY		NO
3 PDB1		READ WRITE		NO
4 NEW_PDB5		MOUNTED		

STATUS、REFRESH_MODE の確認
SQL> select PDB_ID,PDB_NAME,STATUS,REFRESH_MODE,REFRESH_INTERVAL from DBA_PDBS; PDB_ID	PDB_NAME	STATUS	REFRESH_MODE	REFRESH_INTERVAL
         
3 PDB1	NORMAL	NONE
2 PDB$SEED	NORMAL	NONE
4 NEW_PDB5	REFRESHING	MANUAL

SQL>










282 varchar2
 


Refreshable PDB のrefresh
dbaascli pdb refresh --help

リフレッシュの実行

[root@kara-vpvao1 ~]# dbaascli pdb refresh --help DBAAS CLI version 24.1.1.0.0
Executing command pdb refresh --help
pdb refresh - refresh a specified PDB.

Usage: dbaascli pdb refresh --dbname 
{
--pdbName 
| --pdbUID 
}
[--waitForCompletion ]

Where:
--dbname - Oracle database name.
--pdbName | --pdbUID
--pdbName - PDB name.
--pdbUID - identifier of PDB.
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]

You have new mail in /var/spool/mail/root [root@kara-vpvao1 ~]#








283 varchar2
 


Refreshable PDB のrefresh
dbaascli pdb refresh

リフレッシュの実行

[root@wasa-ycfpo1 ~]# dbaascli pdb refresh --dbname DB0304 --pdbName NEW_PDB5 DBAAS CLI version 24.1.1.0.0
Executing command pdb refresh --dbname DB0304 --pdbName NEW_PDB5 Job id: 874d0e91-b0cc-46f9-86ce-107ef4f98bdf
Session log: /var/opt/oracle/log/DB0304/pdb/refresh/dbaastools_2024-03-04_08-17-28-AM_55842.log dbaascli execution completed
[root@wasa-ycfpo1 ~]#





















284 varchar2
 


Refreshable PDB のrefresh
dbaascli pdb refresh

alert.log から確認

2024-03-04T08:17:40.274373+00:00 NEW_PDB5(4):ALTER PLUGGABLE DATABASE REFRESH 2024-03-04T08:18:01.446050+00:00
Applying media recovery for pdb-4099 from SCN 65212689 to SCN 65222366 Remote log information: count-2
thr-2,seq-257,logfile-+RECOC1/DB1032_C25_KIX/partial_archivelog/2024_03_04/thread_2_seq_257.842.1162714671,los-63840741,nxs-18446744073709551615,maxblks-1497037 thr-1,seq-282,logfile-+RECOC1/DB1032_C25_KIX/partial_archivelog/2024_03_04/thread_1_seq_282.440.1162714673,los-61933262,nxs-18446744073709551615,maxblks-4832611 NEW_PDB5(4):Media Recovery Start
2024-03-04T08:18:01.452500+00:00
NEW_PDB5(4):Serial Media Recovery started NEW_PDB5(4):max_pdb is 4
2024-03-04T08:18:01.546940+00:00
NEW_PDB5(4):Media Recovery Log +RECOC1/DB1032_C25_KIX/partial_archivelog/2024_03_04/thread_1_seq_282.440.1162714673 2024-03-04T08:18:01.966856+00:00
ALTER SYSTEM SET remote_listener='wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:1521' SCOPE=MEMORY SID='DB03041'; 2024-03-04T08:18:01.968161+00:00
ALTER SYSTEM SET listener_networks='' SCOPE=MEMORY SID='DB03041'; 2024-03-04T08:18:11.385066+00:00
NEW_PDB5(4):Media Recovery Log +RECOC1/DB1032_C25_KIX/partial_archivelog/2024_03_04/thread_2_seq_257.842.1162714671 2024-03-04T08:18:15.341413+00:00
NEW_PDB5(4):Incomplete Recovery applied until change 65222366 time 03/04/2024 08:17:48 2024-03-04T08:18:15.342383+00:00
NEW_PDB5(4):Media Recovery Complete (DB03041)
NEW_PDB5(4):Completed: ALTER PLUGGABLE DATABASE REFRESH





285 varchar2
 
 

Refreshable PDB の Regular PDB へのコンバート
dbaascli pdb open --setPDBRefreshModeNone

[root@kara-vpvao1 ~]# dbaascli pdb open --help DBAAS CLI version 24.1.1.0.0
Executing command pdb open --help pdb open - open a PDB.

Usage: dbaascli pdb open
{
--pdbName 
| --pdbUID 
}
--dbname  [--openMode ] [--startServices ] [--waitForCompletion ] [--setPDBRefreshModeNone [--skipPDBRefresh] [-- pdbAdminUserName ]] [--executePrereqs] [--resume [--sessionID ]] [--blobLocation ]

Where:
--pdbName | --pdbUID
--pdbName - PDB name.
--pdbUID - identifier of PDB.
--dbname - Oracle database name.
[--openMode - Specify one of PDB open modes 'READ_ONLY', 'READ_WRITE'.]
[--startServices - start all or list all services corresponding to a PDB. Accepted values are ''all'' or comma separated PDB services.] [--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
[--setPDBRefreshModeNone - to convert refreshable PDB to non-refreshable PDB ] [--skipPDBRefresh - to skip refreshable PDB refresh]
[--pdbAdminUserName - specifies new PDB admin user name]
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]

[root@kara-vpvao1 ~]#


286 varchar2
 
 

Refreshable PDB の Regular PDB へのコンバート
dbaascli pdb open --setPDBRefreshModeNone

[root@wasa-ycfpo1 ~]# dbaascli pdb open --dbname DB0304 --pdbName NEW_PDB5 --setPDBRefreshModeNone DBAAS CLI version 24.1.1.0.0
Executing command pdb open --dbname DB0304 --pdbName NEW_PDB5 --setPDBRefreshModeNone Job id: 0741c88e-8664-47e7-b983-18e2c5c3812d
Session log: /var/opt/oracle/log/DB0304/pdb/open/dbaastools_2024-03-04_08-22-39-AM_94904.log Loading PILOT...
Session ID of the current execution is: 4678
Log file location: /var/opt/oracle/log/DB0304/pdb/open/pilot_2024-03-04_08-22-47-AM_100118

Running Plugin_initialization job Enter TDE_PASSWORD:
***********
Completed Plugin_initialization job

Running Open_pdb_validation job Completed Open_pdb_validation job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_5 Acquiring read lock: db0304
Acquiring write lock: new_pdb5

Running Initialize_pdb_open_mode job Completed Initialize_pdb_open_mode job

Running Refresh_pdb job Completed Refresh_pdb job

Running Convert_pdb job Completed Convert_pdb job




287 varchar2
 
 

Refreshable PDB の Regular PDB へのコンバート
dbaascli pdb open --setPDBRefreshModeNone

続き
Running Pdb_open job Completed Pdb_open job

Running Execute_datapatch job Completed Execute_datapatch job

Running Manage_pdb_admin_user job Completed Manage_pdb_admin_user job

Running Configure_pdb_master_key job Completed Configure_pdb_master_key job

Running Start_pdb_service job Completed Start_pdb_service job

Running Prepare_blob_for_standby_in_primary job Skipping. Job is detected as not applicable.
Releasing lock: new_pdb5 Releasing lock: db0304
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_5

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
dbaascli execution completed [root@wasa-ycfpo1 ~]#



288 varchar2
 
 

Refreshable PDB の Regular PDB へのコンバート
dbaascli pdb open --setPDBRefreshModeNone

[root@wasa-ycfpo1 ~]# dbaascli pdb getDetails --dbname DB0304 --pdbName NEW_PDB5 DBAAS CLI version 24.1.1.0.0
Executing command pdb getDetails --dbname DB0304 --pdbName NEW_PDB5 Job id: 19bb769c-599a-4baa-81d2-c06cb755e750
Session log: /var/opt/oracle/log/DB0304/pdb/getDetails/dbaastools_2024-03-04_08-27-12-AM_163020.log
{
"pdbName" : "NEW_PDB5", "pdbUID" : "1773548185",
"cdbId" : "9fb40946-75db-4e7b-8981-45e4de0400aa", "refreshablePDB" : false,
"refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "12D20FA39E6AB8C6E0632100000AE8C8", "dbid" : "1773548185",
"conId" : "4", "resourceOCIDSettings" : null, "tdeDetails" : {
"tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "AZwbyGDuCk/6v29Lp4js9woAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},







289 varchar2
 
 

Refreshable PDB の Regular PDB へのコンバート
dbaascli pdb open --setPDBRefreshModeNone

続き
"pdbNodeLevelDetails" : { "wasa-ycfpo1" : {
"nodeName" : "wasa-ycfpo1", "openMode" : "READ_WRITE", "restricted" : false
},
"wasa-ycfpo2" : {
"nodeName" : "wasa-ycfpo2", "openMode" : "READ_WRITE", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB0304_NEW_PDB5.paas.oracle.com",
"connectString" : "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0304_NEW_PDB5.paas.oracle.com", "tcpsConnectStrings" : [ "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:2484/DB0304_NEW_PDB5.paas.oracle.com" ]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
dbaascli execution completed [root@wasa-ycfpo1 ~]#







290 varchar2
 
 

Refreshable PDB の Regular PDB へのコンバート
dbaascli pdb open --setPDBRefreshModeNone

PDB の OPEN MODE の確認

SQL> show pdbs

CON_ID	CON_NAME	OPEN MODE	RESTRICTED

2 PDB$SEED		READ	ONLY		NO
3 PDB1		READ	WRITE		NO
4 NEW_PDB5		READ	WRITE		NO

STATUS、REFRESH_MODE の確認
SQL> select PDB_ID,PDB_NAME,STATUS,REFRESH_MODE,REFRESH_INTERVAL from DBA_PDBS; PDB_ID	PDB_NAME	STATUS	REFRESH_MODE	REFRESH_INTERVAL
         
3 PDB1	NORMAL	NONE
2 PDB$SEED	NORMAL	NONE
4 NEW_PDB5	NORMAL	NONE

SQL>









291 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

refreshMode AUTO の場合は、refreshInverval の指定が必要

[root@wasa-ycfpo1 ~]# dbaascli pdb remoteClone --dbName DB0304 --refreshablePDB --refreshmode AUTO --refreshInterval 2 --dblinkUsername c##remote_clone_user -- sourceDBConnectionString kara-vpvao-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB1032_c25_kix.sub04210756190.exavcn.oraclevcn.com --pdbName PDB1 -- targetPDBName new_pdb6
DBAAS CLI version 24.1.1.0.0
Executing command pdb remoteClone --dbName DB0304 --refreshablePDB --refreshmode AUTO --refreshInterval 2 --dblinkUsername c##remote_clone_user -- sourceDBConnectionString kara-vpvao-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB1032_c25_kix.sub04210756190.exavcn.oraclevcn.com --pdbName PDB1 -- targetPDBName new_pdb6
Job id: 4baffcd5-1d66-44a9-a36e-36cadc4b70b6
Session log: /var/opt/oracle/log/DB0304/pdb/remoteClone/dbaastools_2024-03-05_01-36-26-AM_59216.log Enter REMOTE_DB_SYS_PASSWORD:

Enter REMOTE_DB_SYS_PASSWORD (reconfirmation):

Enter DB_LINK_USER_PASSWORD:

Enter DB_LINK_USER_PASSWORD (reconfirmation):

Loading PILOT...
Session ID of the current execution is: 4717
Log file location: /var/opt/oracle/log/DB0304/pdb/remoteClone/pilot_2024-03-05_01-37-02-AM_76358

Running Plugin_initialization job Enter TDE_PASSWORD:
************
Enter REMOTE_DB_SYS_PASSWORD
*************
Enter DB_LINK_USER_PASSWORD
***************

 

292
 

varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
Completed Plugin_initialization job

Running Validate_input_params job Completed Validate_input_params job

Running Validate_target_pdb_service_name job Completed Validate_target_pdb_service_name job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Perform_pdb_cross_release_prechecks job Completed Perform_pdb_cross_release_prechecks job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_5 Acquiring read lock: db0304
Acquiring write lock: new_pdb6

Running PDB_creation job Completed PDB_creation job

Running Load_pdb_details job Completed Load_pdb_details job

Running Configure_pdb_service job Completed Configure_pdb_service job

Running Configure_tnsnames_ora job Completed Configure_tnsnames_ora job



293 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き

Running Set_pdb_admin_user_profile job Skipping. Job is detected as not applicable.

Running Lock_pdb_admin_user job
Skipping. Job is detected as not applicable.

Running Register_ocids job
Skipping. Job is detected as not applicable.

Running Prepare_blob_for_standby_in_primary job Skipping. Job is detected as not applicable.
Releasing lock: new_pdb6 Releasing lock: db0304
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_5

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
dbaascli execution completed [root@wasa-ycfpo1 ~]#








294 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

作成された refreshable PDB の確認

[root@wasa-ycfpo1 ~]# dbaascli pdb getDetails --dbname DB0304 --pdbName NEW_PDB6 DBAAS CLI version 24.1.1.0.0
Executing command pdb getDetails --dbname DB0304 --pdbName NEW_PDB6 Job id: 72ca9d73-79f1-446e-9540-14ad0d729732
Session log: /var/opt/oracle/log/DB0304/pdb/getDetails/dbaastools_2024-03-05_01-49-54-AM_289653.log
{
"pdbName" : "NEW_PDB6", "pdbUID" : "4133966334",
"cdbId" : "9fb40946-75db-4e7b-8981-45e4de0400aa", "refreshablePDB" : true,
"refreshMode" : "AUTO", "refreshIntervalInMinutes" : 2,
"cpuCount" : 4, "storageAllocated" : null, "storageUsed" : "8544MB",
"guid" : "12E0F24FAF9D2B11E0632100000AEFF3", "dbid" : "4133966334",
"conId" : "5", "resourceOCIDSettings" : null, "tdeDetails" : {
"tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "Ac+NxumYhU+fv8VqDZbKGZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},





295 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
"pdbNodeLevelDetails" : { "wasa-ycfpo1" : {
"nodeName" : "wasa-ycfpo1", "openMode" : "MOUNTED", "restricted" : false
},
"wasa-ycfpo2" : {
"nodeName" : "wasa-ycfpo2", "openMode" : "MOUNTED", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB0304_NEW_PDB6.paas.oracle.com",
"connectString" : "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0304_NEW_PDB6.paas.oracle.com", "tcpsConnectStrings" : [ "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:2484/DB0304_NEW_PDB6.paas.oracle.com" ]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "7GB", "pdbSnapshotDetails" : null
}
dbaascli execution completed [root@wasa-ycfpo1 ~]#







296 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

PDB の OPEN MODE の確認

SQL> show pdbs

CON_ID	CON_NAME	OPEN MODE	RESTRICTED

2 PDB$SEED		READ ONLY		NO
3 PDB1		READ WRITE		NO
4 NEW_PDB5		READ WRITE		NO
5 NEW_PDB6		MOUNTED		

STATUS、REFRESH_MODE の確認
SQL> select PDB_ID,PDB_NAME,STATUS,REFRESH_MODE,REFRESH_INTERVAL from DBA_PDBS; PDB_ID	PDB_NAME	STATUS	REFRESH_MODE	REFRESH_INTERVAL
         
3 PDB1	NORMAL	NONE
2	PDB$SEED	NORMAL	NONE
4 NEW_PDB5	NORMAL	NONE
5 NEW_PDB6	REFRESHING	AUTO	2
SQL>






297 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

Regular PDB への conveert

[root@wasa-ycfpo1 ~]# dbaascli pdb open --dbname DB0304 --pdbName NEW_PDB6 --setPDBRefreshModeNone DBAAS CLI version 24.1.1.0.0
Executing command pdb open --dbname DB0304 --pdbName NEW_PDB6 --setPDBRefreshModeNone Job id: f0c0195b-2256-4e14-9cae-06842de2f147
Session log: /var/opt/oracle/log/DB0304/pdb/open/dbaastools_2024-03-05_03-05-13-AM_49555.log Loading PILOT...
Session ID of the current execution is: 4721
Log file location: /var/opt/oracle/log/DB0304/pdb/open/pilot_2024-03-05_03-05-23-AM_54568

Running Plugin_initialization job Enter TDE_PASSWORD:
************
Completed Plugin_initialization job

Running Open_pdb_validation job Completed Open_pdb_validation job
Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_5 Acquiring read lock: db0304
Acquiring write lock: new_pdb6

Running Initialize_pdb_open_mode job Completed Initialize_pdb_open_mode job

Running Refresh_pdb job Completed Refresh_pdb job

Running Convert_pdb job Completed Convert_pdb job


298 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
Running Pdb_open job Completed Pdb_open job

Running Execute_datapatch job Completed Execute_datapatch job

Running Manage_pdb_admin_user job Completed Manage_pdb_admin_user job

Running Configure_pdb_master_key job Completed Configure_pdb_master_key job

Running Start_pdb_service job Completed Start_pdb_service job

Running Prepare_blob_for_standby_in_primary job Skipping. Job is detected as not applicable.
Releasing lock: new_pdb6 Releasing lock: db0304
Releasing lock: _u02_app_oracle_product_19.0.0.0_dbhome_5

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
dbaascli execution completed [root@wasa-ycfpo1 ~]#



299 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

[root@wasa-ycfpo1 ~]# dbaascli pdb getDetails --dbname DB0304 --pdbName NEW_PDB6 DBAAS CLI version 24.1.1.0.0
Executing command pdb getDetails --dbname DB0304 --pdbName NEW_PDB6 Job id: 948f77dc-6860-4f81-a601-bc4e75476403
Session log: /var/opt/oracle/log/DB0304/pdb/getDetails/dbaastools_2024-03-05_03-08-32-AM_116671.log
{
"pdbName" : "NEW_PDB6", "pdbUID" : "4133966334",
"cdbId" : "9fb40946-75db-4e7b-8981-45e4de0400aa", "refreshablePDB" : false,
"refreshMode" : null, "refreshIntervalInMinutes" : null, "cpuCount" : 4, "storageAllocated" : "UNLIMITED", "storageUsed" : "8544MB",
"guid" : "12E0F24FAF9D2B11E0632100000AEFF3", "dbid" : "4133966334",
"conId" : "5", "resourceOCIDSettings" : null, "tdeDetails" : {
"tdeKeystoreType" : "FILE", "keyVersionOcid" : null,
"tdeMasterKeyId" : "AcWo601pwk/Hv/hjURPLNs8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
続き






300 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

続き
"pdbNodeLevelDetails" : { "wasa-ycfpo1" : {
"nodeName" : "wasa-ycfpo1", "openMode" : "READ_WRITE", "restricted" : false
},
"wasa-ycfpo2" : {
"nodeName" : "wasa-ycfpo2", "openMode" : "READ_WRITE", "restricted" : false
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB0304_NEW_PDB6.paas.oracle.com",
"connectString" : "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:1521/DB0304_NEW_PDB6.paas.oracle.com", "tcpsConnectStrings" : [ "wasa-ycfpo-scan.sub04210756190.exavcn.oraclevcn.com:2484/DB0304_NEW_PDB6.paas.oracle.com" ]
} ],
"pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null
}
dbaascli execution completed [root@wasa-ycfpo1 ~]#







301 varchar2
 


Refreshable PDB remoteClone の作成
dbaascli pdb remoteClone --refreshablePDB

PDB の OPEN MODE の確認

SQL> show pdbs

CON_ID	CON_NAME	OPEN MODE	RESTRICTED

2 PDB$SEED		READ ONLY		NO
3 PDB1		READ WRITE		NO
4 NEW_PDB5		READ WRITE		NO
5 NEW_PDB6		READ WRITE		NO

STATUS、REFRESH_MODE の確認
SQL> select PDB_ID,PDB_NAME,STATUS,REFRESH_MODE,REFRESH_INTERVAL from DBA_PDBS; PDB_ID	PDB_NAME	STATUS	REFRESH_MODE	REFRESH_INTERVAL
         
3	PDB1	NORMAL	NONE
2 PDB$SEED	NORMAL	NONE
4	NEW_PDB5	NORMAL	NONE
5	NEW_PDB6	NORMAL	NONE

SQL>








302 varchar2
 

CDB内のPDBの⼀覧
dbaascli database getPDBs --help

[root@orcl-jyvid1 ~]# dbaascli database getPDBs --help
DBAAS CLI version 22.2.1.0.1
Executing command database getPDBs --help
database getPDBs - display information of PDBs in specified database.
Usage: dbaascli database getPDBs --dbname  Where:
--dbname - Oracle database name.





















303 varchar2
 
CDB内のPDBの⼀覧
dbaascli database getPDBs

[root@orcl-jyvid1 ~]# dbaascli database getPDBs --dbname DB1909
DBAAS CLI version 22.2.1.0.1
Executing command database getPDBs
Job id: aa15c7c9-fac9-4317-b392-31f23a5b9212 [ {
"pdbName" : "PDB1", "pdbUID" : "3260909885",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DEA4A04A6059A7E6E053CA00000A6F55", "dbid" : "3260909885",
"conId" : "3", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "openMode" : "READ_WRITE"
},
"orcl-jyvid2" : {
"nodeName" : "orcl-jyvid2", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB1909_PDB1.paas.oracle.com", "connectString" : "orcl-jyvid-
scan.sub07160524340.testvcn.oraclevcn.com:1521/DB1909_PDB1.paas.oracle.com"
} ],
 
 22.2.1.0.1 新機能 


"pdbSize" : "4GB", "pdbUsedSize" : "1GB"
}, {
"pdbName" : "PDB2", "pdbUID" : "3371374061",
"cpuCount" : null, "storageAllocated" : "UNLIMITED", "storageUsed" : "4448MB",
"guid" : "DEA514B85BE9E815E0537D00000AF4E7", "dbid" : "3371374061",
"conId" : "4", "resourceOCIDSettings" : null, "pdbNodeLevelDetails" : {
"orcl-jyvid1" : {
"nodeName" : "orcl-jyvid1", "openMode" : "READ_WRITE"
},
"orcl-jyvid2" : {
"nodeName" : "orcl-jyvid2", "openMode" : "READ_WRITE"
}
},
"pdbConnectStrings" : [ {
"serviceName" : "DB1909_PDB2.paas.oracle.com", "connectString" : "orcl-jyvid-
scan.sub07160524340.testvcn.oraclevcn.com:1521/DB1909_PDB2.paas.oracle.com"
} ],
"pdbSize" : "4GB", "pdbUsedSize" : "1GB"
} ]
dbaascli execution completed
 

304 varchar2
 











データベースのバックアップ











305 varchar2
 

データベースのバックアップ コマンド⼀覧
dbaascli database backup --help

 

[root@orcl0329-pfutx1 ~]# dbaascli database backup --help
DBAAS CLI version 22.1.1.1.0
Executing command database backup --help
database backup - Performs database backup operations.

Usage: dbaascli database backup --dbname 
{
--list [--json ]
| --start
{
[--level0]
| [--level1]
| [--archival --tag ]
}
| --delete --backupTag 
| --status --uuid 
| --getBackupReport --tag  --json 
| --configure
{
--configFile 
| --enableRTRT
| --disableRTRT
}
| --getConfig [--configFile ]
}
 

Where:
--dbname - Oracle database name.
--list | --start | --delete | --status | --getBackupReport | -- configure | --getConfig
--list - Returns database backup information.
[--json - Specify file Name for json output. ]
--start - Begins database backup.
[--level0 | --level1 | --archival]
[--level0 - Creates a Level-0 (full) backup. ]
[--level1 - Creates a Level-1 (incremental) backup. ] [--archival - Creates an Archival full backup. ]
--tag - Specify backup tag.
--delete - Deletes Archival backup.
--backupTag 
--status
--uuid 
--getBackupReport - Returns BackupReport.
--tag - Specify backup tag.
--json - Specify file Name for json output.
--configure - Configures database for backup.
--configFile | --enableRTRT | --disableRTRT
--configFile - Specify database backup configuration file.
--enableRTRT - Enable Real Time Redo Transport.
--disableRTRT - Disable Real Time Redo Transport.
--getConfig - Returns database backup configuration.
[--configFile - Specify database backup configuration file. ]
 





306 varchar2
 

バックアップ構成情報の取得
cbaascli database backup --getconfig

[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --getconfig --configfile /tmp/configfile_1.txt
DBAAS CLI version 22.1.1.1.0
Executing command database backup --getconfig --configfile /tmp/configfile_1.txt DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : get_config
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_c10efe5a_20220329235902.598369.log
File /tmp/configfile_1.txt created
dbaascli execution completed






















307 varchar2
 

バックアップ構成情報の取得
dbaascli database backup --getConfig

 

[root@orcl0329-pfutx1 ~]# cat /tmp/configfile_1.txt
####
#### This is the Backup config for the DB : dbcli01
#### Please refer to  for more details about each parameter ####

#### Instance Level Parameters ####
# Enable automatic backup. Can be set to yes or no bkup_cron_entry=


# Enable automatic cleanup of archive logs when backups are not # configured using tooling. Can be set to yes or no bkup_archlog_cron_entry=yes

#Enable backup of config files. Can be set to yes or no bkup_cfg_files=no

# Time of the daily incremental backup. The format must be hh:mm bkup_daily_time=1:21

# Archive log frequency in minutes. Valid values are 15,20,30,60,120.... bkup_archlog_frequency=30

# Archive log retention in FRA bkup_archlog_fra_retention=1

#### This section is applicable for configuring backups to Disk #### #Enable backup to disk. Can be set to yes or no
bkup_disk=no
 

#Recovery window of disk. Must be between 1 and 14 bkup_disk_recovery_window=



#### This section is applicable for configuring backups to OSS #### # Enable backup to oss container. Can be set to yes or no bkup_oss=no

## Below parameters are required if backups to OSS are configured # Recovery window of oss. Must be between 1 and 90 bkup_oss_recovery_window=


# OSS url. Example: https://storage.oraclecorp.com/v1/Storage-test/test bkup_oss_url=


# OSS username bkup_oss_user=


# OSS password #bkup_oss_passwd=

#*(Will be deprecated, please use bkup_l0_day) Default day on which level0 backups are taken for OSS
bkup_oss_l0_day=
<>
 

308 varchar2
 

バックアップ構成情報の取得
dbaascli database backup --getConfig

 

<続き>
#Default day on which level0 backups are taken bkup_l0_day=Sun

#### This section is applicable for configuring backups to ZDLRA #### # Enable backup to ZDLRA. Can be set to yes or no
bkup_zdlra=no

# ZDLRA url bkup_zdlra_url=


# ZDLRA username bkup_zdlra_user=


# ZDLRA password #bkup_zdlra_passwd=

#### This section is applicable for configuring backups to DBRS #### #Enable backup to dbrs. Can be set to yes or no
bkup_dbrs=no

# Comma separated dbrs ip, host, port and service details. # IP1:PORT1/SERVICE,IP2:PORT2/SERVICE...
bkup_dbrs_connect_string=

# DBRS username bkup_dbrs_user=
 


# DBRS password #bkup_dbrs_passwd=

# Parameter applicable for both DBRS and ZDLRA
# Enable real time redo transport to RA/DBRS destination. Can be set to yes or no
bkup_realtime_redotrans=no

#### This section is applicable for configuring backups to NFS #### #Enable backup to nfs. Can be set to yes or no
bkup_nfs=no

#Recovery window of nfs backups. Must be between 1 and 90 bkup_nfs_recovery_window=30

#NFS mount point location bkup_nfs_loc=


#####RMAN custom configuration such as compression, section size ######### #compression, valid values are none,basic,low,medium,high bkup_rman_compression=low

#If custom section size is preferred, set the following two values. #bkup_set_section_size to yes and a valid bkup_section_size. bkup_set_section_size=
<>
 


309 varchar2
 

バックアップ構成情報の取得
dbaascli database backup --getConfig

<続き>
#section size value in G, example 20G bkup_section_size=

#parallelism, number of channels per node to be used by RMAN
#set value to default for using recommended values based on service, operation bkup_channels_node=default

# To turn on/off Backup encryption. Valid values True/False bkup_encryption=


#### This section is applicable when using a rman catalog #### # Enables RMAN catalog. Can be set to yes or no. bkup_use_rcat=no

## Below parameters are required if rman catalog is enabled # RMAN catalog user
bkup_rcat_user=

# RMAN catalog password #bkup_rcat_passwd=

# RMAN catalog conn string bkup_rcat_conn=




310 varchar2
 

バックアップ構成情報の取得
dbaascli database backup --getConfig


[root@orcl0329-pfutx1 ~]# cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=""
# For details see man 4 crontabs # Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat # | | | | |
# * * * * * user-name command to be executed
15 * * * * oracle /var/opt/oracle/misc/backup_db_wallets.pl
15 * * * * oracle /var/opt/oracle/dbaascli/dbaascli tde backup --alldb 0 */12 * * * oracle /var/opt/oracle/cleandb/cleandblogs.pl
0 04 * * * grid /var/opt/oracle/cleandb/cleandblogs.pl
12,42 * * * * oracle /var/opt/oracle/bkup_api/bkup_api bkup_archlogs --cron --dbname=DB001 12,42 * * * * oracle /var/opt/oracle/bkup_api/bkup_api bkup_archlogs --cron --dbname=DB101 6,36 * * * * oracle /var/opt/oracle/bkup_api/bkup_api bkup_archlogs --cron --dbname=dbcli01











311 varchar2
 

バックアップ構成情報の設定例 – オブジェクトストレージにバックアップを保存するケース
dbaascli database backup --configure





312 varchar2
 

バックアップ構成情報の設定例 – ローカルディスクにバックアップを保存するケース
dbaascli database backup --configure
















313 varchar2
 

バックアップ構成情報の設定
dbaascli database backup --configure

[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --configure --configfile /tmp/configfile_1.txt
DBAAS CLI version 22.1.1.1.0
Executing command database backup --configure --configfile /tmp/configfile_1.txt DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : set_config
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_a467a79e_20220330091543.307815.log cfgfile : /tmp/configfile_1.txt
Using configuration file: /tmp/configfile_1.txt API::Parameters validated.
UUID fa9d1a64b00911ecbcf5020017011f98 for this set_config(configure-backup)
** process started with PID: 306213
** see log file for monitor progress

dbaascli execution completed

※構成情報の設定はジョブで実行されている為、反映完了まで少し時間が掛かる(5~10分程度)
反映完了後は構成ファイル(上記ケースでは /tmp/configfile_1.txt)が自動削除される

[root@orcl0329-pfutx1 ~]# ll /tmp/configfile_1.txt
ls: cannot access /tmp/configfile_1.txt: No such file or directory











314 varchar2
 

バックアップ構成情報の設定
dbaascli database backup --configure

[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --status --uuid fa9d1a64b00911ecbcf5020017011f98
DBAAS CLI version 22.1.1.1.0
Executing command database backup --status --uuid fa9d1a64b00911ecbcf5020017011f98 DBaaS Backup API V1.5 @2022 Multi-Oracle home
@ STARTING CHECK STATUS fa9d1a64b00911ecbcf5020017011f98 [ REQUEST TICKET ]
[UUID	-> fa9d1a64b00911ecbcf5020017011f98
[DBNAME -> dbcli01 [STATE	-> success
[ACTION -> configure-backup [STARTED -> 2022-03-30 09:15:46 UTC
[ENDED	-> 2022-03-30 09:16:26 UTC
[PID	-> 306213
[TAG	->
[PCT	->
[ END TICKET ]
dbaascli execution completed














315 varchar2
 

バックアップの取得
dbaascli database backup --start


[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --start
DBAAS CLI version 22.1.1.1.0
Executing command database backup --start DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : bkup_start
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_5d78dfcb_20220330091918.128951.log UUID 7a9ee3beb00a11ec8d4c020017011f98 for this backup
** process started with PID: 331799
** see log file for monitor progress

dbaascli execution completed



















316 varchar2
 

バックアップ実施状況の確認(実⾏中)
dbaascli database backup --status --uuid

[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --status --uuid 7a9ee3beb00a11ec8d4c020017011f98
DBAAS CLI version 22.1.1.1.0
Executing command database backup --status --uuid 7a9ee3beb00a11ec8d4c020017011f98 DBaaS Backup API V1.5 @2022 Multi-Oracle home
@ STARTING CHECK STATUS 7a9ee3beb00a11ec8d4c020017011f98 [ REQUEST TICKET ]
[UUID	-> 7a9ee3beb00a11ec8d4c020017011f98
[DBNAME -> dbcli01
[STATE	-> running
[ACTION -> create-backup-incremental ★増分バックアップ取得中
[STARTED -> 2022-03-30 09:19:22 UTC [ENDED	->	UTC
[PID	-> 331799
[TAG	->
[PCT	-> 1 [ END TICKET ]
dbaascli execution completed














317 varchar2
 

バックアップ実施状況の確認(実⾏完了後)
dbaascli database backup --status --uuid

[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --status --uuid 7a9ee3beb00a11ec8d4c020017011f98
DBAAS CLI version 22.1.1.1.0
Executing command database backup --status --uuid 7a9ee3beb00a11ec8d4c020017011f98 DBaaS Backup API V1.5 @2022 Multi-Oracle home
@ STARTING CHECK STATUS 7a9ee3beb00a11ec8d4c020017011f98 [ REQUEST TICKET ]
[UUID	->	7a9ee3beb00a11ec8d4c020017011f98
[DBNAME	->	dbcli01
[STATE	->	success
[ACTION	->	create-backup-incremental
[STARTED	->	2022-03-30 09:19:22 UTC
[ENDED	->	2022-03-30 09:23:30 UTC
[PID	->	331799
[TAG	->	TAG20220330T092146
[PCT	->	100
[LOG	->	2022-03-30	09:19:23.039202	- API::	invoked with args : -dbname=dbcli01 -uuid=7a9ee3beb00a11ec8d4c020017011f98	-format=dbaastools
[LOG	->	2022-03-30	09:19:26.018996	- API::	Oracle database state is up and running	
[LOG	->	2022-03-30	09:20:15.059671	- API::	DB instance: dbcli01	
[LOG	->	2022-03-30	09:20:22.843253	- API::	Performing backup to local storage (primary backup)	
[LOG	->	2022-03-30	09:20:22.843541	- API::	Executing rman instructions	
[LOG	->	2022-03-30	09:21:50.473250	- API::	.	OK	
[LOG	->	2022-03-30	09:21:50.473415	- API::	Backup to local storage is completed	
[LOG	->	2022-03-30	09:22:54.105071	- API::	VALIDATING DATABASE BACKUPS:	
[LOG	->	2022-03-30	09:22:54.105307	- API::	Starting backup of config files	
[LOG	->	2022-03-30	09:22:54.668204	- API::	Determining the oracle database id	
[LOG	->	2022-03-30	09:22:54.711941	- API::	DBID: 3324214880	
[LOG	->	2022-03-30	09:22:54.731281	- API::	Creating directories to store config files	
[LOG	->	2022-03-30	09:22:54.820781	- API::	Enabling RAC exclusions for config files.	
[LOG	->	2022-03-30	09:22:55.950630	- API::	Compressing config files into tar files	
[LOG	->	2022-03-30	09:22:56.022910	- API::	Skipping configuration files backup from legacy code.	
[LOG	->	2022-03-30	09:22:56.029702	- API::	Config files backup ended successfully	
[LOG	->	2022-03-30	09:22:56.029836	- API::	All requested tasks are completed	
[ END CToIpCyKrEigTht]© 2024, Oracle and/or its affiliates,
dbaascli execution completed
 


バックアップの⼀覧
dbaascli database backup --list


[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --list
DBAAS CLI version 22.1.1.1.0
Executing command database backup --list DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : list
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_00e1cf10_20220330093057.915489.log
-> Listing all backups
Backup Tag	Completion Date (UTC)	Type	keep

TAG20220330T092146	03/30/2022 09:23:30	incremental	False dbaascli execution completed



















319 varchar2
 

level0 は内蔵ディスクグループ(FRA)には取得できない


[root@orcl0329-pfutx1 ~]# dbaascli database backup --dbname dbcli01 --start --level0
DBAAS CLI version 22.1.1.1.0
Executing command database backup --start --level0
[FATAL] [DBAAS-60022] Command '/var/opt/oracle/bkup_api/bkup_api --dbname="dbcli01" --level0 bkup_start --caller=dbaascli' execution has failed on nodes [localnode].
ACTION: Refer application log file for more information.
*MORE DETAILS*
Result of node:localnode
[API::ERROR option level0 is valid for OSS only, NFS or ZDLRA backup configuration, * RETURN CODE:1, ##################################################]
Exit code of the operation:1




















320 varchar2
 

データベースのリカバー
dbaascli database recover --help

[root@orcl0329-pfutx1 ~]# dbaascli database recover --help
DBAAS CLI version 22.1.1.1.0
Executing command database recover --help
database recover - Performs database recovery.

Usage: dbaascli database recover --dbname 
{
 
--start
{



}
 

--untilTime 
| --untilSCN 
| --latest
| --tag 
 
| --status --uuid 
}

Where:
--dbname - Oracle database name.
--start | --status
--start - Begins database recovery.
--untilTime | --untilSCN | --latest | --tag
--untilTime - Recovers database until time. Input format: DD-MON-YYYY HH24:MI:SS.
--untilSCN - Recovers database until SCN.
--latest - Recovers database to last known state.
--tag - Recovers database to Archival tag.
--status
--uuid 



321 varchar2
 

データベースのリカバー
dbaascli database recover


[root@orcl0329-pfutx1 ~]# dbaascli database recover --start --dbname dbcli01 --latest
DBAAS CLI version 22.1.1.1.0
Executing command database recover --start --latest DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : recover_start
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_b9a0c863_20220330093509.535466.log
UUID b1ccc96cb00c11ecb386020017011f98 for this recovery
** process started with PID: 25355
** see log file for monitor progress

dbaascli execution completed

[root@orcl0329-pfutx1 ~]# dbaascli database recover --dbname dbcli01 --status --uuid b1ccc96cb00c11ecb386020017011f98
DBAAS CLI version 22.1.1.1.0
Executing command database recover --status --uuid b1ccc96cb00c11ecb386020017011f98 DBaaS Backup API V1.5 @2022 Multi-Oracle home
@ STARTING CHECK STATUS b1ccc96cb00c11ecb386020017011f98 [ REQUEST TICKET ]
[UUID	-> b1ccc96cb00c11ecb386020017011f98
[DBNAME -> dbcli01
[STATE	-> running [ACTION -> recovery-start
[STARTED -> 2022-03-30 09:35:13 UTC [ENDED	->	UTC
[PID	-> 25355
[TAG	-> latest-backup
[PCT	-> 1 ★実行状況(%)
[ END TICKET ]
dbaascli execution completed


322 varchar2
 

データベースのリカバー 確認(完了後)
dbaascli database recover

[root@orcl0329-pfutx1 ~]# dbaascli database recover --dbname dbcli01 --status --uuid b1ccc96cb00c11ecb386020017011f98
DBAAS CLI version 22.1.1.1.0
Executing command database recover --status --uuid b1ccc96cb00c11ecb386020017011f98 DBaaS Backup API V1.5 @2022 Multi-Oracle home
@ STARTING CHECK STATUS b1ccc96cb00c11ecb386020017011f98 [ REQUEST TICKET ]
[UUID	->	b1ccc96cb00c11ecb386020017011f98
[DBNAME	->	dbcli01
[STATE	->	success
[ACTION	->	recovery-start
[STARTED	->	2022-03-30 09:35:13 UTC
[ENDED	->	2022-03-30 09:44:51 UTC
[PID	->	25355
[TAG	->	latest-backup
[PCT	->	100
[LOG	->	2022-03-30	09:35:25.932974	- API::	Logfile is /var/opt/oracle/log/dbcli01/orec/orec_2022-03-30_09:35:14.29535625793.log	
[LOG	->	2022-03-30	09:35:27.618720	- API::	RUNNING IN NON DATAGUARD ENVIRONMENT	
[LOG	->	2022-03-30	09:35:27.621826	- API::	Data mode only	
[LOG	->	2022-03-30	09:35:27.622064	- API::	Stopping GRID DB	
[LOG	->	2022-03-30	09:36:09.559373	- API::	State GRID DB	
[LOG	->	2022-03-30	09:36:11.015024	- API::	Executing SHUTDOWN ABORT...2022-03-30 09:36:11.031303 - Output from sql shutdown abort	is:
[LOG	->	2022-03-30	09:36:15.937156	- API::	Checking prerequirements before recovery process.	
[LOG	->	2022-03-30	09:36:16.140751	- API::	State GRID DB	
[LOG
[LOG	->
->	ORA-01034:
2022-03-30	ORACLE not available2022-03-30 09:36:18.271454 - API:: DB Status
09:36:30.289610 - API:: Checking for PFILE in file system...	: 0
[LOG	->	2022-03-30	09:36:30.315366 - API:: PFILE is missing in file system and will	be recovered.
[LOG	->	2022-03-30	09:36:33.292310 - API:: PFILE recovered to file system.	
<>				




323 varchar2
 

データベースのリカバー 確認
dbaascli database recover


<続き>
[LOG	-> 2022-03-30 09:36:33.292493 - API:: PFILE is present in file system. [LOG	-> 2022-03-30 09:36:33.839931 - API:: Changing instance to MOUNT stage.
[LOG	-> 2022-03-30 09:36:33.840135 - API:: Shutting down the database...2022-03-30 09:36:33.846762 - DEBUG: SQL Executing set hea off set pagesize 5000 set linesize 400 set newpage none set feedback off prompt =START= shutdown abort; quit
[LOG	->	2022-03-30	09:36:44.053117	- API::	(RMAN) Startup mount...2022-03-30 09:37:12.519925 -	
[LOG	->	2022-03-30	09:37:13.061795	- API::	Checking for PDBs directories.	
[LOG	->	2022-03-30	09:37:26.000186	- API::	Catalog mode: 2022-03-30 09:37:26.001152 - Disabled	
[LOG	->	2022-03-30	09:37:28.658094	- API::	Testing RMAN connection.	
[LOG	->	2022-03-30	09:37:35.027959	- API::	bkup_standby_enabled = no	
[LOG	->	2022-03-30	09:37:40.431229	- API::	Verifying backups dates ..	
[LOG	->	2022-03-30	09:38:16.446819	- API::	Performing recovery from latest backup.2022-03-30 09:38:16.447158 - Output from sql select	status from
v$instance is:
[LOG	-> 2022-03-30 09:38:27.313624 - API:: Starting all instances in mount mode
[LOG	-> 2022-03-30 09:38:27.313771 - API:: Shutting down the database...2022-03-30 09:38:27.321995 - DEBUG: SQL Executing set hea off set pagesize 5000 set linesize 400 set newpage none set feedback off prompt =START= shutdown abort; quit
[LOG	->	2022-03-30	09:39:06.259017	- API::	State database verbose	
[LOG	->	2022-03-30	09:41:06.568328	- API::	Stopping GRID DB	
[LOG	->	2022-03-30	09:42:24.334841	- API::	State GRID DB	
[LOG	->	2022-03-30	09:42:25.259221	- API::	Starting GRID DB	
[LOG	->	2022-03-30	09:43:43.610490	- API::	State GRID DB	
[LOG	->	2022-03-30	09:43:47.605768	- API::	Recovery to latest backup	completed.
[LOG	->	2022-03-30	09:43:47.607688	- API::	Patching database...	
[ END	TICKET	]				
dbaascli execution completed






324 varchar2
 

PDBのバックアップ
dbaascli pdb backup --help

 

[root@orcl0329-pfutx1 ~]# dbaascli pdb backup --help DBAAS CLI version 22.1.1.1.0
 

--status
 


--uuid 
 
Executing command pdb backup --help
pdb backup - Performs PDB backup operations.

Usage: dbaascli pdb backup --dbname  --pdbName 
{
--start
{
 
--getBackupReport - Returns BackupReport.
--tag - Specify backup tag.
--json - Specify file Name for json output.
--list - Returns PDB backup information.
[--json - Specify file Name for json output. ]
 
[--level1]
| [--archival --tag ]
}
| --delete --backupTag 
| --status --uuid 
| --getBackupReport --tag  --json 
| --list [--json ]
}

Where:
--dbname - Oracle database name.
--pdbName - PDB name.
--start | --delete | --status | --getBackupReport | --list
--start - Begins PDB backup. [--level1 | --archival]
[--level1 - Creates a Level-1 (incremental) backup. ]
[--archival - Creates an Archival full backup. ]
--tag - Specify backup tag.
--delete - Deletes Archival backup.
--backupTag - Specify backup tag to delete.


325 varchar2
 

PDBのバックアップ
dbaascli pdb backup --start

[root@orcl0329-pfutx1 ~]# dbaascli pdb backup --dbname dbcli01 --start --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb backup --start --pdbname DBCLI01PDB01 DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : bkup_start
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_c13c9602_20220330233638.596307.log UUID 3f8e2b36b08211ec9717020017011f98 for this backup
** process started with PID: 199502
** see log file for monitor progress

dbaascli execution completed



















326 varchar2
 

PDBバックアップ実施状況の確認
dbaascli pdb backup --status

[root@orcl0329-pfutx1 ~]# dbaascli pdb backup --dbname dbcli01 --pdbname DBCLI01PDB01 --status --uuid 3f8e2b36b08211ec9717020017011f98
DBAAS CLI version 22.1.1.1.0
Executing command pdb backup --pdbname DBCLI01PDB01 --status --uuid 3f8e2b36b08211ec9717020017011f98 DBaaS Backup API V1.5 @2022 Multi-Oracle home
@ STARTING CHECK STATUS 3f8e2b36b08211ec9717020017011f98 [ REQUEST TICKET ]
[UUID
[DBNAME	->
->	3f8e2b36b08211ec9717020017011f98
dbcli01
[STATE	->	success
[ACTION	->	create-backup-incremental
[STARTED	->	2022-03-30 23:36:43 UTC
[ENDED	->	2022-03-30 23:40:54 UTC
[PID	->	199502
[TAG	->	TAG20220330T233913
[PCT	->	100
[LOG	->	2022-03-30	23:36:43.515786	- API::	invoked with args : -dbname=dbcli01 pdb=DBCLI01PDB01	-uuid=3f8e2b36b08211ec9717020017011f98	-format=dbaastools
[LOG	->	2022-03-30	23:36:46.872835	- API::	Oracle database state is up and running		
[LOG	->	2022-03-30	23:37:45.130611	- API::	DB instance: dbcli01		
[LOG	->	2022-03-30	23:37:53.755522	- API::	Performing backup to local storage (primary backup)		
[LOG	->	2022-03-30	23:37:53.756323	- API::	Executing rman instructions		
[LOG	->	2022-03-30	23:39:16.945803	- API::	.	OK		
[LOG	->	2022-03-30	23:39:16.945934	- API::	Backup to local storage is completed		
[LOG	->	2022-03-30	23:40:19.778010	- API::	VALIDATING DATABASE BACKUPS:		
[LOG
[ END	->
TICKET	2022-03-30
]	23:40:19.778386	- API::	All requested tasks are completed		
dbaascli execution completed





327 varchar2
 

PDBバックアップ取得状況の確認
dbaascli pdb backup --list

[root@orcl0329-pfutx1 ~]# dbaascli pdb backup --dbname dbcli01 --pdbname DBCLI01PDB01 --list
DBAAS CLI version 22.1.1.1.0
Executing command pdb backup --pdbname DBCLI01PDB01 --list DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : list
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_ab61a395_20220330234258.435246.log
-> Listing all backups
Backup Tag	Completion Date (UTC)	Type	keep

TAG20220330T092146	03/30/2022 09:21:46	incremental	False
TAG20220330T233913	03/30/2022 23:39:13	incremental	False
dbaascli execution completed [root@orcl0329-pfutx1 ~]#

















328 varchar2
 

PDBのリカバー
dbaascli pdb recover --help

[root@orcl0329-pfutx1 ~]# dbaascli pdb recover --help
DBAAS CLI version 22.1.1.1.0
Executing command pdb recover --help
pdb recover - Performs PDB recovery.

Usage: dbaascli pdb recover --dbname  --pdbName 
{
 
--start
{



}
 

--untilTime 
| --untilSCN 
| --latest
| --tag 
 
| --status --uuid 
}

Where:
--dbname - Oracle database name.
--pdbName - PDB name.
--start | --status
--start
--untilTime | --untilSCN | --latest | --tag
--untilTime - Recovers PDB until time. Input format: DD-MON-YYYY HH24:MI:SS.
--untilSCN - Recovers PDB until SCN.
--latest - Recovers PDB to last known state.
--tag - Recovers PDB to Archival tag.
--status
--uuid 


329 varchar2
 

PDBのリカバー
dbaascli pdb recover --start

[root@orcl0329-pfutx1 ~]# dbaascli pdb recover --dbname dbcli01 --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb recover --pdbname DBCLI01PDB01 --start --latest DBaaS Backup API V1.5 @2022 Multi-Oracle home
-> Action : recover_start
-> logfile: /var/opt/oracle/log/dbcli01/bkup_api_log/bkup_api_f6fdeeac_20220330234411.812367.log UUID 4e0a7678b08311ecbd14020017011f98 for this recovery
** process started with PID: 337236
** see log file for monitor progress

dbaascli execution completed



















330 varchar2
 

PDBのリカバー 確認
dbaascli pdb recover --status

[root@orcl0329-pfutx1 ~]# dbaascli pdb recover --dbname dbcli01 --pdbname DBCLI01PDB01
DBAAS CLI version 22.1.1.1.0
Executing command pdb recover --pdbname DBCLI01PDB01 --status --uuid 4e0a7678b08311ecbd14020017011f98 DBaaS Backup API V1.5 @2022 Multi-Oracle home
@ STARTING CHECK STATUS 4e0a7678b08311ecbd14020017011f98 [ REQUEST TICKET ]
[UUID	->	4e0a7678b08311ecbd14020017011f98
[DBNAME	->	dbcli01
[STATE	->	success
[ACTION	->	recovery-start
[STARTED	->	2022-03-30 23:44:19 UTC
[ENDED	->	2022-03-30 23:48:07 UTC
[PID	->	337236
[TAG	->	latest-backup
[PCT	->	100
[LOG	->	2022-03-30	23:44:30.300410	- API::	Logfile is /var/opt/oracle/log/dbcli01/orec/orec_2022-03-30_23:44:20.344685337978.log		
[LOG	->	2022-03-30	23:44:31.660508	- API::	RUNNING IN NON DATAGUARD ENVIRONMENT		
[LOG	->	2022-03-30	23:44:31.664447	- API::	Data mode only		
[LOG	->	2022-03-30	23:44:42.818087	- API::	Catalog mode: 2022-03-30 23:44:42.818997 - Disabled		
[LOG	->	2022-03-30	23:44:45.219708	- API::	bkup_standby_enabled = no		
[LOG	->	2022-03-30	23:44:50.146794	- API::	Verifying backups dates ..		
[LOG	->	2022-03-30	23:45:43.592651	- API::	Performing recovery from latest backup.2022-03-30 23:45:43.592982 - Output from sql select	status	from
v$instance is:
[LOG	-> 2022-03-30 23:47:34.462060 - API:: Recovery to latest backup completed. [LOG	-> 2022-03-30 23:47:34.463939 - API:: Patching database...
[ END TICKET ]
dbaascli execution completed




331 varchar2
 











Data Guard Association


















332 varchar2
 

Data Guard コマンド⼀覧
dbaascli dataguard --help


[root@orcl0329-pfutx1 ~]# dbaascli dataguard --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard --help
dataguard failover - failover to Standby when all db nodes are up. This command is expected to fail if primary is down. Failover can be performed using
'force' operation at your own risk.
dataguard reinstate - reinstate failed Primary as new Standby dataguard status - show dataguard status.
dataguard switchover - switchover to Standby. dataguard healthCheck - dataguard Healthcheck API.
dataguard verify - checks cluster readiness for hosting a standby database.
dataguard configureAWR - enables generation of AWR reports for standby database from primary database. dataguard convertStandby - facilitates type conversion for Standby Database.
dataguard configureRedoApply - manage and monitor the redo apply setting for a given Oracle database configured for Dataguard.

















333 varchar2
 

Data Guard のステータス
dbaascli dataguard status --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard status --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status --help dataguard status - show dataguard status.

Usage: dbaascli dataguard status [--details ] [--short ] [--dbname ]

Where:
[--details - more information related to dataguard. ]
[--short - short info like primary standby, congiuration name. ] [--dbname - Oracle database name. ]



















334 varchar2
 
Data Guard のステータスプライマリ
dbaascli dataguard status

 

[root@orcl0329-pfutx1 ~]# dbaascli dataguard status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status SUCCESS : Dataguard is up and running

DETAILS:
Connected to "dbcli01_czr_kix"
Connected as SYSDG.

Configuration - fsc

Protection Mode: MaxPerformance
Members:
dbcli01_czr_kix - Primary database dbcli01_standby - Physical standby database

Properties:
 
Fast-Start Failover: Disabled Configuration Status:
SUCCESS
 
FastStartFailoverThreshold	=	'30'
OperationTimeout	=	'30'
TraceLevel	=	'USER'
FastStartFailoverLagLimit	=	'30'
CommunicationTimeout	=	'180'
ObserverReconnect	=	'0'
FastStartFailoverAutoReinstate	=	'TRUE'
FastStartFailoverPmyShutdown	=	'TRUE'
BystandersFollowRoleChange	=	'ALL'
ObserverOverride	=	'FALSE'
ExternalDestination1	=	''
ExternalDestination2	=	''
PrimaryLostWriteAction	=	'CONTINUE'
ConfigurationWideServiceName	=	'dbcli01_CFG'

335 varchar2
 
Data Guard のステータススタンバイ
dbaascli dataguard status

 

[root@orcl0330-apjlw1 dg]# dbaascli dataguard status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status SUCCESS : Dataguard is up and running

DETAILS:
Connected to "dbcli01_standby"
Connected as SYSDG.

Configuration - fsc

Protection Mode: MaxPerformance
Members:
dbcli01_czr_kix - Primary database dbcli01_standby - Physical standby database

Properties:
 
Fast-Start Failover: Disabled Configuration Status:
SUCCESS
 
FastStartFailoverThreshold	=	'30'
OperationTimeout	=	'30'
TraceLevel	=	'USER'
FastStartFailoverLagLimit	=	'30'
CommunicationTimeout	=	'180'
ObserverReconnect	=	'0'
FastStartFailoverAutoReinstate	=	'TRUE'
FastStartFailoverPmyShutdown	=	'TRUE'
BystandersFollowRoleChange	=	'ALL'
ObserverOverride	=	'FALSE'
ExternalDestination1	=	''
ExternalDestination2	=	''
PrimaryLostWriteAction	=	'CONTINUE'
ConfigurationWideServiceName	=	'dbcli01_CFG'

336 varchar2
 
Data Guard のステータス スイッチオーバー後旧プライマリ
dbaascli dataguard status

 

[root@orcl0329-pfutx1 ~]# dbaascli dataguard status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status SUCCESS : Dataguard is up and running

DETAILS:
Connected to "dbcli01_czr_kix"
Connected as SYSDG.

Configuration - fsc

Protection Mode: MaxPerformance
Members:
dbcli01_standby - Primary database dbcli01_czr_kix - Physical standby database

Properties:
 
Fast-Start Failover: Disabled Configuration Status:
SUCCESS
 
FastStartFailoverThreshold	=	'30'
OperationTimeout	=	'30'
TraceLevel	=	'USER'
FastStartFailoverLagLimit	=	'30'
CommunicationTimeout	=	'180'
ObserverReconnect	=	'0'
FastStartFailoverAutoReinstate	=	'TRUE'
FastStartFailoverPmyShutdown	=	'TRUE'
BystandersFollowRoleChange	=	'ALL'
ObserverOverride	=	'FALSE'
ExternalDestination1	=	''
ExternalDestination2	=	''
PrimaryLostWriteAction	=	'CONTINUE'
ConfigurationWideServiceName	=	'dbcli01_CFG'

337 varchar2
 
Data Guard のステータス スイッチオーバー後旧スタンバイ
dbaascli dataguard status

 

[root@orcl0330-apjlw1 dg]# dbaascli dataguard status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status SUCCESS : Dataguard is up and running

DETAILS:
Connected to "dbcli01_standby"
Connected as SYSDG.

Configuration - fsc

Protection Mode: MaxPerformance
Members:
dbcli01_standby - Primary database dbcli01_czr_kix - Physical standby database

Properties:
 
Fast-Start Failover: Disabled Configuration Status:
SUCCESS
 
FastStartFailoverThreshold	=	'30'
OperationTimeout	=	'30'
TraceLevel	=	'USER'
FastStartFailoverLagLimit	=	'30'
CommunicationTimeout	=	'180'
ObserverReconnect	=	'0'
FastStartFailoverAutoReinstate	=	'TRUE'
FastStartFailoverPmyShutdown	=	'TRUE'
BystandersFollowRoleChange	=	'ALL'
ObserverOverride	=	'FALSE'
ExternalDestination1	=	''
ExternalDestination2	=	''
PrimaryLostWriteAction	=	'CONTINUE'
ConfigurationWideServiceName	=	'dbcli01_CFG'

338 varchar2
 

Data Guard フェイルオーバー
dbaascli dataguard failover --help


[root@orcl0330-apjlw1 dg]# dbaascli dataguard failover --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard failover --help
dataguard failover - failover to Standby when all db nodes are up. This command is expected to fail if primary is down. Failover can be performed using 'force' operation at your own risk.
Usage: dbaascli dataguard failover [--force ] [--password ] [--dbname ] Where:
[--force - force failover to Standby (yes|no). ] [--password - password for sys user. ]
[--dbname - Oracle database name. ]


















339 varchar2
 

Data Guard フェイルオーバー
dbaascli dataguard failover

[root@orcl0329-pfutx1 ~]# dbaascli dataguard failover --dbname dbcli01 --password *****
DBAAS CLI version 22.1.1.1.0
Executing command dataguard failover --password ***** Connected to "dbcli01_czr_kix"
Connected as SYSDBA.
Performing failover NOW, please wait...
Failover succeeded, new primary is "dbcli01_czr_kix"
SUCCESS : Successfully failed over to Standby






















340 varchar2
 

Data Guard フェイルオーバー後のステータス 新プライマリ
dbaascli dataguard status

 

[root@orcl0329-pfutx1 ~]# dbaascli dataguard status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status SUCCESS : Dataguard is up and running

DETAILS:
Connected to "dbcli01_czr_kix"
Connected as SYSDG.

Configuration - fsc

Protection Mode: MaxPerformance Members:
dbcli01_czr_kix - Primary database
dbcli01_standby - Physical standby database (disabled) ORA-16661: the standby database needs to be reinstated

Properties:
FastStartFailoverThreshold	= '30'
OperationTimeout	= '30'
TraceLevel	= 'USER'
FastStartFailoverLagLimit	= '30'
CommunicationTimeout	= '180'
ObserverReconnect	= '0' FastStartFailoverAutoReinstate = 'TRUE' FastStartFailoverPmyShutdown	= 'TRUE' BystandersFollowRoleChange	= 'ALL' ObserverOverride	= 'FALSE'
ExternalDestination1	= ''
ExternalDestination2	= ''
 

PrimaryLostWriteAction	= 'CONTINUE'
ConfigurationWideServiceName	= 'dbcli01_CFG'
Fast-Start Failover: Disabled Configuration Status:
SUCCESS
 

341 varchar2
 

Data  Guard  フェイルオーバー後、旧プライマリをスタンバイへ
dbaascli dataguard reinstate --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard reinstate --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard reinstate --help
dataguard reinstate - reinstate failed Primary as new Standby
Usage: dbaascli dataguard reinstate [--password ] [--dbname ] Where:
[--password - password for sys user. ] [--dbname - Oracle database name. ]




















342 varchar2
 

Data  Guard  フェイルオーバー後、旧プライマリをスタンバイへ
dbaascli dataguard reinstate

[root@orcl0330-apjlw1 dg]# dbaascli dataguard reinstate --dbname dbcli01 --password *****
DBAAS CLI version 22.1.1.1.0
Executing command dataguard reinstate --password *****
Successfully reinstated dataguard instances
Detail : Successfully reinstated database : dbcli01_standby

























343 varchar2
 

Data Guard reinstate のステータス スタンバイ
dbaascli dataguard status

 

[root@orcl0330-apjlw1 dg]# dbaascli dataguard status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status SUCCESS : Dataguard is up and running

DETAILS:
Connected to "dbcli01_standby" Connected as SYSDG.

Configuration - fsc

Protection Mode: MaxPerformance Members:
dbcli01_czr_kix - Primary database
dbcli01_standby - Physical standby database

Properties:
 
Fast-Start Failover: Disabled Configuration Status:
SUCCESS
 
FastStartFailoverThreshold	=	'30'
OperationTimeout	=	'30'
TraceLevel	=	'USER'
FastStartFailoverLagLimit	=	'30'
CommunicationTimeout	=	'180'
ObserverReconnect	=	'0'
FastStartFailoverAutoReinstate	=	'TRUE'
FastStartFailoverPmyShutdown	=	'TRUE'
BystandersFollowRoleChange	=	'ALL'
ObserverOverride	=	'FALSE'
ExternalDestination1	=	''
ExternalDestination2	=	''
PrimaryLostWriteAction	=	'CONTINUE'
ConfigurationWideServiceName	=	'dbcli01_CFG'

344 varchar2
 

Data Guard のスイッチオーバー
dbaascli dataguard switchover --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard switchover --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard switchover --help
dataguard switchover - switchover to Standby.
Usage: dbaascli dataguard switchover [--password ] [--dbname ] Where:
[--password - password for sys user. ] [--dbname - Oracle database name. ]




















345 varchar2
 

Data Guard のスイッチオーバー
dbaascli dataguard switchover

[root@orcl0329-pfutx1 ~]# dbaascli dataguard switchover --dbname dbcli01 --password *****
DBAAS CLI version 22.1.1.1.0
Executing command dataguard switchover --password ***** Connected to "dbcli01_standby"
Connected as SYSDBA.
Performing switchover NOW, please wait...
New primary database "dbcli01_standby" is opening...
Oracle Clusterware is restarting database "dbcli01_czr_kix" ...
[W000 2022-04-01T02:49:09.532+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:10.543+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:11.553+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:12.563+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:13.574+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:14.584+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:15.594+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:16.604+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:17.617+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:18.628+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:19.639+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:20.648+00:00] Failed to attach to dbcli01_czr_kix. [W000 2022-04-01T02:49:21.658+00:00] Failed to attach to dbcli01_czr_kix. Connected to "dbcli01_czr_kix"
Connected to "dbcli01_czr_kix"
Switchover succeeded, new primary is "dbcli01_standby"
SUCCESS : Switchover to Standby operation completed successfully






346 varchar2
 

Data Guard reinstate のステータス スタンバイ
dbaascli dataguard status

 

[root@orcl0329-pfutx1 ~]# dbaascli dataguard status --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard status SUCCESS : Dataguard is up and running

DETAILS:
Connected to "dbcli01_czr_kix" Connected as SYSDG.

Configuration - fsc

Protection Mode: MaxPerformance Members:
dbcli01_standby - Primary database dbcli01_czr_kix - Physical standby database

Properties:
 
Fast-Start Failover: Disabled Configuration Status:
SUCCESS
 
FastStartFailoverThreshold	=	'30'
OperationTimeout	=	'30'
TraceLevel	=	'USER'
FastStartFailoverLagLimit	=	'30'
CommunicationTimeout	=	'180'
ObserverReconnect	=	'0'
FastStartFailoverAutoReinstate	=	'TRUE'
FastStartFailoverPmyShutdown	=	'TRUE'
BystandersFollowRoleChange	=	'ALL'
ObserverOverride	=	'FALSE'
ExternalDestination1	=	''
ExternalDestination2	=	''
PrimaryLostWriteAction	=	'CONTINUE'
ConfigurationWideServiceName	=	'dbcli01_CFG'

347 varchar2
 

Data Guard のヘルスチェック
dbaascli dataguard healthcheck --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard healthcheck --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard healthcheck --help
dataguard healthCheck - dataguard Healthcheck API.

Usage: dbaascli dataguard healthCheck [--dbname ] [--iperf --remoteNodes ] [--type ]

Where:
[--dbname - Oracle database name. ]
[--iperf - Network throughput check using iperf utility. ]
--remoteNodes - remote RAC nodes list.
[--type - decides what type of checks to be performed. ]


















348 varchar2
 

Data Guard のヘルスチェック
dbaascli dataguard healthcheck --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard healthcheck --dbname dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard healthcheck

Results:

INFO: Verifying Network

INFO: All SCAN VIPs are enabled and running, check PASSED An error occurred during module execution.
Please refer to the log file for more information.
ERROR: addstby checks FAILED

To Do:

DGHCK-50601 : One or more SCAN VIP are disabled or not running
Start SCAN's using command '/bin/srvctl start scan -n '

NOTE: Dependent checks might not have run due to above exceptions. Fix them and re-run health check Done addstby checks...!








349 varchar2
 

Data Guard のベリファイ
dbaascli dataguard verify --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard verify --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard verify --help
dataguard verify - checks cluster readiness for hosting a standby database.

Usage: dbaascli dataguard verify [--db ] [--remoteNodes ] [--json ]

Where:
[--db - DB on which checks are to be performed.] [--remoteNodes - remote RAC nodes list. ]
[--json - on primary, prints configuration in JSON format, on Standby, expects primary configuration in JSON format.]



















350 varchar2
 

Data Guard のベリファイ
dbaascli dataguard verify

[root@orcl0329-pfutx1 ~]# dbaascli dataguard verify --db dbcli01
DBAAS CLI version 22.1.1.1.0
Executing command dataguard verify --db dbcli01

INFO: Verifying Nodes

INFO: scan_listener up on all nodes of cluster, check PASSED INFO: listener up on all nodes of cluster, check PASSED INFO: Listener port up on all nodes, check PASSED
INFO: Verifying OS

INFO: Checking user equivalence

INFO: RPM: dbaastools_exa-1.0-1+22.1.1.1.0_220317.1256.x86_64 is same on all nodes INFO: RPM: dbcs-agent-update-22.1.1.1.0-220317.1256.x86_64 is same on all nodes INFO: RPM: dbcs-admin-update-1.2-21.1.1.0.1_210324.2216.x86_64 is same on all nodes INFO: Verifying ASM
INFO: Verifying DB status
INFO: Checking important files INFO: Verifying Wallet size
<>


351 varchar2
 

Data Guard のベリファイ
dbaascli dataguard verify

<続き>
INFO: Checking wallet tar size is less than 1M

INFO: TAR file size of /var/opt/oracle/dbaas_acfs/dbcli01 is 61440 INFO: Checking patch level on Oracle Home
ERROR: Not all instances of database dbcli01_czr_kix are in READ WRITE mode INFO: Non KMS environment
Logfile: /var/opt/oracle/log/dbcli01/dghealth_check/dghealth_check_2022-04-01_02:54:13.515953274944.log

.	.
|	CONFIGURATION	|
+	+	+
| PARAMETER	| VALUE	|
+	+	+
| dbaastools_exa_version	| dbaastools_exa-1.0-1+22.1.1.1.0_220317.1256.x86_64	|
| dbcs-admin-update-exacc_version | NOT_INSTALLED	|
| dbcs-admin-update_version	| dbcs-admin-update-1.2-21.1.1.0.1_210324.2216.x86_64	|
| dbcs-agent-update-exacc_version | NOT_INSTALLED	|
| dbcs-agent-update_version	| dbcs-agent-update-22.1.1.1.0-220317.1256.x86_64	|
| free_space_RECO	| 29522717 MB	|
| patch_level	| d1bdc55d9962bc51d46cc6128fc447b392aee6b3c85cf3d2b0541a0cdb149ec6 |
| required_space_RECO	| 40000 MB	|
'	+	'
<>


352 varchar2
 

Data Guard のベリファイ
dbaascli dataguard verify

<続き>
.	.
|	RESULTS	|
+	+	+
| CHECK TYPE	| STATUS |
+	+	+
| check_file_creg	| PASSED |
| check_file_sqlnet	| PASSED |
| check_file_tnsnames	| PASSED |
| database_checks	| SKIPPED |
| db_status	| FAILED |
| dbaastools_exa_rpm_check	| PASSED |
| dbcs-admin-update-exacc_rpm_check	| PASSED |
| dbcs-admin-update_rpm_check	| PASSED |
| dbcs-agent-update-exacc_rpm_check	| PASSED |
| dbcs-agent-update_rpm_check	| PASSED |
| listener_status_listener	| PASSED |
| listener_status_scan_listener	| PASSED |
| node_status	| PASSED |
| space_check_/var/opt/oracle/dbaas_acfs | PASSED |
| space_check_RECO	| PASSED |
| tnsport_check	| PASSED |
| user_equivalence_for_grid	| PASSED |
| user_equivalence_for_opc	| PASSED |
| user_equivalence_for_oracle	| PASSED |
| validate_sys_passwd	| SKIPPED |
| wallet_size_check	| PASSED |
'	+	'
<>


353 varchar2
 

Data Guard のベリファイ
dbaascli dataguard verify


<続き>
.	.
|	EXCEPTIONS	|
+	+	+
| EXCEPTION | DETAILS	|
+	+	+
| CDG-50606 | One or more instances of db 'dbcli01' are disabled or down or not in 'READ WRITE' mode |
|	| Enable and Start all instances of database dbcli01 in 'READ_WRITE' mode	|
'	+	'





















354 varchar2
 

Data  Guard  スタンバイ環境のAWR⽣成をプライマリから実施
dbaascli dataguard configureAWR --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard configureAWR --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard configureAWR --help
dataguard configureAWR - enables generation of AWR reports for standby database from primary database.
Usage: dbaascli dataguard configureAWR [--action ] [--dbname ] Where:
[--action - inputs action to be performed on AWR.] [--dbname - Oracle database name. ]




















355 varchar2
 

Data  Guard  スタンバイスナップショットへの変換
dbaascli dataguard convertStandby --help

[root@orcl0329-pfutx1 ~]# dbaascli dataguard convertStandby --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard convertStandby --help
dataguard convertStandby - facilitates type conversion for Standby Database.
Usage: dbaascli dataguard convertStandby --dbname  --standbyType  [--standbyName ] Where:
--dbname - Oracle database name.
--standbyType - Specify intended standby database type to convert. Possible values are physical | snapshot
[--standbyName - specifies database unique name of standby database to be converted. On omission, defaults to first available standby database.]



















356 varchar2
 

Data Guard redo 適⽤の設定確認
dbaascli dataguard configureRedoApply --help


[root@orcl0329-pfutx1 ~]# dbaascli dataguard configureRedoApply --help
DBAAS CLI version 22.1.1.1.0
Executing command dataguard configureRedoApply --help
dataguard configureRedoApply - manage and monitor the redo apply setting for a given Oracle database configured for Dataguard.

Usage: dbaascli dataguard configureRedoApply --dbname 
{
--status
| --enable
| --disable
}

Where:
--dbname - Oracle database name.
--status | --enable | --disable
--status - obtain the current Redo Apply status for the database being requested.
--enable - enable the Redo Apply setting for the database being requested.
--disable - disable the Redo Apply setting for the database being requested.













357 varchar2
 

Data Guard redo 適⽤の設定確認
dbaascli dataguard configureRedoApply --status

[root@orcl0329-pfutx1 ~]# dbaascli dataguard configureRedoApply --dbname dbcli01 --status
DBAAS CLI version 22.1.1.1.0
Executing command dataguard configureRedoApply --status Job id: 0426645b-2876-43de-8de2-68d1cb1231f2
{
"redoApplyStatus" : {
"dbcli01_czr_kix" : "ENABLED"
}
}
dbaascli execution completed




















358 varchar2
 

Data Guard redo 適⽤の設定確認
dbaascli dataguard configureRedoApply --disable

[root@orcl0329-pfutx1 ~]# dbaascli dataguard configureRedoApply --dbname dbcli01 --disable
DBAAS CLI version 22.1.1.1.0
Executing command dataguard configureRedoApply --disable Job id: 8dc55cd9-da1e-4ee2-ab38-d1efd6c69c11
dbaascli execution completed

[root@orcl0329-pfutx1 ~]# dbaascli dataguard configureRedoApply --dbname dbcli01 --status
DBAAS CLI version 22.1.1.1.0
Executing command dataguard configureRedoApply --status Job id: c6ff1875-89ae-41a4-97be-5189c03d422a
{
"redoApplyStatus" : {
"dbcli01_czr_kix" : "DISABLED"
}
}
dbaascli execution completed















359 varchar2
 

Data Guard redo 適⽤の設定確認
dbaascli dataguard configureRedoApply --enable

[root@orcl0329-pfutx1 ~]# dbaascli dataguard configureRedoApply --dbname dbcli01 --enable
DBAAS CLI version 22.1.1.1.0
Executing command dataguard configureRedoApply --enable Job id: 447cf941-4b2d-4fd0-89ad-33dd6e6b9006
dbaascli execution completed

[root@orcl0329-pfutx1 ~]# dbaascli dataguard configureRedoApply --dbname dbcli01 --status
DBAAS CLI version 22.1.1.1.0
Executing command dataguard configureRedoApply --status Job id: f17f929d-899d-4364-b02a-9f562ff93e42
{
"redoApplyStatus" : {
"dbcli01_czr_kix" : "ENABLED"
}
}
dbaascli execution completed















360 varchar2
 
 22.2.1.0.1 新機能 
Data Guard の設定変更
dbaascli dataguard updateDGConfigAttributes --help

[root@orcl-jyvid1 ~]# dbaascli dataguard updateDGConfigAttributes --help
DBAAS CLI version 22.2.1.0.1
Executing command dataguard updateDGConfigAttributes --help
dataguard updateDGConfigAttributes - update Dataguard Automation Attributes across all nodes of a cluster.
Usage: dbaascli dataguard updateDGConfigAttributes --attributes 

Where:
--attributes - Contains the DG Automation attributes that are to be modified. Takes comma separated values of format . Attributes must be predefined in DG configuration file.




















361 varchar2
 

Data Guard の設定確認
dbaascli dataguard showDGConfigAttributes --help

[root@orcl-jyvid1 ~]# dbaascli dataguard showDGConfigAttributes --help
DBAAS CLI version 22.2.1.0.1
Executing command dataguard showDGConfigAttributes --help
dataguard showDGConfigAttributes - show Dataguard Automation Attributes on a cluster.
Usage: dbaascli dataguard showDGConfigAttributes [--attribute ] Where:
[--attribute - Specifies a DG Automation attribute to be shown. Attribute must be predefined in DG configuration file.]





















362 varchar2
 











TDE操作











363 varchar2
 


TDE
dbaascli tde --help

[root@taro-3nusm1 ~]# dbaascli tde --help
DBAAS CLI version 24.1.1.0.0
Executing command tde --help
tde setPrimaryHSMKey - change primary HSM(KMS) key for existing HSM(KMS) configuration. tde setKeyVersion - sets the version of the primary key to be used in DB/CDB or PDB.
tde removeSecondaryHSMKey - remove second HSM(KMS) key from existing HSM(KMS) configuration. tde hsmToFile - convert HSM(KMS/OKV) based TDE to FILE based TDE.
tde getPrimaryHSMKey - get Primary HSM(KMS) key from existing HSM(KMS) configuration. tde fileToHSM - convert FILE based TDE to HSM(KMS/OKV) based TDE.
tde addSecondaryHSMKey - add second HSM(KMS) key to existing HSM(KMS) configuration. tde backup - backup TDE wallets to local disk.
tde changePassword - changes TDE keystore password as well as DB wallet password for the alias tde_ks_passwd. tde listKeys - list TDE master keys.
tde status - show TDE configuration status.
tde getMKIDForKeyVersionOCID - get Masterkey ID associated to KMS key version OCID. tde getHSMKeys - get TDE active key details.
tde encryptTablespacesInPDB - encrypt all the tablespaces present in the given PDB. tde enableWalletRoot - enable wallet_root spfile parameter for existing database. tde exportTDEKey - export TDE master encryption key into a file.
tde rotateMasterKey - rotate TDE master key.

[root@taro-3nusm1 ~]#









364 varchar2
 


TDE
dbaascli tde --help

[root@taro-3nusm1 ~]# dbaascli tde --help DBAAS CLI version 24.1.1.0.0
Executing command tde --help

並び替えた
tde status - show TDE configuration status. tde listKeys - list TDE master keys.
tde getHSMKeys - get TDE active key details.
tde getPrimaryHSMKey - get Primary HSM(KMS) key from existing HSM(KMS) configuration. tde getMKIDForKeyVersionOCID - get Masterkey ID associated to KMS key version OCID.

tde fileToHSM - convert FILE based TDE to HSM(KMS/OKV) based TDE.
tde addSecondaryHSMKey - add second HSM(KMS) key to existing HSM(KMS) configuration. tde setPrimaryHSMKey - change primary HSM(KMS) key for existing HSM(KMS) configuration. tde rotateMasterKey - rotate TDE master key.
tde setKeyVersion - sets the version of the primary key to be used in DB/CDB or PDB.
tde removeSecondaryHSMKey - remove second HSM(KMS) key from existing HSM(KMS) configuration.

tde backup - backup TDE wallets to local disk.
tde changePassword - changes TDE keystore password as well as DB wallet password for the alias tde_ks_passwd. tde encryptTablespacesInPDB - encrypt all the tablespaces present in the given PDB.
tde exportTDEKey - export TDE master encryption key into a file.
tde hsmToFile - convert HSM(KMS/OKV) based TDE to FILE based TDE.
tde enableWalletRoot - enable wallet_root spfile parameter for existing database.

[root@taro-3nusm1 ~]#


365 varchar2
 


TDE
dbaascli tde status --help
指定したデータベースのキーストアに関する情報を表示 [root@taro-3nusm1 ~]# dbaascli tde status --help
DBAAS CLI version 24.1.1.0.0
Executing command tde status --help
tde status - show TDE configuration status.
Usage: dbaascli tde status --dbname  Where:
--dbname - Oracle database name.

[root@taro-3nusm1 ~]#

















366 varchar2
 


TDE
dbaascli tde status

TDE FILE の場合

[root@taro-3nusm1 ~]# dbaascli tde status --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde status --dbname DB0206 Job id: 94c58b8e-35dd-4364-90a8-68c74d1dbdce
Session log: /var/opt/oracle/log/DB0206/tde/status/dbaastools_2024-02-20_11-18-58-AM_174386.log TDE is configured on this instance with:
keystore login: auto keystore status:  keystore type: autologin

Instance is a CDB with PDB's:
PDB1
TDE configuration matches with CDB on: PDB1 Checking wallet consistency.
Master keys compared successfully. dbaascli execution completed [root@taro-3nusm1 ~]#










367 varchar2
 


TDE
dbaascli tde status

OCI Vault の場合

[root@kara-vpvao1 ~]# dbaascli tde status --dbname DB1017
DBAAS CLI version 24.1.1.0.0
Executing command tde status --dbname DB1017 Job id: 2bf5ad13-1104-4499-9657-b91a2e2e3fa0
Session log: /var/opt/oracle/log/DB1017/tde/status/dbaastools_2024-02-20_02-26-58-AM_104380.log TDE is configured on this instance with:
keystore login: auto keystore status:  keystore type: hsm

Instance is a CDB with PDB's:
PDB1

TDE configuration matches with CDB on: PDB1 dbaascli execution completed
[root@kara-vpvao1 ~]#













368 varchar2
 


TDE
dbaascli tde listKeys --help

TDEマスター・キーをリスト

[root@taro-3nusm1 ~]# dbaascli tde listKeys --help
DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --help tde listKeys - list TDE master keys.
Usage: dbaascli tde listKeys --dbname  [--infoFilePath ] Where:
--dbname - Oracle database name.
[--infoFilePath - specifies the absolute path of the file where the results will be saved. ]

[root@taro-3nusm1 ~]#
















369 varchar2
 


TDE
dbaascli tde listKeys

TDE FILE の場合

[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 8a32e76a-bd02-4a23-a7f6-a7e717fe4b03
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-20_10-54-08-AM_1687.log [ {
"key" : "AUW/MIfHD08Pv+uGyIQC/VgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "1",
"age_days" : "14", "creation_date" : "06-FEB-24"
}, {
"key" : "AYTSfKQnwk+mv4rNYtfQMsYAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "3",
"age_days" : "14", "creation_date" : "06-FEB-24"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#











370 varchar2
 


TDE
dbaascli tde listKeys

OCI Key Vault の場合

[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 3d8cb2b2-0563-4ac0-aded-e13bfdfd5bb9
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-21_12-06-27-PM_33636.log [ {
"key" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#











372 varchar2
 


TDE
dbaascli tde getHSMKeys --help

TDEアクティブ・キーの詳細を取得

[root@taro-3nusm1 ~]# dbaascli tde getHSMKeys --help
DBAAS CLI version 24.1.1.0.0
Executing command tde getHSMKeys --help
tde getHSMKeys - get TDE active key details.
Usage: dbaascli tde getHSMKeys --dbname  [--infoFilePath ] Where:
--dbname - Oracle database name.
[--infoFilePath - specifies the absolute path of the file where the results will be saved. ]

[root@taro-3nusm1 ~]#
















374 varchar2
 


TDE
dbaascli tde getHSMKeys

OCI Vault の場合

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 6b79f907-c028-4b6c-8297-3bfe682c6a42
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_12-19-31-PM_112401.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a", "secondary_kms_key_ocid_list" : null,
"active_master_keys" : { "PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbtyaa.abvwsljrz4ttmiy2b7avp6zwkvmy3sbdqzozq542marlcemnotuzurxihzaq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbkiaa.abvwsljrpcydridst6u4jukpqksros7moiixfwaxotfiwfgo44ebgukgqkkq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#




375 varchar2
 
 

TDE
dbaascli tde getHSMKeys
























376 varchar2
 


TDE
dbaascli tde getHSMKeys

TDE FILE だとエラーになる

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 79477130-77ad-40a4-972d-d21e880dde94
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-20_11-30-58-AM_243882.log [FATAL] [DBAAS-60226] KMS is not configured for database 'DB0206'.
[root@taro-3nusm1 ~]#





















377 varchar2
 


TDE
dbaascli tde getPrimaryHSMKey --help
既存のHSM (KMS)構成からプライマリHSM (KMS)キーを取得 [root@taro-3nusm1 ~]# dbaascli tde getPrimaryHSMKey --help
DBAAS CLI version 24.1.1.0.0
Executing command tde getPrimaryHSMKey --help
tde getPrimaryHSMKey - get Primary HSM(KMS) key from existing HSM(KMS) configuration.
Usage: dbaascli tde getPrimaryHSMKey --dbname  Where:
--dbname - Oracle database name.

[root@taro-3nusm1 ~]#

















378 varchar2
 


TDE
dbaascli tde getPrimaryHSMKey --help

OCI Vault の場合

[root@kara-vpvao1 ~]# dbaascli tde getPrimaryHsmKey --dbname DB1017
DBAAS CLI version 24.1.1.0.0
Executing command tde getPrimaryHsmKey --dbname DB1017 Job id: 32732409-0967-410a-9b3b-9535e507b94f
Session log: /var/opt/oracle/log/DB1017/tde/getPrimaryHSMKey/dbaastools_2024-02-20_05-47-00-AM_24295.log "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrmeh4hjz7ocy6n536c7cjqc5b2uvtzekwee5rhchilmybvnjmx4va" dbaascli execution completed
[root@kara-vpvao1 ~]#




















379 varchar2
 


TDE
dbaascli tde getMKIDForKeyVersionOCID --help
KMSキー・バージョンOCIDに関連付けられたマスター・キーIDを取得 [root@taro-3nusm1 ~]# dbaascli tde getMKIDForKeyVersionOCID --help
DBAAS CLI version 24.1.1.0.0
Executing command tde getMKIDForKeyVersionOCID --help
tde getMKIDForKeyVersionOCID - get Masterkey ID associated to KMS key version OCID.
Usage: dbaascli tde getMKIDForKeyVersionOCID --kmsKeyVersionOCID  [--dbname ] [--waitForCompletion ] Where:
--kmsKeyVersionOCID - KMS key version OCID to be set.	# key version の OCID を指定する [--dbname - Oracle database name. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
[root@taro-3nusm1 ~]#

OCID から MKID を引っ張ってくる

# kms-tde-cli find-mkid-for-ocid コマンドの機能












380 varchar2
 
 

TDE
dbaascli tde getMKIDForKeyVersionOCID

[root@kara-vpvao1 ~]# dbaascli tde getMkidForKeyVersionOCID --dbname DB1017 --kmsKeyVersionOCID ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gseemu7xahiaa.abvwsljrxk5knbkwpbn45wz4kojtrh4kwbahixtnkqysbb5tqptudzkq3jfa (OCID の中に keyversion が入るのが正しいOCID) DBAAS CLI version 24.1.1.0.0
Executing command tde getMkidForKeyVersionOCID --dbname DB1017 --kmsKeyVersionOCID ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gseemu7xahiaa.abvwsljrxk5knbkwpbn45wz4kojtrh4kwbahixtnkqysbb5tqptudzkq3jfa
Job id: 5f180b7e-44c0-4157-be50-3868b47e8493
Session log: /var/opt/oracle/log/DB1017/tde/getMKIDForKeyVersionOCID/dbaastools_2024-02-20_02-58-36-AM_64537.log VERSION_ID="7.9"
Query Database
=========Start of output ============
{
"kms_key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gseemu7xahiaa.abvwsljrxk5knbkwpbn45wz4kojtrh4kwbahixtnkqysbb5tqptudzkq3jfa", "master_key_id" : "060F43DE51F4D94FFCBF0AB0790DE2BE3B"
}
=========End of output ============ 100% complete
Look at the log file "/var/opt/oracle/log/dbaastools/cfgtoollogs/dbca/DB1017_9k6_kix/DB1017_9k6_kix1.log" for further details. dbaascli execution completed
[root@kara-vpvao1 ~]#












381 varchar2
 
 

TDE
dbaascli tde getMKIDForKeyVersionOCID



























382 varchar2
 
 

TDE
dbaascli tde getMKIDForKeyVersionOCID



















383 varchar2
 


TDE
dbaascli tde fileToHSM --help
FILEベースのTDEをHSM (KMS/OKV)ベースのTDEに変換 [root@taro-3nusm1 ~]# dbaascli tde fileToHSM --help
DBAAS CLI version 24.1.1.0.0
Executing command tde fileToHSM --help
tde fileToHSM - convert FILE based TDE to HSM(KMS/OKV) based TDE.

Usage: dbaascli tde fileToHSM
{
--kmsKeyOCID 
| --okvServer  --okvAdminUserName  [--okvServerRestPort ]
}
--dbname  [--hsmKeystoreConfigType ] [--skipPatchCheck ] [--executePrereqs] [--primarySuc ]
{
[--resume [--sessionID ]]
| [--revert [--sessionID ]]
}
[--waitForCompletion ]

 









384
 
Where:
--kmsKeyOCID | --okvServer
--kmsKeyOCID - specifies KMS key OCID to use for TDE. This is applicable only if KMS is selected for TDE
--okvServer - Specifies the Oracle Key Vault server
--okvAdminUserName - Specifies the Oracle Key Vault admin user name
[--okvServerRestPort - Specifies the rest port number for Oracle Key Vault]
--dbname - Oracle database name.
[--hsmKeystoreConfigType - Specifies the HSM based keystore config type. Allowed values are OKV, KMS. Default value is KMS] [--skipPatchCheck - skip the validation check for required patches if the value passed for this argument is true. ]
[--executePrereqs - run the prerequisite checks and report the results. ]
[--primarySuc - specifies this property in standby database of DG environment once command is successfully run on primary database. ] [--resume | --revert]
[--resume - to resume the previous operation]
Copyrigh[t--©se2s0s2i4o,nOIDrac-letaondr/eosruimtse aaffilsiapteecsi,fic session id.] [--revert - to rollback the previous operation]
 



TDE
dbaascli tde fileToHSM

現在の設定の確認

[oracle@taro-3nusm1 ~]$ env | grep ORA ORACLE_UNQNAME=DB0206_3cg_kix ORACLE_SID=DB02061
ORACLE_BASE=/u02/app/oracle ORACLE_HOME=/u02/app/oracle/product/19.0.0.0/dbhome_1 ORACLE_HOSTNAME=taro-3nusm1.sub04210756190.exavcn.oraclevcn.com [oracle@taro-3nusm1 ~]$ sql / as sysdba

SQLcl: Release 21.4 Production on Tue Feb 20 15:40:58 2024 Copyright (c) 1982, 2024, Oracle. All rights reserved.
Connected to:
Oracle Database 19c EE Extreme Perf Release 19.0.0.0.0 - Production Version 19.22.0.0.0

SQL> select * from v$encryption_wallet;

WRL_TYPE	WRL_PARAMETER	STATUS	WALLET_TYPE	WALLET_ORDER	KEYSTORE_MODE	FULLY_BACKED_UP	CON_ID

FILE	/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde/	OPEN	AUTOLOGIN	SINGLE	NONE	NO	1
FILE	OPEN	AUTOLOGIN	SINGLE	UNITED	NO	2
FILE	OPEN	AUTOLOGIN	SINGLE	UNITED	NO	3
SQL>
385 varchar2
 


TDE
dbaascli tde fileToHSM

現在の設定の確認

SQL> select * from V$ENCRYPTION_KEYS;

KEY_ID	TAG					CREATION_TIME			ACTIVATION_TIME	CREATOR CREATOR_ID	USER	USER_ID	KEY_USE	KEYSTORE_TYPE	ORIGIN	BACKED_UP		CREATOR_DBNAME	CREATOR_DBID	CREATOR_INSTANCE_NAME CREATOR_INSTANCE_NUMBER	CREATOR_INSTANCE_SERIAL		CREATOR_PDBNAME	CREATOR_PDBID	CREATOR_PDBUID		CREATOR_PDBGUID
ACTIVATING_DBNAME	ACTIVATING_DBID	ACTIVATING_INSTANCE_NAME	ACTIVATING_INSTANCE_NUMBER	ACTIVATING_INSTANCE_SERIAL	ACTIVATING_PDBNAME
ACTIVATING_PDBID	ACTIVATING_PDBUID	ACTIVATING_PDBGUID	CON_ID		





AUW/MIfHD08Pv+uGyIQC/VgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA		06-FEB-24	12.09.37.791589000 AM -07:00	06-FEB-24 12.09.37.791592000	AM	-07:00	SYS
0 SYS	0 TDE IN PDB	SOFTWARE KEYSTORE	LOCAL	YES	DB0206_3cg_kix	2035846871 DB02061			
1	4294967295 CDB$ROOT		1	1 0F39DE50B35A3B53E0638A5346646D89	DB0206_3cg_kix			2035846871
DB02061	1		4294967295 CDB$ROOT	1			1
0F39DE50B35A3B53E0638A5346646D89	1						
AYTSfKQnwk+mv4rNYtfQMsYAAAAAAAAAAAAAAAAAAAAAAAAAAAAA		06-FEB-24	12.15.48.954639000 AM -07:00	06-FEB-24 12.15.48.954641000	AM	-07:00	SYS
0 SYS	0	TDE	IN PDB	SOFTWARE	KEYSTORE	LOCAL		NO	DB0206_3cg_kix	2035846871 DB02061	
1			2 PDB1				3		1850779247 10B257CFAE20160DE0632C00000AA91C	DB0206_3cg_kix	2035846871
DB02061	1	2 PDB1	3	1850779247
10B257CFAE20160DE0632C00000AA91C	3
SQL>




386 varchar2
 
 

TDE
dbaascli tde fileToHSM



















387 varchar2
 


TDE
dbaascli tde fileToHSM

プリチェック

[root@taro-3nusm1 ~]# dbaascli tde fileToHSM --dbname DB0206 --kmsKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a --executePrereqs DBAAS CLI version 24.1.1.0.0
Executing command tde fileToHSM --dbname DB0206 --kmsKeyOCID ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a
--executePrereqs
Job id: c234fb76-35e7-400f-bc02-ba7f06c8cfce
Session log: /var/opt/oracle/log/DB0206/tde/fileToHSM/dbaastools_2024-02-21_11-26-56-AM_118077.log Loading PILOT...
Session ID of the current execution is: 819
Log file location: /var/opt/oracle/log/DB0206/tde/fileToHSM/pilot_2024-02-21_11-27-11-AM_126674

Running Plugin_initialization job Enter TDE_PASSWORD:
***********
Completed Plugin_initialization job

Running Default_value_initialization job Completed Default_value_initialization job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Validate_tablespaces_status job Completed Validate_tablespaces_status job Acquiring write lock: db0206

Running Convert_tde_keystore job
Skipping. Job is detected as not applicable. Releasing lock: db0206

RunninCgopUyprdigahtte_©cr2e0g24j,oObracle  and/or  its  affiliates,
Skipping. Job is detected as not applicable.
 



TDE
dbaascli tde fileToHSM

実行

[root@taro-3nusm1 ~]# dbaascli tde fileToHSM --dbname DB0206 --kmsKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a
DBAAS CLI version 24.1.1.0.0
Executing command tde fileToHSM --dbname DB0206 --kmsKeyOCID ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a Job id: 9e78a1ca-7b42-4faf-9a97-75657903b562
Session log: /var/opt/oracle/log/DB0206/tde/fileToHSM/dbaastools_2024-02-21_11-29-01-AM_148598.log Loading PILOT...
Session ID of the current execution is: 820
Log file location: /var/opt/oracle/log/DB0206/tde/fileToHSM/pilot_2024-02-21_11-29-17-AM_157106

Running Plugin_initialization job Enter TDE_PASSWORD:
************
Completed Plugin_initialization job

Running Default_value_initialization job Completed Default_value_initialization job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Validate_tablespaces_status job Completed Validate_tablespaces_status job Acquiring write lock: db0206

Running Convert_tde_keystore job Completed Convert_tde_keystore job Releasing lock: db0206

Running Update_creg job
3Co8m9pleCtoepdyrUigphdtat©e_2c0r2e4g, Ojorabcle and/or its affiliates,
 
 

TDE
dbaascli tde fileToHSM

 

実行前

[root@taro-3nusm1 ~]# dbaascli tde status --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde status --dbname DB0206 Job id: 94c58b8e-35dd-4364-90a8-68c74d1dbdce
Session log: /var/opt/oracle/log/DB0206/tde/status/dbaastools_2024-02-20_11- 18-58-AM_174386.log
TDE is configured on this instance with: keystore login: auto
keystore status:  keystore type: autologin

Instance is a CDB with PDB's:
PDB1
TDE configuration matches with CDB on: PDB1 Checking wallet consistency.
Master keys compared successfully. dbaascli execution completed [root@taro-3nusm1 ~]#
 

実行後

[root@taro-3nusm1 ~]# dbaascli tde status --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde status --dbname DB0206 Job id: b347d9d5-9f7e-412f-9b7e-726e3680534c
Session log: /var/opt/oracle/log/DB0206/tde/status/dbaastools_2024-02-21_11- 43-54-AM_284740.log
TDE is configured on this instance with: keystore login: auto
keystore status:  keystore type: hsm

Instance is a CDB with PDB's:
PDB1

TDE configuration matches with CDB on: PDB1 dbaascli execution completed
[root@taro-3nusm1 ~]#
 









390 varchar2
 


TDE
dbaascli tde fileToHSM

実施前
SQL> select * from v$encryption_wallet;

WRL_TYPE	WRL_PARAMETER	STATUS	WALLET_TYPE	WALLET_ORDER	KEYSTORE_MODE	FULLY_BACKED_UP	CON_ID

FILE	/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde/	OPEN	AUTOLOGIN	SINGLE	NONE	NO	1
FILE	OPEN	AUTOLOGIN	SINGLE	UNITED	NO	2
FILE	OPEN	AUTOLOGIN	SINGLE	UNITED	NO	3
SQL>

実施後
SQL> select * from v$encryption_wallet;

WRL_TYPE	WRL_PARAMETER	STATUS	WALLET_TYPE	WALLET_ORDER	KEYSTORE_MODE	FULLY_BACKED_UP	CON_ID

FILE	/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde/		OPEN		AUTOLOGIN		SECONDARY		NONE		YES		1
OKV			OPEN		OKV		PRIMARY		NONE		UNDEFINED		1
FILE			OPEN		AUTOLOGIN		SINGLE		UNITED		YES		2
OKV			OPEN		OKV		SINGLE		UNITED		UNDEFINED		2
FILE			OPEN		AUTOLOGIN		SECONDARY		UNITED		YES		3
OKV			OPEN		OKV		PRIMARY		UNITED		UNDEFINED		3
6 rows
SQL>	selected.												

WALLET_TYPE = OKV が追加された WALLET_ORDER が OKV が PRIMARY になる


391 varchar2
 


TDE
dbaascli tde fileToHSM

実施前
[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 8a32e76a-bd02-4a23-a7f6-a7e717fe4b03
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-20_10-54-08-AM_1687.log [ {
"key" : "AUW/MIfHD08Pv+uGyIQC/VgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "1",
"age_days" : "14", "creation_date" : "06-FEB-24"
}, {
"key" : "AYTSfKQnwk+mv4rNYtfQMsYAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "3",
"age_days" : "14", "creation_date" : "06-FEB-24"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#
実施後
[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 3d8cb2b2-0563-4ac0-aded-e13bfdfd5bb9
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-21_12-06-27-PM_33636.log
[ {
"key" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"conC_oipdy"rig:ht"3©",2024, Oracle and/or its affiliates,
"age_days" : "0",
 



TDE
dbaascli tde fileToHSM

実施前

SQL> select key_id, creation_time, activation_time, tag, CREATOR_PDBNAME from V$ENCRYPTION_KEYS;

KEY_ID	CREATION_TIME	ACTIVATION_TIME	TAG
CREATOR_PDBNAME


AUW/MIfHD08Pv+uGyIQC/VgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA	06-FEB-24 12.09.37.791589000 AM -07:00	06-FEB-24 12.09.37.791592000 AM -07:00	CDB$ROOT
AYTSfKQnwk+mv4rNYtfQMsYAAAAAAAAAAAAAAAAAAAAAAAAAAAAA	06-FEB-24 12.15.48.954639000 AM -07:00	06-FEB-24 12.15.48.954641000 AM -07:00	PDB1

SQL>

実施後

SQL> select key_id, creation_time, activation_time, tag, CREATOR_PDBNAME from V$ENCRYPTION_KEYS;
KEY_ID	CREATION_TIME	ACTIVATION_TIME	TAG	CREATOR_PDBNAME

06215C11E12A0A4FE7BF8198EF6E2A712B	20-FEB-24 07.32.46.972087000 PM -07:00	20-FEB-24 07.32.46.972089000 PM -07:00	PDB1
06B33F54FA1BFB4FF8BF2F1886F20C4E11	21-FEB-24 02.31.55.362423000 AM UTC	21-FEB-24 02.31.55.362425000 AM UTC	CDB$ROOT

SQL>
KEY_ID が変更






393 varchar2
 


TDE
dbaascli tde fileToHSM

実施前
[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 79477130-77ad-40a4-972d-d21e880dde94
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-20_11-30-58-AM_243882.log [FATAL] [DBAAS-60226] KMS is not configured for database 'DB0206'.
[root@taro-3nusm1 ~]#

実施後
[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 6b79f907-c028-4b6c-8297-3bfe682c6a42
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_12-19-31-PM_112401.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a", "secondary_kms_key_ocid_list" : null,
"active_master_keys" : { "PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbtyaa.abvwsljrz4ttmiy2b7avp6zwkvmy3sbdqzozq542marlcemnotuzurxihzaq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbkiaa.abvwsljrpcydridst6u4jukpqksros7moiixfwaxotfiwfgo44ebgukgqkkq"
 
}
}
3}94
 

varchar2
 
dbaascli execution completed
 



TDE
dbaascli tde fileToHSM

実施前

[root@taro-3nusm1 ~]# dbaascli tde getPrimaryHSMKey --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getPrimaryHSMKey --dbname DB0206 Job id: 7fa43938-6fcc-4b88-99d3-666965ea92bb
Session log: /var/opt/oracle/log/DB0206/tde/getPrimaryHSMKey/dbaastools_2024-02-20_03-02-33-PM_6123.log [FATAL] [DBAAS-60226] KMS is not configured for database 'DB0206'.
[root@taro-3nusm1 ~]#

実施後

[root@taro-3nusm1 ~]# dbaascli tde getPrimaryHsmKey --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getPrimaryHsmKey --dbname DB0206 Job id: 09d46c0d-5b68-4c5f-a652-760c789f93c1
Session log: /var/opt/oracle/log/DB0206/tde/getPrimaryHSMKey/dbaastools_2024-02-21_01-38-04-PM_231334.log "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" dbaascli execution completed
You have new mail in /var/spool/mail/root [root@taro-3nusm1 ~]#










395 varchar2
 
 

TDE
dbaascli tde fileToHSM



















396 varchar2
 
 

TDE
dbaascli tde fileToHSM



























397 varchar2
 


TDE
dbaascli tde addSecondaryHSMKey --help
セカンダリHSM (KMS)キーを既存のHSM (KMS)構成に追加する [root@taro-3nusm1 ~]# dbaascli tde addSecondaryHSMKey --help
DBAAS CLI version 24.1.1.0.0
Executing command tde addSecondaryHSMKey --help
tde addSecondaryHSMKey - add second HSM(KMS) key to existing HSM(KMS) configuration.
Usage: dbaascli tde addSecondaryHSMKey --dbname  --secondaryKmsKeyOCID  [--executePrereqs] Where:
--dbname - Oracle database name.
--secondaryKmsKeyOCID - secondary KMS key to be added to existing HSM(KMS) configuration. [--executePrereqs - run the prerequisite checks and report the results. ]

[root@taro-3nusm1 ~]#















398 varchar2
 
 

TDE
dbaascli tde addSecondaryHSMKey
















399 varchar2
 
 

TDE
dbaascli tde addSecondaryHSMKey

[root@taro-3nusm1 ~]# dbaascli tde addSecondaryHsmKey --dbname DB0206 --secondaryKmsKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q
DBAAS CLI version 24.1.1.0.0
Executing command tde addSecondaryHsmKey --dbname DB0206 --secondaryKmsKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q
Job id: 208cf129-588b-4d9e-b937-0a22d7fb3326
Session log: /var/opt/oracle/log/DB0206/tde/addSecondaryHSMKey/dbaastools_2024-02-21_02-06-10-PM_25071.log dbaascli execution completed
[root@taro-3nusm1 ~]#
出来たぽい?



















400 varchar2
 


TDE
dbaascli tde addSecondaryHSMKey

実施前

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 6b79f907-c028-4b6c-8297-3bfe682c6a42
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_12-19-31-PM_112401.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a", "secondary_kms_key_ocid_list" : null,
"active_master_keys" : { "PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbtyaa.abvwsljrz4ttmiy2b7avp6zwkvmy3sbdqzozq542marlcemnotuzurxihzaq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbkiaa.abvwsljrpcydridst6u4jukpqksros7moiixfwaxotfiwfgo44ebgukgqkkq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#




401 varchar2
 


TDE
dbaascli tde addSecondaryHSMKey

実施後

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: d16f845e-bf69-4ab7-9aa3-c22b701a0afc
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_02-16-55-PM_90935.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbtyaa.abvwsljrz4ttmiy2b7avp6zwkvmy3sbdqzozq542marlcemnotuzurxihzaq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbkiaa.abvwsljrpcydridst6u4jukpqksros7moiixfwaxotfiwfgo44ebgukgqkkq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#




402 varchar2
 


TDE
dbaascli tde setPrimaryHSMKey --help
既存のHSM (KMS)構成のプライマリHSM (KMS)キーを変更 [root@taro-3nusm1 ~]# dbaascli tde setPrimaryHSMKey --help
DBAAS CLI version 24.1.1.0.0
Executing command tde setPrimaryHSMKey --help
tde setPrimaryHSMKey - change primary HSM(KMS) key for existing HSM(KMS) configuration.

Usage: dbaascli tde setPrimaryHSMKey --dbname  --primaryKMSKeyOCID  [--allStandbyPrepared] [--bounceDatabase] [--executePrereqs] [--resume [--sessionID ]]

Where:
--dbname - Oracle database name.
--primaryKMSKeyOCID - primary KMS key to be set.
[--allStandbyPrepared - specifies to confirm that the operation has been successfully run on all the standby databases.] [--bounceDatabase - specifies this flag to do rolling database bounce for this operation.] オプションだが、必須
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]

[root@taro-3nusm1 ~]#











403 varchar2
 
 

TDE
dbaascli tde setPrimaryHSMKey

[root@taro-3nusm1 ~]# dbaascli tde setPrimaryHsmKey --dbname DB0206 --primaryKMSKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q --executePrereqs
DBAAS CLI version 24.1.1.0.0
Executing command tde setPrimaryHsmKey --dbname DB0206 --primaryKMSKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q --executePrereqs
Job id: d44abf0f-cdea-4364-abee-3ae6184982c5
Session log: /var/opt/oracle/log/DB0206/tde/setPrimaryHSMKey/dbaastools_2024-02-21_02-45-09-PM_279044.log Loading PILOT...
Session ID of the current execution is: 829
Log file location: /var/opt/oracle/log/DB0206/tde/setPrimaryHSMKey/pilot_2024-02-21_02-45-18-PM_282376

Running Plugin_initialization job Enter TDE_PASSWORD:
**************
Completed Plugin_initialization job

Running Validate_inputs job Execution of Validate_inputs failed
[FATAL] [DBAAS-70478] Operation requires confirmation to bounce database.
ACTION: Specify the necessary arguments to confirm the bounce of the database. For details, refer to the commands help.
*** Executing jobs which need to be run always... ***
******** PLUGIN EXECUTION FAILED ********
To resume this failed session, run the following command:
dbaascli tde setPrimaryHSMKey --dbname DB0206 --primaryKMSKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q --executePrereqs true --sessionID 829 --resume [root@taro-3nusm1 ~]#





404 varchar2
 
 

TDE
dbaascli tde setPrimaryHSMKey

[root@taro-3nusm1 ~]# dbaascli tde setPrimaryHsmKey --dbname DB0206 --primaryKMSKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q --executePrereqs --bounceDatabase DBAAS CLI version 24.1.1.0.0
Executing command tde setPrimaryHsmKey --dbname DB0206 --primaryKMSKeyOCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q --executePrereqs --bounceDatabase Job id: 4ca2156c-103b-4ab4-90f6-f236cb59779a
Session log: /var/opt/oracle/log/DB0206/tde/setPrimaryHSMKey/dbaastools_2024-02-21_02-59-05-PM_362590.log Loading PILOT...
Session ID of the current execution is: 830
Log file location: /var/opt/oracle/log/DB0206/tde/setPrimaryHSMKey/pilot_2024-02-21_02-59-14-PM_365853

Running Plugin_initialization job Enter TDE_PASSWORD:
***********
Completed Plugin_initialization job

Running Validate_inputs job Completed Validate_inputs job

Running Validate_kms_environment job Completed Validate_kms_environment job

Running Validate_primary_hsm_key_ocid job Completed Validate_primary_hsm_key_ocid job

Running Validate_tde_password job Completed Validate_tde_password job

Running Move_current_primary_key job Skipping. Job is detected as not applicable.

Running Set_primary_key job
 
4続0き5
 
varchar2
 


TDE
dbaascli tde setPrimaryHSMKey

続き

Running Set_primary_key job
Skipping. Job is detected as not applicable.

Running Bounce_database job
Skipping. Job is detected as not applicable.

Running Open_tde_wallet job
Skipping. Job is detected as not applicable.

Running Rotate_master_key job
Skipping. Job is detected as not applicable. dbaascli execution completed
[root@taro-3nusm1 ~]#

DBは再起動する














406 varchar2
 
 

TDE
dbaascli tde setPrimaryHSMKey
















407 varchar2
 


TDE
dbaascli tde setPrimaryHSMKey

実施前
[root@taro-3nusm1 ~]# dbaascli tde getPrimaryHsmKey --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getPrimaryHsmKey --dbname DB0206 Job id: 09d46c0d-5b68-4c5f-a652-760c789f93c1
Session log: /var/opt/oracle/log/DB0206/tde/getPrimaryHSMKey/dbaastools_2024-02-21_01-38-04-PM_231334.log "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" dbaascli execution completed
You have new mail in /var/spool/mail/root [root@taro-3nusm1 ~]#

実施後
[root@taro-3nusm1 ~]# dbaascli tde getPrimaryHSMKey --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getPrimaryHSMKey --dbname DB0206 Job id: e8eb0e9d-7106-4f93-af61-1c4ad6766c4b
Session log: /var/opt/oracle/log/DB0206/tde/getPrimaryHSMKey/dbaastools_2024-02-21_03-14-18-PM_96931.log "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q" dbaascli execution completed
[root@taro-3nusm1 ~]#











408 varchar2
 


TDE
dbaascli tde setPrimaryHSMKey

実施前
[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: d16f845e-bf69-4ab7-9aa3-c22b701a0afc
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_02-16-55-PM_90935.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbtyaa.abvwsljrz4ttmiy2b7avp6zwkvmy3sbdqzozq542marlcemnotuzurxihzaq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkwbkiaa.abvwsljrpcydridst6u4jukpqksros7moiixfwaxotfiwfgo44ebgukgqkkq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#





409 varchar2
 


TDE
dbaascli tde setPrimaryHSMKey

実施後
[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 0ccfb445-fd47-417c-9093-f8805541d225
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_03-16-13-PM_112644.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "0674103501728A4FC1BFD600D0C9815839",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkzfvaaa.abvwsljrnnpnz4kec76xapsugrntrnfm64aboo2xvlifvqesasck2athg34q"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "06704A7412D6D94F49BFCDB71D6EEACBAC",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkzflyaa.abvwsljrigkpur6yci4ygergtmibu4xzp7zpnisjhdrxoyclgu7abhpah3oa"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#




410 varchar2
 


TDE
dbaascli tde setPrimaryHSMKey

実施前
[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 3d8cb2b2-0563-4ac0-aded-e13bfdfd5bb9
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-21_12-06-27-PM_33636.log [ {
"key" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#












411 varchar2
 


TDE
dbaascli tde setPrimaryHSMKey

実施後
[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 69098304-c7cf-4dd0-97ea-a10ff53ad7c9
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-21_03-29-59-PM_192371.log [ {
"key" : "0674103501728A4FC1BFD600D0C9815839",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "06704A7412D6D94F49BFCDB71D6EEACBAC",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#


412 varchar2
 
 

TDE
dbaascli tde setPrimaryHSMKey



























413 varchar2
 


TDE
dbaascli tde rotateMasterKey --help
データベース暗号化のためのマスター・キーのローテーション [root@taro-3nusm1 ~]# dbaascli tde rotateMasterKey --help
DBAAS CLI version 24.1.1.0.0
Executing command tde rotateMasterKey --help
tde rotateMasterKey - rotate TDE master key.

Usage: dbaascli tde rotateMasterKey --dbname  [--rotateMasterKeyOnAllPDBs] [--pdbName ] [--executePrereqs] [--resume [--sessionID ]]
{
[--prepareStandbyBlob  [--blobLocation ]]
| [--standbyBlobFromPrimary ]
}

Where:
--dbname - Oracle database name.
[--rotateMasterKeyOnAllPDBs - specifies true to rotate master key of all PDBs in CDB. Valid values: true|false ] [--pdbName - specifies PDB name]
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.] [--prepareStandbyBlob | --standbyBlobFromPrimary]
[--prepareStandbyBlob - specifies true to generate a blob file containing the artifacts needed to perform the operation in a DG environment. ] [--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
[--standbyBlobFromPrimary - specifies the location of the standby blob file which is prepared from the primary database. This is required only for standby operations. ]

[root@taro-3nusm1 ~]#




414 varchar2
 


TDE
dbaascli tde rotateMasterKey

[root@taro-3nusm1 ~]# dbaascli tde rotateMasterKey --dbname DB0206 --executePrereqs
DBAAS CLI version 24.1.1.0.0
Executing command tde rotateMasterKey --dbname DB0206 --executePrereqs Job id: 4152d1bb-ae5d-4c26-a15c-fc4154d64ec2
Session log: /var/opt/oracle/log/DB0206/tde/rotateMasterKey/dbaastools_2024-02-21_03-55-55-PM_391436.log Enter keystore password:

Loading PILOT...
Session ID of the current execution is: 834
Log file location: /var/opt/oracle/log/DB0206/tde/rotateMasterKey/pilot_2024-02-21_03-56-17-PM_4009

Running Plugin_initialization job Enter keystore password:
************
Completed Plugin_initialization job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Standby_blob_extraction job Skipping. Job is detected as not applicable.

Running Rotate_tde_master_key job
Skipping. Job is detected as not applicable.

Running Generate_blob_file job
Skipping. Job is detected as not applicable. dbaascli execution completed
[root@taro-3nusm1 ~]#


415 varchar2
 


TDE
dbaascli tde rotateMasterKey

[root@taro-3nusm1 ~]# dbaascli tde rotateMasterKey --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde rotateMasterKey --dbname DB0206 Job id: d2978e16-e68c-4329-bf13-4320b2b1ed24
Session log: /var/opt/oracle/log/DB0206/tde/rotateMasterKey/dbaastools_2024-02-21_03-57-09-PM_17710.log Enter keystore password:

Loading PILOT...
Session ID of the current execution is: 835
Log file location: /var/opt/oracle/log/DB0206/tde/rotateMasterKey/pilot_2024-02-21_03-57-33-PM_31861

Running Plugin_initialization job Enter keystore password:
**************
Completed Plugin_initialization job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Standby_blob_extraction job Skipping. Job is detected as not applicable.

Running Rotate_tde_master_key job Completed Rotate_tde_master_key job

Running Generate_blob_file job
Skipping. Job is detected as not applicable. dbaascli execution completed
[root@taro-3nusm1 ~]#


416 varchar2
 
 

TDE
dbaascli tde rotateMasterKey


























417 varchar2
 
 

TDE
dbaascli tde rotateMasterKey
























418 varchar2
 


TDE
dbaascli tde rotateMasterKey

実施前

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 0ccfb445-fd47-417c-9093-f8805541d225
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_03-16-13-PM_112644.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "0674103501728A4FC1BFD600D0C9815839",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkzfvaaa.abvwsljrnnpnz4kec76xapsugrntrnfm64aboo2xvlifvqesasck2athg34q"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "06704A7412D6D94F49BFCDB71D6EEACBAC",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkzflyaa.abvwsljrigkpur6yci4ygergtmibu4xzp7zpnisjhdrxoyclgu7abhpah3oa"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#



419 varchar2
 


TDE
dbaascli tde rotateMasterKey

実施後 CDBの key version が更新

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 67eaab87-c1cd-472f-8f27-65099b4be67f
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_04-16-09-PM_169731.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "0674103501728A4FC1BFD600D0C9815839",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkzfvaaa.abvwsljrnnpnz4kec76xapsugrntrnfm64aboo2xvlifvqesasck2athg34q"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "068B465D83822C4F96BFA72E67255F088E",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkz56aaa.abvwsljrjyto5gmnii3eiuevzkbcz4nzqcsbz3b3fksasmdhaxrrnpsexz3q"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#



420 varchar2
 
 

TDE
dbaascli tde rotateMasterKey
























421 varchar2
 


TDE
dbaascli tde rotateMasterKey

実施前

[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 69098304-c7cf-4dd0-97ea-a10ff53ad7c9
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-21_03-29-59-PM_192371.log [ {
"key" : "0674103501728A4FC1BFD600D0C9815839",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "06704A7412D6D94F49BFCDB71D6EEACBAC",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#


422 varchar2
 


TDE
dbaascli tde rotateMasterKey

実施後 追加されているう

[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 8a8458ed-8338-451e-8a55-1f20b9f2c492
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-21_04-34-56-PM_277568.log [ {
"key" : "068B465D83822C4F96BFA72E67255F088E",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "0674103501728A4FC1BFD600D0C9815839",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "06704A7412D6D94F49BFCDB71D6EEACBAC",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
4}2]3 varchar2
dbaascli execution completed
 
 

TDE
dbaascli tde rotateMasterKey

SQL> select key_id, creation_time, activation_time, tag, CREATOR_PDBNAME from V$ENCRYPTION_KEYS;

KEY_ID	CREATION_TIME	ACTIVATION_TIME	TAG	CREATOR_PDBNAME

068B465D83822C4F96BFA72E67255F088E		21-FEB-24	06.57.59.758829000	AM	UTC		21-FEB-24	06.57.59.758831000	AM	UTC				CDB$ROOT
06B33F54FA1BFB4FF8BF2F1886F20C4E11		21-FEB-24	02.31.55.362423000	AM	UTC		21-FEB-24	02.31.55.362425000	AM	UTC				CDB$ROOT
06215C11E12A0A4FE7BF8198EF6E2A712B		20-FEB-24	07.32.46.972087000	PM	-07:00		20-FEB-24	07.32.46.972089000	PM	-07:00				PDB1
0674103501728A4FC1BFD600D0C9815839		20-FEB-24	11.06.11.924195000	PM	-07:00		20-FEB-24	11.07.15.233489000	PM	-07:00				PDB1
06704A7412D6D94F49BFCDB71D6EEACBAC

SQL>		21-FEB-24	06.05.34.651769000	AM	UTC		21-FEB-24	06.06.49.489590000	AM	UTC				CDB$ROOT









TDE
dbaascli tde rotateMasterKey

PDB の key も rotation する場合

[root@taro-3nusm1 ~]# dbaascli tde rotateMasterKey --dbname DB0206 --rotateMasterKeyOnAllPDBs
DBAAS CLI version 24.1.1.0.0
Executing command tde rotateMasterKey --dbname DB0206 --rotateMasterKeyOnAllPDBs Job id: f10b9501-5f45-4f48-a843-fd9f1845c4fd
Session log: /var/opt/oracle/log/DB0206/tde/rotateMasterKey/dbaastools_2024-02-21_04-44-03-PM_354527.log Enter keystore password:

Loading PILOT...
Session ID of the current execution is: 838
Log file location: /var/opt/oracle/log/DB0206/tde/rotateMasterKey/pilot_2024-02-21_04-45-24-PM_372726

Running Plugin_initialization job Enter keystore password:
************
Completed Plugin_initialization job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Standby_blob_extraction job Skipping. Job is detected as not applicable.

Running Rotate_tde_master_key job Completed Rotate_tde_master_key job

Running Generate_blob_file job
Skipping. Job is detected as not applicable. dbaascli execution completed
[root@taro-3nusm1 ~]#


 

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 67eaab87-c1cd-472f-8f27-65099b4be67f
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_04-16-09-PM_169731.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "0674103501728A4FC1BFD600D0C9815839",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkzfvaaa.abvwsljrnnpnz4kec76xapsugrntrnfm64aboo2xvlifvqesasck2athg34q"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "068B465D83822C4F96BFA72E67255F088E",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxkz56aaa.abvwsljrjyto5gmnii3eiuevzkbcz4nzqcsbz3b3fksasmdhaxrrnpsexz3q"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#




 


TDE
dbaascli tde rotateMasterKey

実施後 CDB と PDB 両方の key version が更新

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 3bb4c91e-234b-419c-9311-b5191d26128f
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_04-50-21-PM_8789.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "065CF20497BFFE4F26BF2326159554799B",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk2uvqaa.abvwsljrv2sfefaxlujrf7r7cxnciybdivfsfzcn2fsjuindusyourmxja7q"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "064743CC5246634F98BF6C06018C616661",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk2umaaa.abvwsljrbitt54e4rgz7bfv7zheorupxdvcubekoxst4ba4b5gc3ayx7morq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#




 


TDE
dbaascli tde setKeyVersion --help
DB/CDBまたはPDBで使用される主キーのバージョンを設定 [root@taro-3nusm1 ~]# dbaascli tde setKeyVersion --help
DBAAS CLI version 24.1.1.0.0
Executing command tde setKeyVersion --help
tde setKeyVersion - sets the version of the primary key to be used in DB/CDB or PDB.

Usage: dbaascli tde setKeyVersion --kmsKeyVersionOCID  --dbname  [--pdbName ] [--masterKeyID ] [--standbySuc] [-- executePrereqs] [--waitForCompletion ]

Where:
--kmsKeyVersionOCID - KMS key version OCID to be set.
--dbname - Oracle database name.
[--pdbName - name of the PDB to use the key version OCID. ]
[--masterKeyID - master key id of the given key version OCID. This is applicable for DG environment. ]
[--standbySuc - specifies this property in primary database of DG environment once command is successfully run on standby database. ] [--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
[root@taro-3nusm1 ~]#



 
 

TDE
dbaascli tde setKeyVersion

[root@taro-3nusm1 ~]# dbaascli tde setKeyVersion --dbname DB0206 --pdbName PDB1 --kmsKeyVersionOCID ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr326emv3fevite5vkf7n2itfykrpp26wlwsp5t2rp3dl4ulvp7smq --executePrereqs
DBAAS CLI version 24.1.1.0.0
Executing command tde setKeyVersion --dbname DB0206 --pdbName PDB1 --kmsKeyVersionOCID ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr326emv3fevite5vkf7n2itfykrpp26wlwsp5t2rp3dl4ulvp7smq --executePrereqs
Job id: d47795cf-770e-4bc6-be9c-ab074ce38f92
Session log: /var/opt/oracle/log/DB0206/tde/setKeyVersion/dbaastools_2024-02-21_05-07-51-PM_140261.log Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release Warning: Nashorn engine is planned to be removed from a future JDK release VERSION_ID="8.9"
TDE_WALLET_PASSWORD_PROMPT
************
dbaascli execution completed [root@taro-3nusm1 ~]#





 

TDE
dbaascli tde setKeyVersion

[root@taro-3nusm1 ~]# dbaascli tde setKeyVersion --dbname DB0206 --pdbName PDB1 --kmsKeyVersionOCID ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr326emv3fevite5vkf7n2itfykrpp26wlwsp5t2rp3dl4ulvp7smq
DBAAS CLI version 24.1.1.0.0
Executing command tde setKeyVersion --dbname DB0206 --pdbName PDB1 --kmsKeyVersionOCID ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr326emv3fevite5vkf7n2itfykrpp26wlwsp5t2rp3dl4ulvp7smq
Job id: f0d81248-1076-49c4-a7b8-238eab9c6df9
Session log: /var/opt/oracle/log/DB0206/tde/setKeyVersion/dbaastools_2024-02-21_05-08-53-PM_152396.log Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release Warning: Nashorn engine is planned to be removed from a future JDK release VERSION_ID="8.9"
TDE_WALLET_PASSWORD_PROMPT
***********
Prepare for db operation 67% complete
Configuring Pluggable Database
[WARNING] ORA-28389: cannot close auto login wallet 100% complete
Pluggable database "PDB1" configured successfully.
Look at the log file "/var/opt/oracle/log/dbaastools/cfgtoollogs/dbca/DB0206_3cg_kix/PDB1/DB0206_3cg_kix.log" for further details. dbaascli execution completed
[root@taro-3nusm1 ~]#






TDE
dbaascli tde setKeyVersion


[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 3bb4c91e-234b-419c-9311-b5191d26128f
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_04-50-21-PM_8789.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "065CF20497BFFE4F26BF2326159554799B",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk2uvqaa.abvwsljrv2sfefaxlujrf7r7cxnciybdivfsfzcn2fsjuindusyourmxja7q"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "064743CC5246634F98BF6C06018C616661",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk2umaaa.abvwsljrbitt54e4rgz7bfv7zheorupxdvcubekoxst4ba4b5gc3ayx7morq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#



TDE
dbaascli tde setKeyVersion


[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 0b62b406-d448-45e7-9eb1-df041d7a556f
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-21_05-14-18-PM_190219.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "062E6B6D736B65792E3491465D5AE44000",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr326emv3fevite5vkf7n2itfykrpp26wlwsp5t2rp3dl4ulvp7smq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "064743CC5246634F98BF6C06018C616661",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk2umaaa.abvwsljrbitt54e4rgz7bfv7zheorupxdvcubekoxst4ba4b5gc3ayx7morq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#




TDE
dbaascli tde removeSecondaryHSMKey --help

[root@taro-3nusm1 ~]# dbaascli tde removeSecondaryHSMKey --help
DBAAS CLI version 24.1.1.0.0
Executing command tde removeSecondaryHSMKey --help
tde removeSecondaryHSMKey - remove second HSM(KMS) key from existing HSM(KMS) configuration.
Usage: dbaascli tde removeSecondaryHSMKey --dbname  [--confirmDeletion] [--secondaryKmsKeyOCID ] [--executePrereqs] Where:
--dbname - Oracle database name.
[--confirmDeletion - if not specified the user will be prompted while deleting all existing HSM(KMS) keys. ]
[--secondaryKmsKeyOCID - secondary KMS key to be removed from existing HSM(KMS) configuration. If not specified all secondary KMS keys will be removed.] [--executePrereqs - run the prerequisite checks and report the results. ]

[root@taro-3nusm1 ~]#



TDE
dbaascli tde removeSecondaryHSMKey



[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: 9401828c-6e83-499d-b0a5-c09a9aa7b245
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-22_10-31-58-AM_277542.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : [ "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "ocid1.key.oc1.ap-
osaka-1.dnq4fgnmaaen2.abvwsljrhzuwsuju2qavvi26bj2sohjomsjyqztwl6xwed45lv5ki2yei77a" ], "active_master_keys" : {
"PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "062E6B6D736B65792E3491465D5AE44000",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr326emv3fevite5vkf7n2itfykrpp26wlwsp5t2rp3dl4ulvp7smq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "064743CC5246634F98BF6C06018C616661",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk2umaaa.abvwsljrbitt54e4rgz7bfv7zheorupxdvcubekoxst4ba4b5gc3ayx7morq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#


 


TDE
dbaascli tde removeSecondaryHSMKey

[root@taro-3nusm1 ~]# dbaascli tde removeSecondaryHsmKey --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde removeSecondaryHsmKey --dbname DB0206 Job id: 05e60250-c5ec-4192-bd43-3596d9c0ebc7
Session log: /var/opt/oracle/log/DB0206/tde/removeSecondaryHSMKey/dbaastools_2024-02-22_10-39-44-AM_355453.log INFO: This will remove all Secondary KMS key for DB0206, continue? [yes/no]:
yes
dbaascli execution completed [root@taro-3nusm1 ~]#


 


TDE
dbaascli tde removeSecondaryHSMKey

[root@taro-3nusm1 ~]# dbaascli tde getHsmKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde getHsmKeys --dbname DB0206 Job id: d82b4478-4029-4864-b191-afdad77a3089
Session log: /var/opt/oracle/log/DB0206/tde/getHSMKeys/dbaastools_2024-02-22_10-42-40-AM_378996.log
{
"primary_kms_key_ocid" : "ocid1.key.oc1.ap-osaka-1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7gf6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2f4q", "secondary_kms_key_ocid_list" : null,
"active_master_keys" : { "PDB1" : {
"con_id" : "3",
"con_name" : "PDB1",
"master_key_id" : "062E6B6D736B65792E3491465D5AE44000",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr326emv3fevite5vkf7n2itfykrpp26wlwsp5t2rp3dl4ulvp7smq"
},
"CDB$ROOT" : {
"con_id" : "1", "con_name" : "CDB$ROOT",
"master_key_id" : "064743CC5246634F98BF6C06018C616661",
"key_version_ocid" : "ocid1.keyversion.oc1.ap-osaka-1.dnq4fgnmaaen2.gsuemxk2umaaa.abvwsljrbitt54e4rgz7bfv7zheorupxdvcubekoxst4ba4b5gc3ayx7morq"
}
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#



 


TDE
dbaascli tde backup --help

[root@taro-3nusm1 ~]# dbaascli tde backup --help
DBAAS CLI version 24.1.1.0.0
Executing command tde backup --help
tde backup - backup TDE wallets to local disk.

Usage: dbaascli tde backup [--dbname ]
{
[--dbname ]
| [--allDBs]
}
[--backupLocation ] [--executePrereqs]

Where:
[--dbname - specifies dbname to backup its TDE wallet location. ] [--dbname | --allDBs]
[--dbname - specifies dbname to backup its TDE wallet location. ]
[--allDBs - this is default and backups TDE wallets of all the databases. ] [--backupLocation - TDE Wallet backup location. ]
[--executePrereqs - run the prerequisite checks and report the results. ]

You have new mail in /var/spool/mail/root [root@taro-3nusm1 ~]#




TDE
dbaascli tde backup

[root@taro-3nusm1 ~]# dbaascli tde backup --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde backup --dbname DB0206 Job id: 135befa5-6ccc-45a7-ad00-6ef926756dc2
Session log: /var/opt/oracle/log/DB0206/tde/backup/dbaastools_2024-02-22_10-48-02-AM_14751.log TDE Wallet Backup Location: /u02/app/oracle/admin/DB0206/tde_wallet/tde
dbaascli execution completed [root@taro-3nusm1 ~]#




TDE
dbaascli tde backup

[root@taro-3nusm1 ~]# dbaascli tde backup --dbname DB0207
DBAAS CLI version 24.1.1.0.0
Executing command tde backup --dbname DB0207 Job id: 568d2f7a-786e-4d14-a187-daa6d62662fd
Session log: /var/opt/oracle/log/DB0207/tde/backup/dbaastools_2024-02-22_10-49-51-AM_30736.log TDE Wallet Backup Location: /u02/app/oracle/admin/DB0207/tde_wallet/tde
dbaascli execution completed [root@taro-3nusm1 ~]#
[root@taro-3nusm1 ~]# ls -al /u02/app/oracle/admin/DB0207/tde_wallet/tde total 16
drwxr-xr-x 2 oracle oinstall 4096 Feb 22 10:49 .
drwxr-xr-x 3 oracle oinstall 4096 Feb 22 10:49 ..
-rw------- 1 oracle oinstall	0 Feb 22 10:49 20240222104958.suc
-rw------- 1 oracle oinstall 8009 Feb 19 10:55 ewallet.p12_20240222104958
[root@taro-3nusm1 ~]# file /u02/app/oracle/admin/DB0207/tde_wallet/tde/20240222104958.suc
/u02/app/oracle/admin/DB0207/tde_wallet/tde/20240222104958.suc: empty [root@taro-3nusm1 ~]#





TDE
dbaascli tde changePassword --help
tde_ks_passwdとして知られるTDEキーストア・パスワード(DBウォレット・パスワード)の変更 [root@taro-3nusm1 ~]# dbaascli tde changePassword --help
DBAAS CLI version 24.1.1.0.0
Executing command tde changePassword --help
tde changePassword - changes TDE keystore password as well as DB wallet password for the alias tde_ks_passwd.

Usage: dbaascli tde changePassword --dbname 
{
[--prepareStandbyBlob  [--blobLocation ]]
| [--standbyBlobFromPrimary ]
}
[--resume [--sessionID ]] [--executePrereqs] [--waitForCompletion ]

Where:
--dbname - Oracle database name.
[--prepareStandbyBlob | --standbyBlobFromPrimary]
[--prepareStandbyBlob - specifies true to generate a blob file containing the artifacts needed to perform the operation in a DG environment. ] [--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
[--standbyBlobFromPrimary - specifies the location of the standby blob file which is prepared from the primary database. This is required only for standby operations. ]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--executePrereqs - run the prerequisite checks and report the results. ]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]
[root@taro-3nusm1 ~]#

TDE
dbaascli tde changePassword

[root@taro-3nusm1 ~]# dbaascli tde changePassword --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde changePassword --dbname DB0206 Job id: 6e2b49f8-34f4-484f-9679-57e30ae77152
Session log: /var/opt/oracle/log/DB0206/tde/changePassword/dbaastools_2024-02-22_11-10-50-AM_186691.log Enter Old keystore password:

Enter New keystore password:

Enter New keystore password (reconfirmation):

Loading PILOT...
Enter Old keystore password
**************
Enter Old keystore password (reconfirmation):
***********
Enter New keystore password
************
Enter New keystore password (reconfirmation):
**************
Session ID of the current execution is: 877
Log file location: /var/opt/oracle/log/DB0206/tde/changePassword/pilot_2024-02-22_11-11-09-AM_189511

Running Plugin_initialization job Completed Plugin_initialization job

Running TDE_change_password_prechecks job



TDE
dbaascli tde changePassword


Completed TDE_change_password_prechecks job

Running Extract_blob_in_standby job Skipping. Job is detected as not applicable.

Running Copy_blob_contents_in_standby job Skipping. Job is detected as not applicable.

Running TDE_change_password job Completed TDE_change_password job

Running Change_hsm_password job Completed Change_hsm_password job

Running Regenerate_auto_login_wallet job Completed Regenerate_auto_login_wallet job

Running Update_db_wallet job Completed Update_db_wallet job

Running Prepare_blob_for_standby_in_primary job Skipping. Job is detected as not applicable. dbaascli execution completed
[root@taro-3nusm1 ~]#




TDE
dbaascli tde encryptTablespacesInPDB --help



PDB

[root@taro-3nusm1 ~]# dbaascli tde encryptTablespacesInPDB --help DBAAS CLI version 24.1.1.0.0
Executing command tde encryptTablespacesInPDB --help
tde encryptTablespacesInPDB - encrypt all the tablespaces present in the given PDB.

Usage: dbaascli tde encryptTablespacesInPDB --dbname 
{
--pdbName 
| --pdbUID 
}
[--executePrereqs]

Where:
--dbname - Oracle database name.
--pdbName | --pdbUID
--pdbName - PDB in which all the tablespaces to be encrypted.
--pdbUID - specifies UID of the PDB.
[--executePrereqs - run the prerequisite checks and report the results. ]

[root@taro-3nusm1 ~]#





TDE
dbaascli tde encryptTablespacesInPDB

--pdbName 

[root@taro-3nusm1 ~]# dbaascli tde encryptTablespacesInPDB --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde encryptTablespacesInPDB --dbname DB0206
[FATAL][INS-04008] Invalid combination of arguments passed from command line. One or more mandatory dependent arguments are not passed for the argument: tde encryptTablespacesInPDB. Refer to the usage of 'tde encryptTablespacesInPDB' in the command help below.
tde encryptTablespacesInPDB - encrypt all the tablespaces present in the given PDB. Usage: dbaascli tde encryptTablespacesInPDB --dbname 
{
--pdbName 
| --pdbUID 
}
[--executePrereqs]

Where:
--dbname - Oracle database name.
--pdbName | --pdbUID
--pdbName - PDB in which all the tablespaces to be encrypted.
--pdbUID - specifies UID of the PDB.
[--executePrereqs - run the prerequisite checks and report the results. ]
[root@taro-3nusm1 ~]#


TDE
dbaascli tde encryptTablespacesInPDB

--pdbName 

[root@taro-3nusm1 ~]# dbaascli tde encryptTablespacesInPDB --dbname DB0206 --pdbName PDB1 DBAAS CLI version 24.1.1.0.0
Executing command tde encryptTablespacesInPDB --dbname DB0206 --pdbName PDB1 Job id: af67d6d7-50bb-447d-9c9b-a4f821f92dd1
Session log: /var/opt/oracle/log/DB0206/tde/encryptTablespacesInPDB/dbaastools_2024-02-22_11-17-25-AM_251012.log Warning: Nashorn engine is planned to be removed from a future JDK release
Warning: Nashorn engine is planned to be removed from a future JDK release VERSION_ID="8.9"
TDE_WALLET_PASSWORD_PROMPT
**************
Prepare for db operation 67% complete
Configuring Pluggable Database 100% complete
Pluggable database "PDB1" configured successfully.
Look at the log file "/var/opt/oracle/log/dbaastools/cfgtoollogs/dbca/DB0206_3cg_kix/PDB1/DB0206_3cg_kix0.log" for further details. dbaascli execution completed
[root@taro-3nusm1 ~]#
 


TDE
dbaascli tde exportTDEKey --help


[root@taro-3nusm1 ~]# dbaascli tde exportTDEKey --help DBAAS CLI version 24.1.1.0.0
Executing command tde exportTDEKey --help
tde exportTDEKey - export TDE master encryption key into a file.
Usage: dbaascli tde exportTDEKey --dbname  --tdeKeyFilePath  [--waitForCompletion ] [--pdbName ] Where:
--dbname - Oracle database name.
--tdeKeyFilePath - specifies the absolute path of TDE key file.
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [--pdbName - specifies PDB name.]

[root@taro-3nusm1 ~]#


TDE
dbaascli tde exportTDEKey

TDE KMS では利用不可

[root@taro-3nusm1 ~]# dbaascli tde exportTDEKey --dbname DB0206 --tdeKeyFilePath /tmp/tdedb0206.eky
DBAAS CLI version 24.1.1.0.0
Executing command tde exportTDEKey --dbname DB0206 --tdeKeyFilePath /tmp/tdedb0206.eky Job id: d244619f-7627-47b3-a719-2ca32a3eef41
Session log: /var/opt/oracle/log/DB0206/tde/exportTDEKey/dbaastools_2024-02-22_12-05-19-PM_138642.log Enter TDE_KEY_FILE_SECRET:

Enter TDE_KEY_FILE_SECRET (reconfirmation):

Warning: Nashorn engine is planned to be removed from a future JDK release Warning: Nashorn engine is planned to be removed from a future JDK release VERSION_ID="8.9"
TDE_WALLET_PASSWORD_PROMPT
*********
[FATAL] [DBT-08123] Export TDE keys operation is not supported on 'OKV' based TDE keystore type [FATAL] [DBAAS-60071] Operation has failed with following error message:
[FATAL] [DBT-08123] Export TDE keys operation is not supported on 'OKV' based TDE keystore type.
SUMMARY:
- [DBAAS-60022] Command '/var/opt/oracle/dbaastools/dbaasca/bin/dbca -tdeKeysFilePath /tmp/tdedb0206.eky -exportTDEKeys -silent -oui_internal - configureDatabase -sourceDB DB0206_3cg_kix -jreLoc /usr/java/jdk-11' has failed on nodes [localnode].
[root@taro-3nusm1 ~]#


TDE
dbaascli tde exportTDEKey

TDE FILE 

[root@taro-3nusm1 ~]# dbaascli tde exportTDEKey --dbname DB0207 --tdeKeyFilePath /tmp/tdedb0207.eky
DBAAS CLI version 24.1.1.0.0
Executing command tde exportTDEKey --dbname DB0207 --tdeKeyFilePath /tmp/tdedb0207.eky Job id: 111e52ec-ab0f-469c-bf9a-2f9d48edd46f
Session log: /var/opt/oracle/log/DB0207/tde/exportTDEKey/dbaastools_2024-02-22_12-07-02-PM_154588.log Enter TDE_KEY_FILE_SECRET:

Enter TDE_KEY_FILE_SECRET (reconfirmation):

Warning: Nashorn engine is planned to be removed from a future JDK release Warning: Nashorn engine is planned to be removed from a future JDK release VERSION_ID="8.9"
TDE_WALLET_PASSWORD_PROMPT
************ TDE_KEYS_FILE_SECRET
***********
Prepare for db operation 40% complete
Preparing to Configure Database 44% complete
80% complete
Completing Database Configuration 100% complete
The database configuration has completed successfully.
Look at the log file "/var/opt/oracle/log/dbaastools/cfgtoollogs/dbca/DB0207/DB0207.log" for further details. dbaascli execution completed
[root@taro-3nusm1 ~]#
[root@taro-3nusm1 ~]# ls -al /tmp/tdedb0207.eky
-rw-r----- 1 oracle asmadmin 4712 Feb 22 12:07 /tmp/tdedb0207.eky [root@taro-3nusm1 ~]# file /tmp/tdedb0207.eky
/tmp/tCdoepdybr0ig2h0t7.©ek2y0:24d,aOtaracle  and/or  its  affiliates,

[root@taro-3nusm1 ~]#
 



TDE
dbaascli tde hsmToFile --help


[root@taro-3nusm1 ~]# dbaascli tde hsmToFile --help
DBAAS CLI version 24.1.1.0.0
Executing command tde hsmToFile --help
tde hsmToFile - convert HSM(KMS/OKV) based TDE to FILE based TDE.

Usage: dbaascli tde hsmToFile --dbname 
{
[--prepareStandbyBlob  [--blobLocation ]]
| [--standbyBlobFromPrimary ]
}
[--skipPatchCheck ] [--executePrereqs] [--primarySuc ]
{
[--resume [--sessionID ]]
| [--revert [--sessionID ]]
}
[--waitForCompletion ]

Where:
--dbname - Oracle database name.
[--prepareStandbyBlob | --standbyBlobFromPrimary]
[--prepareStandbyBlob - specifies true to generate a blob file containing the artifacts needed to perform the operation in a DG environment. ] [--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.]
[--standbyBlobFromPrimary - specifies the location of the standby blob file which is prepared from the primary database. This is required only for
standby operations. ]
[--skipPatchCheck - skip the validation check for required patches if the value passed for this argument is true. ] [--executePrereqs - run the prerequisite checks and report the results. ]
[--primarySuc - specifies this property in standby database of DG environment once command is successfully run on primary database. ] [--resume | --revert]
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]

 
operation]
 
[--sessionID - to resume a specific session id.]
 



TDE
dbaascli tde hsmToFile

[root@taro-3nusm1 ~]# dbaascli tde hsmToFile --dbname DB0206 DBAAS CLI version 24.1.1.0.0
Executing command tde hsmToFile --dbname DB0206 Job id: 2ae1a58e-f53b-43c4-b136-b359b5462866
Session log: /var/opt/oracle/log/DB0206/tde/hsmToFile/dbaastools_2024-02-22_12-09-19-PM_197898.log Loading PILOT...
Session ID of the current execution is: 882
Log file location: /var/opt/oracle/log/DB0206/tde/hsmToFile/pilot_2024-02-22_12-09-34-PM_208016

Running Plugin_initialization job Enter TDE_PASSWORD:
***********
Completed Plugin_initialization job

Running Default_value_initialization job Completed Default_value_initialization job

Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

Running Validate_tablespaces_status job Completed Validate_tablespaces_status job Acquiring write lock: db0206

Running Convert_tde_keystore job Completed Convert_tde_keystore job Releasing lock: db0206

Running Update_creg job




TDE
dbaascli tde hsmToFile


Completed Update_creg job

Running Backup_Database job Completed Backup_Database job

Running Generate_blob_file job
Skipping. Job is detected as not applicable.

Running Generate_dbsystem_details job
Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_dbsystem_details job
dbaascli execution completed
You have new mail in /var/spool/mail/root [root@taro-3nusm1 ~]#



TDE
dbaascli tde hsmToFile

TDE FILE

[root@taro-3nusm1 ~]# dbaascli tde status --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde status --dbname DB0206 Job id: 796afedc-9871-45a6-9ceb-c1116009d6bc
Session log: /var/opt/oracle/log/DB0206/tde/status/dbaastools_2024-02-22_04-54-17-PM_59642.log TDE is configured on this instance with:
keystore login: auto keystore status:  keystore type: autologin

Instance is a CDB with PDB's:
PDB1
TDE configuration matches with CDB on: PDB1 Checking wallet consistency.
Master keys compared successfully. dbaascli execution completed [root@taro-3nusm1 ~]#




TDE
dbaascli tde hsmToFile


SQL> select * from v$encryption_wallet;

WRL_TYPE	WRL_PARAMETER	STATUS	WALLET_TYPE	WALLET_ORDER	KEYSTORE_MODE	FULLY_BACKED_UP	CON_ID

FILE	/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde/	OPEN	AUTOLOGIN	SECONDARY	NONE	YES	1
OKV	OPEN	OKV	PRIMARY	NONE	UNDEFINED	1
FILE	OPEN	AUTOLOGIN	SINGLE	UNITED	YES	2
OKV	OPEN	OKV	SINGLE	UNITED	UNDEFINED	2
FILE	OPEN	AUTOLOGIN	SECONDARY	UNITED	YES	3
OKV	OPEN	OKV	PRIMARY	UNITED	UNDEFINED	3
6	rows selected. SQL>
実施後 WRL_TYPE = FILE が WALLET_ORDER が PRIMARY に戻る。
WRL_TYPE =OKV は WALLET_ORDER が SECONDARY、STATUS = CLOSED、WALLET_TYPE = UNKNOWN

SQL> select * from v$encryption_wallet;

WRL_TYPE	WRL_PARAMETER	STATUS	WALLET_TYPE	WALLET_ORDER	KEYSTORE_MODE	FULLY_BACKED_UP	CON_ID

FILE	/var/opt/oracle/dbaas_acfs/DB0206/wallet_root/tde/	OPEN	AUTOLOGIN	PRIMARY	NONE	NO	1
OKV	CLOSED	UNKNOWN	SECONDARY	NONE	UNDEFINED	1
FILE	OPEN	AUTOLOGIN	SINGLE	UNITED	NO	2
FILE	OPEN	AUTOLOGIN	PRIMARY	UNITED	NO	3
OKV	CLOSED	UNKNOWN	SECONDARY	UNITED	UNDEFINED	3
SQL>
459 varchar2
 


TDE
dbaascli tde hsmToFile

[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 69098304-c7cf-4dd0-97ea-a10ff53ad7c9
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-21_03-29-59-PM_192371.log [ {
"key" : "0674103501728A4FC1BFD600D0C9815839",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "06704A7412D6D94F49BFCDB71D6EEACBAC",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "06215C11E12A0A4FE7BF8198EF6E2A712B",
"con_id" : "3",
"age_days" : "0", "creation_date" : "20-FEB-24"
}, {
"key" : "06B33F54FA1BFB4FF8BF2F1886F20C4E11",
"con_id" : "1",
"age_days" : "0", "creation_date" : "21-FEB-24"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#


460 varchar2
 


TDE
dbaascli tde hsmToFile

実施後
[root@taro-3nusm1 ~]# dbaascli tde listKeys --dbname DB0206
DBAAS CLI version 24.1.1.0.0
Executing command tde listKeys --dbname DB0206 Job id: 601888a1-ffb0-4c3f-8b03-845a1d1b3c0f
Session log: /var/opt/oracle/log/DB0206/tde/listKeys/dbaastools_2024-02-22_04-59-47-PM_98897.log [ {
"key" : "AVB8BvbTxk9uvxTOEH6ENXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "1",
"age_days" : "0", "creation_date" : "22-FEB-24"
}, {
"key" : "AWVQDZsACU9XvweAH3Xo+10AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "3",
"age_days" : "0", "creation_date" : "21-FEB-24"
}, {
"key" : "AYTSfKQnwk+mv4rNYtfQMsYAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "3",
"age_days" : "16", "creation_date" : "06-FEB-24"
}, {
"key" : "AUW/MIfHD08Pv+uGyIQC/VgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "1",
"age_days" : "16", "creation_date" : "06-FEB-24"
}, {
"key" : "AXwBQU73lk8gvxNyimKHNa4AAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"con_id" : "1",
"age_days" : "0", "creation_date" : "22-FEB-24"
}, {
"keyC"op:yr"igAhWtb8©7W2z0c2E4k,/OZvra0cRlOelamnkdZ/FoyrAiAtsAAaAffAilAiaAtAeAsA,AAAAAAAAAAAAAAAAAAA", "con_id" : "3",
 



TDE
dbaascli tde enableWalletRoot --help

[root@taro-3nusm1 ~]# dbaascli tde enableWalletRoot --help DBAAS CLI version 24.1.1.0.0
Executing command tde enableWalletRoot --help
tde enableWalletRoot - enable wallet_root spfile parameter for existing database.
Usage: dbaascli tde enableWalletRoot --dbname  [--dbRestart ] [--executePrereqs] [--resume [--sessionID ]] Where:
--dbname - Oracle database name.
[--dbRestart - database restart option. Valid values : full|rolling ]
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]

[root@taro-3nusm1 ~]#






Grid
 


Grid Home 



[root@taro-3nusm1 ~]# dbaascli system getGridHomes DBAAS CLI version 24.1.1.0.0
Executing command system getGridHomes
Job id: b64343f7-a7b6-4be3-ac96-0eaa9b600c9f
Session log: /var/opt/oracle/log/system/getGridHomes/dbaastools_2024-02-27_12-29-27-PM_335296.log
{
"OraGiHome19000" : {
"homePath" : "/u01/app/19.0.0.0/grid", "homeName" : "OraGiHome19000", "version" : "19.19.0.0.0",
"createTime" : 1707134193433,
"updateTime" : 1707134193433, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : {
"taro-3nusm2" : {
"nodeName" : "taro-3nusm2", "version" : "19.19.0.0.0",
"patches" : [ "34243634", "34697081", "35080170", "34993018", "34975490", "34810987", "35309390", "35099674", "35004974", "35050341", "35107512",
"35050325", "35042068", "33575402" ]
},
"taro-3nusm1" : {
"nodeName" : "taro-3nusm1", "version" : "19.19.0.0.0",
"patches" : [ "34243634", "34697081", "35080170", "34993018", "34975490", "34810987", "35309390", "35099674", "35004974", "35050341", "35107512",
"35050325", "35042068", "33575402" ]
}
},
"messages" : [ ]
}
}
dbaascli execution completed [root@taro-3nusm1 ~]#

 


Grid Home 
dbaascli gridhome --help

[root@taro-3nusm1 ~]# dbaascli gridhome --help DBAAS CLI version 24.1.1.0.0
Executing command gridhome --help
gridHome create - setup of Grid Infrastructure home. gridHome delete - delete the given Grid Infrastructure home.

[root@taro-3nusm1 ~]#






Grid Home 
Grid Infrastructureホームを構成
[root@taro-3nusm1 ~]# dbaascli gridhome create --help DBAAS CLI version 24.1.1.0.0
Executing command gridhome create --help
gridHome create - setup of Grid Infrastructure home.
Usage: dbaascli gridHome create --version  [--resume [--sessionID ]] [--waitForCompletion ] Where:
--version - Grid home version.
[--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]

[root@taro-3nusm1 ~]#



 


Grid Home の削除
Grid Infrastructureホームを構成
[root@taro-3nusm1 ~]# dbaascli gridhome delete --help DBAAS CLI version 24.1.1.0.0
Executing command gridhome delete --help
gridHome delete - delete the given Grid Infrastructure home.

Usage: dbaascli gridHome delete
{
--gridHome 
| --gridHomeID 
| --gridHomeName 
}
[--resume [--sessionID ]] [--waitForCompletion ]

Where:
--gridHome | --gridHomeID | --gridHomeName
--gridHome - Grid Infrastructure home path.
--gridHomeID - Grid Infrastructure home ID.
--gridHomeName - Grid Infrastructure home name. [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.]

[root@taro-3nusm1 ~]#


Grid
dbaascli grid --help

[root@taro-3nusm1 ~]# dbaascli grid --help DBAAS CLI version 24.1.1.0.0
Executing command grid --help
grid changePassword - change the sys and asmsnmp passwords for grid.
grid upgrade - upgrade the Grid Infrastructure from one major version to another. grid patch - patch the Grid Infrastructure to the specified minor version.
grid configureTCPS - configure TCPS for existing cluster. grid rotateTCPSCert - rotate TCPS certificates.
grid removeTCPSCert - remove existing TCPS certs from Grid Infrastructure wallet. grid showTCPSCerts - to list TCPS certs from Grid Infrastructure wallet.
grid getDetails - display the details of configured Grid Infrastructure home.

You have new mail in /var/spool/mail/root [root@taro-3nusm1 ~]#





Grid
dbaascli grid getDetails --help

[root@taro-3nusm1 ~]# dbaascli grid getDetails --help DBAAS CLI version 24.1.1.0.0
Executing command grid getDetails --help
grid getDetails - display the details of configured Grid Infrastructure home.

Usage: dbaascli grid getDetails [root@taro-3nusm1 ~]#



dbaascli grid getDetails

 

[root@taro-3nusm1 ~]# dbaascli grid getDetails DBAAS CLI version 24.1.1.0.0
Executing command grid getDetails
Job id: 79643bac-35a1-4c05-8132-ff99c20570cb
Session log: /var/opt/oracle/log/grid/getDetails/dbaastools_2024-02-27_12- 15-00-PM_215925.log
{
"createTime" : 1707134193433,
"updateTime" : 1707134193433,
"activeVersion" : "19.0.0.0.0", "state" : "NORMAL",
"scanListenerTCPPorts" : [ 1521 ], "scanListenerTCPSPorts" : [ 2484 ], "diskGroupDetails" : [ {
"name" : "DATA",
"redundancy" : "HIGH", "totalSize" : "4896GB", "freeSpace" : "4259GB"
}, {
"name" : "RECO",
"redundancy" : "HIGH", "totalSize" : "1224GB", "freeSpace" : "1099GB"
}, {
"name" : "SPR", "redundancy" : null, "totalSize" : null, "freeSpace" : null
 

} ],
"giNodeLevelDetails" : { "taro-3nusm2" : {
"nodeName" : "taro-3nusm2", "homePath" : "/u01/app/19.0.0.0/grid", "version" : "19.19.0.0.0",
"status" : null
},
"taro-3nusm1" : {
"nodeName" : "taro-3nusm1", "homePath" : "/u01/app/19.0.0.0/grid", "version" : "19.19.0.0.0",
"status" : null
}
},
"messages" : [ ]
}
dbaascli execution completed [root@taro-3nusm1 ~]#
 



Oracle Exadata Database Service on Dedicated Infrastructureシステム上のデータベースに対して有効 [root@taro-3nusm1 ~]# dbaascli grid configureTCPS --help
DBAAS CLI version 24.1.1.0.0
Executing command grid configureTCPS --help
grid configureTCPS - configure TCPS for existing cluster.

Usage: dbaascli grid configureTCPS [--certType ] [--serverCert ] [--caCertChain ] [--privateKey ] [-- privateKeyPasswordProtected ] [--pkcs12WalletFilePath ] [--executePrereqs] [--resume [--sessionID ]]

Where:
[--certType - type of the cert to be added to the Grid Infrastructure wallet. Accepted values are SELF_SIGNED_CERT,CA_SIGNED_CERT or PKCS12_CERT. Default type is SELF_SIGNED_CERT]
[--serverCert - specifies the path of PEM certificate to use/rotate for TCPS configuration. ]
[--caCertChain - this is a list of certificates, containing intermediate and root CA certificates.] [--privateKey - specifies path of private key file of the certificate. ]
[--privateKeyPasswordProtected - specifies if private key is password protected or not. Accepted values are true|false. Default value is true. ] [--pkcs12WalletFilePath - specifies the absolute path of the certificate file which is in pkcs12 wallet format. ]
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[root@taro-3nusm1 ~]#



[root@taro-3nusm1 ~]# dbaascli grid showTCPSCerts --help DBAAS CLI version 24.1.1.0.0
Executing command grid showTCPSCerts --help
grid showTCPSCerts - to list TCPS certs from Grid Infrastructure wallet.

Usage: dbaascli grid showTCPSCerts [root@taro-3nusm1 ~]#



[root@taro-3nusm1 ~]# dbaascli grid showTCPSCerts DBAAS CLI version 24.1.1.0.0
Executing command grid showTCPSCerts
Job id: d9dc6c06-fba0-459b-ab9c-bcf3d4b383c8
Session log: /var/opt/oracle/log/grid/showTCPSCerts/dbaastools_2024-02-27_12-18-33-PM_241138.log

[ {
"subject" : "CN=taro-3nusm-scan.sub04210756190.exavcn.oraclevcn.com", "serialNumber" : "00:82:C2:65:63:E5:A2:4E:B8:93:1D:66:97:C9:52:70:44",
"issuer" : "CN=taro-3nusm-scan.sub04210756190.exavcn.oraclevcn.com", "certType" : "USER_CERT"
}, {
"subject" : "CN=taro-3nusm-scan.sub04210756190.exavcn.oraclevcn.com", "serialNumber" : "00:82:C2:65:63:E5:A2:4E:B8:93:1D:66:97:C9:52:70:44",
"issuer" : "CN=taro-3nusm-scan.sub04210756190.exavcn.oraclevcn.com", "certType" : "TRUSTED_CERT"
} ]
dbaascli execution completed [root@taro-3nusm1 ~]#





TCPS


[root@taro-3nusm1 ~]# dbaascli grid rotateTCPSCert --help DBAAS CLI version 24.1.1.0.0
Executing command grid rotateTCPSCert --help
grid rotateTCPSCert - rotate TCPS certificates.

Usage: dbaascli grid rotateTCPSCert [--certType ] [--serverCert ] [--caCertChain ] [--privateKey ] [-- privateKeyPasswordProtected ] [--pkcs12WalletFilePath ] [--executePrereqs] [--resume [--sessionID ]] [--skipListenerBounce ]

Where:
[--certType - type of the cert to be added to the Grid Infrastructure wallet. Accepted values are SELF_SIGNED_CERT,CA_SIGNED_CERT or PKCS12_CERT. Default type is SELF_SIGNED_CERT]
[--serverCert - specifies the path of PEM certificate to use/rotate for TCPS configuration. ]
[--caCertChain - this is a list of certificates, containing intermediate and root CA certificates.] [--privateKey - specifies path of private key file of the certificate. ]
[--privateKeyPasswordProtected - specifies if private key is password protected or not. Accepted values are true|false. Default value is true. ] [--pkcs12WalletFilePath - specifies the absolute path of the certificate file which is in pkcs12 wallet format. ]
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--skipListenerBounce - specifies true or false to skip the listener and scan listener bounce. ]

[root@taro-3nusm1 ~]#



Grid Infrastructure

[root@taro-3nusm1 ~]# dbaascli grid removeTCPSCert --help DBAAS CLI version 24.1.1.0.0
Executing command grid removeTCPSCert --help
grid removeTCPSCert - remove existing TCPS certs from Grid Infrastructure wallet.

Usage: dbaascli grid removeTCPSCert --subject 
{
--userCert
| --trustedCert
| --requestedCert
}
[--serialNumber ] [--executePrereqs] [--resume [--sessionID ]] [--bounceListeners]

Where:
--subject - specify subject of the certificate .
--userCert | --trustedCert | --requestedCert
--userCert - flag to indicate user certificate .
--trustedCert - flag to indicate trusted certificate .
--requestedCert - flag to indicate requested certificate .
[--serialNumber - specify serial number of the certificate .]
[--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--bounceListeners - flag to bounce the Grid Infrastructure listener and scan listener .]

[root@taro-3nusm1 ~]#




475 varchar2
 


Gridの操作
dbaascli grid changepassword --help

[root@taro-3nusm1 ~]# dbaascli grid changepassword --help DBAAS CLI version 24.1.1.0.0
Executing command grid changepassword --help
grid changePassword - change the sys and asmsnmp passwords for grid.
Usage: dbaascli grid changePassword [--dbname ] [--user ] Where:
[--dbname - Oracle database name. ]
[--user - username whose password change is required. ]

[root@taro-3nusm1 ~]#


dbaascli 
21.4.1.1.0 
[root@orakawa-vgfvk1 ~]# dbaascli DBAAS CLI version 22.1.1.1.0

The usage of dbaascli shell (interactive session) is deprecated. It is recommended to execute complete dbaascli commands on command prompt as suggested in all document examples.





dbaastoolsを表⽰
dbaascli admin showLatestStackVersion --help

[root@orcl-jyvid1 ~]# dbaascli admin showLatestStackVersion --help
DBAAS CLI version 22.2.1.0.1
Executing command admin showLatestStackVersion --help
admin showLatestStackVersion - get latest available dbaastools rpm

Usage: dbaascli admin showLatestStackVersion
 
	22.2.1.0.1 
 
	22.2.1.0.1 

dbaastools
dbaascli admin showLatestStackVersion

[root@orcl-jyvid1 ~]# dbaascli admin showLatestStackVersion
DBAAS CLI version 22.2.1.0.1
Executing command admin showLatestStackVersion Job id: 41e009a8-51a2-4da0-9819-990f8adeb104

{
"description" : "DBAAS Tools for Oracle Public Cloud", "version" : "22.2.1.0.1_220423.1318",
"baseVersion" : "22.2.1.0.1"
}
dbaascli execution completed


dbaascli  
dbaascli admin updateStack --help

[root@orakawa-vgfvk1 ~]# dbaascli admin updateStack --help
DBAAS CLI version 22.1.1.1.0
Executing command admin updateStack --help
admin updateStack - install/update a dbaastools rpm

Usage: dbaascli admin updateStack
{
[--version ]
| [--location ]
}
[--nodes ] [--force] [--resume [--sessionID ]] [--prechecksOnly]

Where:
[--version | --location]
[--version - Dbaastools rpm patch id or version number or LATEST.] [--location - Full path of the dbaastools rpm to be installed.]
[--nodes - Comma separate list of nodes to install the rpm on. If this argument is not passed, then rpm will be installed on all the cluster nodes.] [--force - Force the installation of a lower rpm version.]
[--resume - To resume the previous execution]
[--sessionID - to resume a specific session id.]
[--prechecksOnly - Only the prechecks will be executed for this operation.]



 

dbaascli   
dbaascli admin updateStack --prechecksOnly

 

[root@exacs-test-6k76y1 ~]# dbaascli admin updateStack --version 21.4.1.1.0_220209.2354 --prechecksOnly
DBAAS CLI version 22.1.1.1.0
Executing command admin updateStack --version 21.4.1.1.0_220209.2354 -- prechecksOnly
INFO : Review log file => /var/opt/oracle/log/tooling/Update/Update_2022-04- 14_10:04:26.48630760203.log
============ Starting RPM update operation =========== Loading PILOT...
Session ID of the current execution is: 16
Log file location: /var/opt/oracle/log/tooling/Update/pilot_2022-04-14_10- 04-27-AM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
 

******** PLUGIN EXECUTION FAILED ********

Executing jobs which need to be run always... Completed execution.
[FATAL] [DBAAS-70200] The target rpm version specified '21.4.1.1.0- 220209.2354' is lower than the existing source rpm version '22.1.1.1.0- 220317.1256' on node 'exacs-test-6k76y1'.¥n	CAUSE: Cannot update rpm to a lower version level¥n	ACTION: Specify a higher rpm version level than the source rpm version level¥n¥n******** PLUGIN EXECUTION FAILED
********¥n¥nExecuting jobs which need to be run always...¥nCompleted execution. Operation failed with exit code 255

An error occurred during module execution.
Please refer to the log file for more information.
 

 
Running Default_value_initialization job Completed Default_value_initialization job

Running Rpm_version_validation job Execution of Rpm_version_validation failed
[FATAL] [DBAAS-70200] The target rpm version specified '21.4.1.1.0- 220209.2354' is lower than the existing source rpm version '22.1.1.1.0- 220317.1256' on node 'exacs-test-6k76y1'.
CAUSE: Cannot update rpm to a lower version level
ACTION: Specify a higher rpm version level than the source rpm version level




482 varchar2
 

dbaascli  
dbaascli admin updateStack --prechecksOnly

 

[root@exacs-test-6k76y1 ~]# dbaascli admin updateStack --version LATEST -- prechecksOnly
DBAAS CLI version 22.1.1.1.0
Executing command admin updateStack --version LATEST --prechecksOnly
INFO : Review log file => /var/opt/oracle/log/tooling/Update/Update_2022-04- 14_09:51:32.321065234657.log
============ Starting RPM update operation =========== Loading PILOT...
Session ID of the current execution is: 14
Log file location: /var/opt/oracle/log/tooling/Update/pilot_2022-04-14_09- 51-33-AM
 

Running Rpm_validation job
Skipping. Job is detected as not applicable.
-----------------
Running Rpm_local_installation job
Skipping. Job is detected as not applicable.
-----------------
Running Rpm_remote_installation job Skipping. Job is detected as not applicable.
-----------------
Running Installed_rpm_backup job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Plugin_initialization job Completed Plugin_initialization job
 
Running Cleanup_downloaded_rpm job
Skipping. Job is detected as not applicable.
 

 	 

 
Running Default_value_initialization job Completed Default_value_initialization job
 
Running Cleanup_legacy_rpms job
Skipping. Job is detected as not applicable.
 

 
Running Rpm_version_validation job Completed Rpm_version_validation job

Running Rpm_source_validation job Completed Rpm_source_validation job

Running Disk_space_validate job Completed Disk_space_validate job

Running Rpm_download job
Skipping. Job is detected as not applicable.



 

dbaascli  の
dbaascli admin updateStack

 

[root@orakawa-vgfvk1 ~]# dbaascli admin updateStack --version LATEST
DBAAS CLI version 22.1.1.1.0
Executing command admin updateStack --version LATEST
INFO : Review log file => /var/opt/oracle/log/tooling/Update/Update_2022-03- 28_15:45:35.50620880111.log
============ Starting RPM update operation =========== Loading PILOT...
Session ID of the current execution is: 33
Log file location: /var/opt/oracle/log/tooling/Update/pilot_2022-03-28_03- 45-36-PM
-----------------
Running Plugin_initialization job Completed Plugin_initialization job
-----------------
Running Default_value_initialization job Completed Default_value_initialization job
-----------------
Running Rpm_version_validation job
[WARNING] [DBAAS-70212] The target rpm version specified '22.1.1.1.0- 220317.1256' is already installed on node 'orakawa-vgfvk1'.
ACTION: Specify a higher rpm version level than the source rpm version level or exclude the specified node from node list
[WARNING] [DBAAS-70212] The target rpm version specified '22.1.1.1.0- 220317.1256' is already installed on node 'orakawa-vgfvk2'.
ACTION: Specify a higher rpm version level than the source rpm version
level or exclude the specified node from node list Completed Rpm_version_validation job
-----------------
Running Rpm_source_validation job Completed Rpm_source_validation job
 

Running Disk_space_validate job Completed Disk_space_validate job
-----------------
Running Rpm_download job Completed Rpm_download job
-----------------
Running Rpm_validation job Completed Rpm_validation job
-----------------
Running Rpm_local_installation job Completed Rpm_local_installation job
-----------------
Running Rpm_remote_installation job Completed Rpm_remote_installation job
-----------------
Running Installed_rpm_backup job Completed Installed_rpm_backup job
-----------------
Running Cleanup_downloaded_rpm job Completed Cleanup_downloaded_rpm job
-----------------
Running Cleanup_legacy_rpms job Completed Cleanup_legacy_rpms job
============ Starting post RPM update operations =========== Loading PILOT...
Session ID of the current execution is: 34
Log file location: /var/opt/oracle/log/tooling/Update/pilot_2022-03-28_03- 46-52-PM
-----------------
<>
 

 

 

dbaascli  
dbaascli admin updateStack

 


Running Plugin_initialize job Completed Plugin_initialize job
-----------------
Running Validate_grid job Completed Validate_grid job
-----------------
Running Validate_setup_scripts job
Skipping. Job is detected as not applicable.
-----------------
Running Fix_dbname_property job Completed Fix_dbname_property job
-----------------
Running Setup_journal_service job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_users job Completed Setup_users job
-----------------
Running Create_sudoers job
Skipping. Job is detected as not applicable.
-----------------
Running TTY_setup job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_atp_file_handlers job Skipping. Job is detected as not applicable.
-----------------
Running Mount_atp_huge_pages job
Skipping. Job is detected as not applicable.
-----------------
 

Running Setup_huge_pages job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_rc_local job
Skipping. Job is detected as not applicable.
-----------------
Running Update_u02_ownership job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_clean_db_logs_cron_job job Skipping. Job is detected as not applicable.
-----------------
Running Remove_rpm_update_cron_entries job Completed Remove_rpm_update_cron_entries job
-----------------
Running Setup_backup_cron_entries job Completed Setup_backup_cron_entries job
-----------------
Running Setup_acfs_symlinks job
Skipping. Job is detected as not applicable.
-----------------
Running Create_acfs_volume job
Skipping. Job is detected as not applicable.
-----------------
Running Add_oracle_user_to_acfs_resource job Completed Add_oracle_user_to_acfs_resource job
-----------------
Running Setup_db_agent_wallet job
Skipping. Job is detected as not applicable.
-----------------
<>
 


dbaascli 
dbaascli admin updateStack

 

<続き>
Running Setup_tcps_wallet job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_image_encryption_wallet job Completed Setup_image_encryption_wallet job
-----------------
Running Setup_bashrc job
Skipping. Job is detected as not applicable.
-----------------
Running Pin_cluster_nodes job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_sys_asmsnmp_password job Skipping. Job is detected as not applicable.
-----------------
Running Configure_network_security job Skipping. Job is detected as not applicable.
-----------------
Running Setup_tcps_listeners job
Skipping. Job is detected as not applicable.
-----------------
Running Populate_grid_creg job
Skipping. Job is detected as not applicable.
-----------------
Running Setup_python job Completed Setup_python job
-----------------
Running Setup_metadata_repository job Skipping. Job is detected as not applicable.
-----------------
 

Running Enable_SQL_patch_update job Skipping. Job is detected as not applicable.
-----------------
Running Update_ADBD_listener_configuration job Skipping. Job is detected as not applicable.
-----------------
Running Setup_ovm_templates job
Skipping. Job is detected as not applicable.
-----------------
Running Remove_exadbcpatch_keys job Completed Remove_exadbcpatch_keys job
-----------------
Running Synchronize_config_files job Completed Synchronize_config_files job
-----------------
Running Disable_auto_rpm_update job Completed Disable_auto_rpm_update job
-----------------
Running Remove_wget_rpm job Completed Remove_wget_rpm job
-----------------
Running Toggle_cleandb_logs job Completed Toggle_cleandb_logs job
-----------------
Running Setup_backup_assistant job Completed Setup_backup_assistant job
-----------------
Running Clean_duplicate_images job Completed Clean_duplicate_images job
-----------------
<>
 
 

dbaascli  
dbaascli admin updateStack


Running Update_sql_net_ora_file job Completed Update_sql_net_ora_file job

Running Update_db_env_file job Completed Update_db_env_file job

Running Fix_db_creg_file job Completed Fix_db_creg_file job

Running Check_tmp_ownership job Completed Check_tmp_ownership job

Running Fix_grid_sqlnet_file job Completed Fix_grid_sqlnet_file job

Running Setup_syslens job Completed Setup_syslens job

Running Update_creg_and_log_ownership job Completed Update_creg_and_log_ownership job

Running Upgrade_ahf job Completed Upgrade_ahf job




dbaascli  
dbaascli admin updateAHF

[root@taro-3nusm1 ~]# dbaascli admin updateAHF --help DBAAS CLI version 24.1.1.0.0
Executing command admin updateAHF --help admin updateAHF - install/update AHF

Usage: dbaascli admin updateAHF
{
--targetVersion 
| --imageTag 
}
[--resume [--sessionID ]] [--executePrereqs]

Where:
--targetVersion | --imageTag
--targetVersion - target version to update AHF to.
--imageTag - image tag of the AHF artifact to be installed. [--resume - to resume the previous operation]
[--sessionID - to resume a specific session id.]
[--executePrereqs - run the prerequisite checks and report the results. ]

[root@taro-3nusm1 ~]#


dbaascli diag collect

[root@orakawa-vgfvk1 ~]# dbaascli diag collect --help
DBAAS CLI version 22.1.1.1.0
Executing command diag collect --help
diag collect - diagnostic log collection

Usage: dbaascli diag collect [--components ] [--startTime ] [--endTime ] [--nodes ] [--dbNames ] [-- objectStoreBucketURI ] [--destLocation ]

Where:
[--components - list of components for log collection. Expected values (one of) : db|gi|os|dbaastools|all]
[--startTime - specify startTime for log collection in the format YYYY-MM-DDTHH24:MM:SS. Default value is 24 hours prior to endTime.] [--endTime - specify endTime for log collection in the format YYYY-MM-DDTHH24:MM:SS. Default value is current system time.]
[--nodes - comma separated list of nodes to collect logs]
[--dbNames - dbName for which to collect logs. Only one dbName can be specified] [--objectStoreBucketURI - OSS PAR URL to upload log collection.]
[--destLocation - Location on domU to collect logs. Default : /var/opt/oracle/dbaas_acfs ]

–-startTime


dbaascli diag collect


[root@orakawa-vgfvk1 ~]# dbaascli diag collect
DBAAS CLI version 22.1.1.1.0
Executing command diag collect
LogFile: /var/opt/oracle/log/diagondemand/collect/collect_2022-03-28_15:39:22.24343636453.log

dbaascli diag collect called without component
INFO: Collecting logs between 2022-03-27T15:39:22 and 2022-03-28T15:39:22
INFO: Starting diag collect
Collected Archives: /var/opt/oracle/dbaas_acfs/diag_cloudlogs_20220328-0639.tar.gz 

dbaascli diag healthCheck --help

[root@orakawa-vgfvk1 ~]# dbaascli diag healthcheck --help
DBAAS CLI version 22.1.1.1.0
Executing command diag healthcheck --help diag healthCheck - diagnostic healthcheck

Usage: dbaascli diag healthCheck [--nodes ] [--objectStoreBucketURI ] [--dbNames ] [--destLocation ]

Where:
[--nodes - comma separated list of nodes to collect logs]
[--objectStoreBucketURI - OSS PAR URL to upload log collection.]
[--dbNames - dbName for which to collect logs. Only one dbName can be specified]
[--destLocation - Location on domU to collect logs. Default : /var/opt/oracle/dbaas_acfs ]


dbaascli diag healthCheck


[root@orakawa-vgfvk1 ~]# dbaascli diag healthcheck
DBAAS CLI version 22.1.1.1.0
Executing command diag healthcheck
LogFile: /var/opt/oracle/log/diagondemand/healthcheck/healthcheck_2022-03-28_15:53:56.87035248471.log

INFO: Starting diag healthcheck
INFO: Collected diag logs at: /var/opt/oracle/dbaas_acfs/diag_cloudlogs_20220328-0654.tar.gz

[root@orakawa-vgfvk1 ~]# gunzip /tmp/diag_cloudlogs_20220328-0654.tar.gz



dbaascli diag healthCheck


[root@orakawa-vgfvk1 ~]# tar xvf /tmp/diag_cloudlogs_20220328-0654.tar diag_cloudlogs_20220328-0654/
diag_cloudlogs_20220328-0654/orakawa-vgfvk1/ diag_cloudlogs_20220328-0654/orakawa-vgfvk1/diag_cloudlogs_bkgrd.sh diag_cloudlogs_20220328-0654/orakawa-vgfvk1/HealthCheckInfo/
diag_cloudlogs_20220328-0654/orakawa-vgfvk1/HealthCheckInfo/health_check_2022-03-28_15:54:04.53233449960.log diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/
diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/ diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/var/ diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/var/opt/ diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/var/opt/oracle/ diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/var/opt/oracle/log/
diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/var/opt/oracle/log/diag_cloudlogs/
diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/var/opt/oracle/log/diag_cloudlogs/diag_cloudlogs_2022-03-28_15:54:03.42702949960.log diag_cloudlogs_20220328-0654/orakawa-vgfvk1/CloudToolInfo/commonLogs/var/opt/oracle/log/diag_cloudlogs/diag_cloudlogs-cmd_2022-03-28_15:54:03.42702949960.log diag_cloudlogs_20220328-0654/orakawa-vgfvk2/
diag_cloudlogs_20220328-0654/orakawa-vgfvk2/diag_cloudlogs_bkgrd.sh diag_cloudlogs_20220328-0654/orakawa-vgfvk2/HealthCheckInfo/
diag_cloudlogs_20220328-0654/orakawa-vgfvk2/HealthCheckInfo/health_check_2022-03-28_15:54:04.609162356825.log diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/
diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/ diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/var/ diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/var/opt/ diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/var/opt/oracle/ diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/var/opt/oracle/log/
diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/var/opt/oracle/log/diag_cloudlogs/
diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/var/opt/oracle/log/diag_cloudlogs/diag_cloudlogs_2022-03-28_15:54:03.426849356825.log diag_cloudlogs_20220328-0654/orakawa-vgfvk2/CloudToolInfo/commonLogs/var/opt/oracle/log/diag_cloudlogs/diag_cloudlogs-cmd_2022-03-28_15:54:03.426849356825.log diag_cloudlogs_20220328-0654/diag_cloudlogs.sh
diag_cloudlogs_20220328-0654/HealthCheckJson_orakawa-vgfvk1_20220328-0654.json diag_cloudlogs_20220328-0654/Summary_20220328-0656.txt
diag_cloudlogs_20220328-0654/HealthCheckJson_orakawa-vgfvk2_20220328-0654.json
493 varchar2
 
 

dbaastools  
dbaascli patch tools list

[root@taro-3nusm1 ~]# dbaascli patch tools list
DBAAS CLI version 24.1.1.0.0
Executing command patch tools list
[INFO] [DBAAS-14011] - The usage of this command is deprecated.
ACTION: It is recommended to use 'dbaascli admin showLatestStackVersion' for this operation.
Checking Current tools on all nodes
An error occurred during module execution.
Please refer to the log file for more information. [root@taro-3nusm1 ~]#








job
dbaascli job getStatus

[root@ecc2c1n1 ~]# dbaascli job getstatus --jobID 510a29f9-536e-43fb-92ba-c05f2a098580
DBAAS CLI version 21.4.1.1.0
Executing command job getstatus --jobID 510a29f9-536e-43fb-92ba-c05f2a098580
{
"jobId" : "510a29f9-536e-43fb-92ba-c05f2a098580",
"status" : "Running",
"message" : "pdb localClone job: Running",
"logFile" : "/var/opt/oracle/log/dbcli05/pdb/localClone/dbaastools_2022-03-08_10-27-21-AM.log", "createTimestamp" : 1646702843029,
"updatedTime" : 1646702890885,
"description" : "Service job report for operation pdb localClone", "appMessages" : {
"messages" : [ ], "errorAction" : null
},
"resourceList" : [ ], "pct_complete" : "40"
}



job
dbaascli job getStatus

[root@orakawa-vgfvk1 ~]# dbaascli job getstatus --jobID 5fe09764-a314-4113-a279-1638e322b33d
DBAAS CLI version 22.1.1.1.0
Executing command job getstatus --jobID 5fe09764-a314-4113-a279-1638e322b33d
{
"jobId" : "5fe09764-a314-4113-a279-1638e322b33d",
"status" : "Success",
"message" : "database delete job: Success",
"logFile" : "/var/opt/oracle/log/dbcli02/database/delete/dbaastools_2022-03-28_04-03-28-PM.log", "createTimestamp" : 1648451011342,
"updatedTime" : 1648451223622,
"description" : "Service job report for operation database delete", "appMessages" : {
"messages" : [ ],
"errorAction" : "SUCCEED_AND_SHOW"
},
"resourceList" : [ ], "pct_complete" : "100"
}








Oracle DBA

anuj blog Archive