Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

ExaDB-D dbaascli で出来ること

ExaDB-D dbaascli で出来ること

dbaascli 24.4.1.0.0

oracle4engineer

November 15, 2024
Tweet

More Decks by oracle4engineer

Other Decks in Technology

Transcript

  1. dbaascli --help [root@wasa-ycfpo1 ~]# dbaascli --help DBAAS CLI version 24.1.1.0.0

    Executing command --help Usage: dbaascli <object> <command> [<options>] [<flags>] Following are the possible flags: --help - display help. The following are the supported objects and associated commands. To view the <options> 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 で出来ること Copyright © 2024, Oracle and/or its affiliates, 2 本リリースでの 変更点を赤字表示
  2. 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. 続く dbaascli で出来ること Copyright © 2024, Oracle and/or its affiliates, 3 本リリースでの 変更点を赤字表示
  3. 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. 続く dbaascli で出来ること Copyright © 2024, Oracle and/or its affiliates, 4 本リリースでの 変更点を赤字表示
  4. 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 で出来ること Copyright © 2024, Oracle and/or its affiliates, 5 本リリースでの 変更点を赤字表示
  5. 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 dbaascli バージョン確認 Copyright © 2024, Oracle and/or its affiliates, 16 2023/11/21時点
  6. host_access_control idle-timeout --help -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 ssh タイムアウトの延長 Copyright © 2024, Oracle and/or its affiliates, 17 [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)) 2023/11/21時点
  7. 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 コマンド実行時のタイムアウトを避けるために、ssh タイムアウトの延長 (デフォルト600秒でタイムアウト) Copyright © 2024, Oracle and/or its affiliates, 18 2023/11/21時点
  8. dbaascli cswlib --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 ~]# Cloud Software Library の操作 Copyright © 2024, Oracle and/or its affiliates, 21 2024/2/19 更新
  9. dbaascli cswlib showImages --help ※Ver 22.1.1.1.0から「dbaascli cswlib list」が非推奨となり、こちらのコマンドに置き換わりました [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 <value>] [--jsonFormat [--jsonFilePath <value>]] Where: [--product - product type. The valid values are: DATABASE | GRID .] [--jsonFormat - displays output in JSON format.] [--jsonFilePath - path of the JSON file.] データベースの使用可能なソフトウェア・イメージおよびバージョンの一覧表示 Copyright © 2024, Oracle and/or its affiliates, 22 2023/11/21時点
  10. 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 続く データベースの使用可能なソフトウェア・イメージおよびバージョンの一覧表示 Copyright © 2024, Oracle and/or its affiliates, 23 2023/11/21時点
  11. 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 データベースの使用可能なソフトウェア・イメージおよびバージョンの一覧表示 Copyright © 2024, Oracle and/or its affiliates, 24 2023/11/21時点
  12. 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 <value>] 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 ~]# データベースの使用可能なソフトウェア・イメージ ローカルのバージョン確認 Copyright © 2024, Oracle and/or its affiliates, 26 2023/11/21時点
  13. dbaascli 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 <value> | --imageTag <value> } [--product <value>] Where: --version | --imageTag --version - Oracle home image version. --imageTag - Oracle home image tag. [--product - product type. The valid values are: DATABASE | GRID .] データベースの使用可能なソフトウェア・イメージ イメージのダウンロード Copyright © 2024, Oracle and/or its affiliates, 27 2023/11/21時点
  14. 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 がローカルにダウンロードされた データベースの使用可能なソフトウェア・イメージ イメージのダウンロード Copyright © 2024, Oracle and/or its affiliates, 28 2023/11/21時点
  15. 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 データベースの使用可能なソフトウェア・イメージ ダウンロードされたファイルの確認 Copyright © 2024, Oracle and/or its affiliates, 29 2023/11/21時点
  16. 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 <value> Where: --imageTag - Oracle home image tag. [root@taro-3nusm1 ~]# データベースの使用可能なソフトウェア・イメージ ローカルのバージョンの削除 Copyright © 2024, Oracle and/or its affiliates, 30 2024/2/19 更新
  17. 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 ~]# DBHOMEの操作 Copyright © 2024, Oracle and/or its affiliates, 32 2024/2/19 更新
  18. 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 <value> [--oracleHomeName <value>] [--oracleHome <value>] [--imageTag <value>] [-- enableUnifiedAuditing <value>] [--executePrereqs] [--imageFilePath <value>] [--waitForCompletion <value>] 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 ~]# version の指定が five numeric segments separated by periods になった -bp の指定がなくなった imageFilePath, waitForCompletion, executePrereqs のオプションが追加された Oracle Database Home の作成 Copyright © 2024, Oracle and/or its affiliates, 33 2023/11/21時点
  19. 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 の作成 Copyright © 2024, Oracle and/or its affiliates, 34 2023/11/21時点
  20. 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 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 ----------------- 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 ~]# Oracle Database Home の作成 Copyright © 2024, Oracle and/or its affiliates, 35 2023/11/21時点
  21. 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 <value> | --oracleHomeName <value> } [--resume [--sessionID <value>]] [--waitForCompletion <value>] 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 ~]# Oracle Database Home の削除 Copyright © 2024, Oracle and/or its affiliates, 36 2024/2/19 更新
  22. 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 ~]# 作成された Database Home の確認 Copyright © 2024, Oracle and/or its affiliates, 37 2023/11/21時点
  23. 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" } }, "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" : [ ] }, クラスタ上のすべてのデータベースのOracleホームを取得 Copyright © 2024, Oracle and/or its affiliates, 38 2023/11/21時点
  24. 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 クラスタ上のすべてのデータベースのOracleホームを取得 Copyright © 2024, Oracle and/or its affiliates, 39 2023/11/21時点
  25. 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 <value> | --oracleHome <value> } Where: --oracleHomeName | --oracleHome --oracleHomeName - Oracle home name. --oracleHome - Oracle home path. [root@vmem-6gl0h1 ~]# 作成された Database Home の詳細確認 Copyright © 2024, Oracle and/or its affiliates, 40 2023/11/21時点
  26. 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 の詳細確認 Copyright © 2024, Oracle and/or its affiliates, 41 2023/11/21時点
  27. 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 <value> | --oracleHome <value> } Where: --oracleHomeName | --oracleHome --oracleHomeName - Oracle home name. --oracleHome - Oracle home path. [root@vmem-6gl0h1 ~]# 作成された Database Home 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 43 2023/11/21時点
  28. 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 Home 作成に失敗する例 Copyright © 2024, Oracle and/or its affiliates, 44 2023/11/21時点
  29. 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 の操作 Copyright © 2024, Oracle and/or its affiliates, 45 2024/2/19 更新
  30. 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 <value> { --oracleHome <value> | --oracleHomeName <value> } [--dbUniqueName <value>] [--dbSID <value>] [--createAsCDB <value>] [--pdbName <value>] [--pdbAdminUserName <value>] [--dbCharset <value>] [--dbNCharset <value>] [--dbLanguage <value>] [--dbTerritory <value>] [--sgaSizeInMB <value>] [--pgaSizeInMB <value>] [--datafileDestination <value>] [--fraDestination <value>] [--fraSizeInMB <value>] [--nodeList <value>] [--tdeConfigMethod <value> { [--kmsKeyOCID <value> [--kmsKeyVersionOCID <value>] [--pdbKMSKeyVersionOCID <value>]] | [--okvServer <value> --okvAdminUserName <value> [--okvServerRestPort <value>] [--okvWalletName <value>]] }] { [--resume [--sessionID <value>]] | [--revert [--sessionID <value>]] } [--executePrereqs] [--honorNodeNumberForInstance <value>] [--lockPDBAdminAccount <value>] [--dbcaTemplateFilePath <value>] [-- waitForCompletion <value>] [--templateFromObjectStorage --objectStorageLoginUser <value> --objectStorageBucketName <value> --templateName <value> [--objectStorageUrl <value>]] 続き Database Create コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 46 2023/11/21時点
  31. 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 コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 47 2023/11/21時点
  32. 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] Database Create コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 48 2023/11/21時点
  33. 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を作成する前に前提条件チェックを実行 Copyright © 2024, Oracle and/or its affiliates, 49 2023/11/21時点
  34. dbaascli database create --executePrereq Running Perform_dbca_prechecks job Completed Perform_dbca_prechecks job

    ----------------- 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 Load_db_details job Skipping. Job is detected as not applicable. ----------------- Running Populate_creg job Skipping. Job is detected as not applicable. ----------------- 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 Skipping. Job is detected as not applicable. ----------------- Running Update_cloud_service_recommended_config_parameters job Skipping. Job is detected as not applicable. ----------------- Running Update_distributed_lock_timeout job Skipping. Job is detected as not applicable. ----------------- Running Configure_archiving job Skipping. Job is detected as not applicable. ----------------- Oracle Databaseを作成する前に前提条件チェックを実行 Copyright © 2024, Oracle and/or its affiliates, 50 2023/11/21時点
  35. dbaascli database create --executePrereq 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 DTRS_DB_Configure_Job 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. ----------------- 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を作成する前に前提条件チェックを実行 Copyright © 2024, Oracle and/or its affiliates, 51 2023/11/21時点
  36. 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ホームでのOracle Databaseの作成 Copyright © 2024, Oracle and/or its affiliates, 52 2023/11/21時点
  37. dbaascli database create 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. 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 Load_db_details job Completed Load_db_details 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 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 Update_cloud_service_recommended_config_parameters job Completed Update_cloud_service_recommended_config_parameters job ----------------- 指定されたOracle DatabaseホームでのOracle Databaseの作成 Copyright © 2024, Oracle and/or its affiliates, 53 2023/11/21時点
  38. 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 指定されたOracle DatabaseホームでのOracle Databaseの作成 Copyright © 2024, Oracle and/or its affiliates, 54 2023/11/21時点
  39. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 55 2023/11/21時点
  40. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 56 2023/11/21時点
  41. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 57 2023/11/21時点
  42. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 58 2023/11/21時点
  43. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 59 2023/11/21時点
  44. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 60 2023/11/21時点
  45. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 61 2023/11/21時点
  46. 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 上のDB確認 Copyright © 2024, Oracle and/or its affiliates, 62 2023/11/21時点
  47. 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を作成する Copyright © 2024, Oracle and/or its affiliates, 64
  48. 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 <続く> nonCDB の Oracle Databaseを作成する Copyright © 2024, Oracle and/or its affiliates, 65
  49. 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を作成する Copyright © 2024, Oracle and/or its affiliates, 66
  50. 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 の Oracle Databaseを作成する Copyright © 2024, Oracle and/or its affiliates, 67
  51. 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 <value> [--resume [--sessionID <value>]] [--executePrereqs] { [--copyDatafiles] | [--backupPrepared] } [--cdbName <value>] [--targetPDBName <value>] [--waitForCompletion <value>] 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 PDB.] [--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.] Database convertToPDB コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 69
  52. 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 に変換 プリチェック 失敗 Copyright © 2024, Oracle and/or its affiliates, 70
  53. 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_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 dbaascli execution completed nonCDB を CDB に変換 プリチェック 成功(--backupPrepared付) Copyright © 2024, Oracle and/or its affiliates, 71
  54. 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 を CDB に変換 Copyright © 2024, Oracle and/or its affiliates, 72
  55. 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 に変換 Copyright © 2024, Oracle and/or its affiliates, 73
  56. 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 nonCDB の Oracle Database を CDB に変換 Copyright © 2024, Oracle and/or its affiliates, 74
  57. 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 の作成(パラメーター指定)プリチェック Copyright © 2024, Oracle and/or its affiliates, 77
  58. dbaascli database create --パラメータ --executePrereqs yes <続き> 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 Skipping. Job is detected as not applicable. ----------------- 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 Check_and_configure_huge_pages job Skipping. Job is detected as not applicable. ----------------- Running DB_creation job Skipping. Job is detected as not applicable. ----------------- Running DB_creation_release_lock job Skipping. Job is detected as not applicable. ----------------- Running Load_db_details job Skipping. Job is detected as not applicable. ----------------- Running Populate_creg job Skipping. Job is detected as not applicable. ----------------- 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 Skipping. Job is detected as not applicable. ----------------- Running Configure_undo_retention job Skipping. Job is detected as not applicable. ----------------- Running Update_cloud_service_recommended_config_parameters job Skipping. Job is detected as not applicable. ----------------- Running Update_distributed_lock_timeout job Skipping. Job is detected as not applicable. ----------------- Running Configure_archiving job Skipping. Job is detected as not applicable. <続く> Database の作成(パラメーター指定)プリチェック Copyright © 2024, Oracle and/or its affiliates, 78
  59. 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. ----------------- Running Cleanup job Skipping. Job is detected as not applicable. dbaascli execution completed Database の作成(パラメーター指定)プリチェック Copyright © 2024, Oracle and/or its affiliates, 79
  60. 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 の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 80
  61. 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 ----------------- <続く> Database の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 81
  62. 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 の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 82
  63. ログファイルから 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 の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 83
  64. 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 の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 84
  65. NLSパラメーター確認 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 の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 85
  66. 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 Database の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 86
  67. ※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, <続く> Database の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 87
  68. ※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 の作成(パラメーター指定) Copyright © 2024, Oracle and/or its affiliates, 88
  69. 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 <value>] Where: [--oracleHome - Oracle home path. ] [root@wasabi-isfff1 ~]# データベースの一覧 Copyright © 2024, Oracle and/or its affiliates, 90
  70. 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", "nlsCharacterset" : "AL16UTF16", "dbTerritory" : "AMERICA", データベースの一覧 Copyright © 2024, Oracle and/or its affiliates, 91
  71. 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" } }, 続く データベースの一覧 Copyright © 2024, Oracle and/or its affiliates, 92
  72. 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" } }, "messages" : [ ] } データベースの一覧 Copyright © 2024, Oracle and/or its affiliates, 93
  73. 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 <value> Where: --dbname - Oracle database name. データベースの詳細確認 Copyright © 2024, Oracle and/or its affiliates, 94
  74. 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" } }, <続き> データベースの詳細確認 Copyright © 2024, Oracle and/or its affiliates, 95
  75. 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" }, "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_dbcli01pdb0 1.paas.oracle.com" } ] } }, "messages" : [ ] } dbaascli execution completed データベースの詳細確認 Copyright © 2024, Oracle and/or its affiliates, 96
  76. 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 の一覧 Copyright © 2024, Oracle and/or its affiliates, 98
  77. 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 ~]# Database Home の一覧 Copyright © 2024, Oracle and/or its affiliates, 99
  78. 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 <value> [--deleteArchiveLogs <value>] [--deleteBackups <value>] [--precheckOnly <value>] [-- waitForCompletion <value>] [--force] [--dbSID <value>] [--resume [--sessionID <value>]] 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 ~]# データベースの削除 Copyright © 2024, Oracle and/or its affiliates, 100
  79. 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 DB_deletion job Completed DB_deletion job ----------------- Running Remove_oratab_entry job Completed Remove_oratab_entry 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 データベースの削除 Copyright © 2024, Oracle and/or its affiliates, 101
  80. 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 <value> --node <value> [--continueOnUnreachableNode] { [--resume [--sessionID <value>]] | [--revert [--sessionID <value>]] } [--okvServer <value> --okvAdminUserName <value> [--okvServerRestPort <value>]] [--okvServerRestPort <value>] [--okvWalletName <value>] [-- waitForCompletion <value>] 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 ~]# 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 103 22.3.1.1.0 新機能 22.2.1.0.1 新機能
  81. dbaascli database deleteInstance --インスタンス削除前のDBの状態 [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, "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", 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 104 22.2.1.0.1 新機能
  82. 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 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 105 22.2.1.0.1 新機能
  83. dbaascli database deleteInstance(失敗パターン1) [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 --自ノードのインスタンスは削除できない 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 106 22.2.1.0.1 新機能
  84. 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: 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に指定されている為、削除できない 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 107 22.2.1.0.1 新機能
  85. 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 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 108 22.2.1.0.1 新機能
  86. 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 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 109 22.2.1.0.1 新機能
  87. dbaascli database deleteInstance --インスタンス削除後のDBの状態 [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" 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 110
  88. 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 特定ノードのDBインスタンスを削除 Copyright © 2024, Oracle and/or its affiliates, 111 22.2.1.0.1 新機能
  89. 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 <value> --node <value> [--newNodeSID <value>] { [--resume [--sessionID <value>]] | [--revert [--sessionID <value>]] } 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 ~]# インスタンスの追加 Copyright © 2024, Oracle and/or its affiliates, 113
  90. 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 <value> --sourceDBConnectionString <value> { --oracleHome <value> | --oracleHomeName <value> } [--dbSID <value>] [--dbUniqueName <value>] [--sgaSizeInMB <value>] [--pgaSizeInMB <value>] [--datafileDestination <value>] [-- fraDestination <value>] [--fraSizeInMB <value>] [--sourceDBTDEWalletLocation <value>] [--nodeList <value>] { [--resume [--sessionID <value>]] | [--revert [--sessionID <value>]] } [--rmanParallelism <value>] [--rmanSectionSizeInGB <value>] [--tdeConfigMethod <value> [--kmsKeyOCID <value>]] [--sourceDBTdeConfigMethod <value> [--sourceDBKmsKeyOCID <value>]] [--executePrereqs] [--waitForCompletion <value>] [--skipPDBs <value>] 続く Where: --dbName - Oracle database name. 複製先のDB名(db_unique_name) --sourceDBConnectionString - source database connection string in the format of <scan_name>:<scan_port>/<database_service_name>. --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 Copyright © 2024, Oracle and/or its affiliates, 114 2024/2/19 更新
  91. 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 <scan_name>:<scan_port>/<database_service_name>. --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.] [--skipPDBs - specifies comma separated source database PDB names which needs to be excluded for the duplicate database operation. Example: pdb1,pdb2... ] データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 115 2024/2/19 更新
  92. 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 *********** 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 116 2024/2/19 更新
  93. 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 ----------------- 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 117 2024/2/19 更新
  94. 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 ~]# データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 118 2024/2/19 更新
  95. dbaascli database duplicate --executePrereqs データベースのduplicate Copyright © 2024, Oracle and/or

    its affiliates, 119 対象のデータベース(一つのみ) 2024/2/19 更新
  96. 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 ************** 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 120 2024/2/19 更新
  97. 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 ----------------- 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 121 2024/2/19 更新
  98. 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 ----------------- 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 122 2024/2/19 更新
  99. 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 ----------------- 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 123 2024/2/19 更新
  100. 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 ----------------- 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 124 2024/2/19 更新
  101. 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 ----------------- 続く データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 125 2024/2/19 更新
  102. 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 ~]# データベースのduplicate Copyright © 2024, Oracle and/or its affiliates, 126 2024/2/19 更新
  103. 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 <value>] [--mode <value>] Where: [--dbname - Oracle database name. ] [--mode - abort|immediate|normal|transactional for DB. ] データベースの停止 Copyright © 2024, Oracle and/or its affiliates, 128
  104. 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 データベースの停止 Copyright © 2024, Oracle and/or its affiliates, 129
  105. 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 <value>] [--mode <value>] Where: [--dbname - Oracle database name. ] [--mode - mount|nomount for DB.] データベースの起動 Copyright © 2024, Oracle and/or its affiliates, 130
  106. 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 <value>] [--service <value> --user <value>] Where: [--dbname - Oracle database name. ] [--service - service name.] --user - username for the service. [root@taro-3nusm1 ~]# データベースの状態確認 Copyright © 2024, Oracle and/or its affiliates, 131 2024/2/19 更新
  107. 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 データベースの起動 Copyright © 2024, Oracle and/or its affiliates, 132
  108. 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 <value>] [--rolling <value>] Where: [--dbname - Oracle database name. ] [--rolling - specifies true|false to bounce database in a rolling manner. Default value is false. ] [root@taro-3nusm1 ~]# データベースの停止して再起動 Copyright © 2024, Oracle and/or its affiliates, 133 2024/2/19 更新
  109. 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 <value> { --setParameters <value> [--backupPrepared] [--instance <value>] [--allowBounce] | --resetParameters <value> [--backupPrepared] [--instance <value>] [--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.] [--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 level.] [--allowBounce - flag to grant permission to bounce the database in order to reflect the changes on applicable static parameters.] [root@ecc2c1n1 ~]# データベースのパラメーター変更 Copyright © 2024, Oracle and/or its affiliates, 134
  110. 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 データベースのパラメーター変更 Copyright © 2024, Oracle and/or its affiliates, 135
  111. 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 データベースのパラメーターリセット Copyright © 2024, Oracle and/or its affiliates, 136
  112. 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 <value> [--user <value>] { [--prepareStandbyBlob <value> [--blobLocation <value>]] | [--standbyBlobFromPrimary <value>] } [--resume [--sessionID <value>]] [--executePrereqs] [--waitForCompletion <value>] 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 ~]# データベースのパスワード変更 Copyright © 2024, Oracle and/or its affiliates, 137 2024/2/19 更新
  113. 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 ----------------- Running Prepare_blob_for_standby_in_primary job データベースのパスワード変更 Copyright © 2024, Oracle and/or its affiliates, 138 2024/2/19 更新
  114. 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 <value> | --oracleHome <value> } Where: --oracleHomeName | --oracleHome --oracleHomeName - Oracle home name. --oracleHome - Oracle home path. オラクル・ホームの情報表示 Copyright © 2024, Oracle and/or its affiliates, 139 22.2.1.0.1 で追加
  115. 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, "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" } オラクル・ホーム内のデータベースの情報表示 Copyright © 2024, Oracle and/or its affiliates, 140 22.2.1.0.1 で追加
  116. 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 オラクル・ホーム内のデータベースの情報表示 Copyright © 2024, Oracle and/or its affiliates, 141 22.2.1.0.1 で追加
  117. 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 <value>] [--hPath <value>] Where: [--hName - name of Oracle Home to be purged. ] [--hPath - path of Oracle Home to be purged. ] Database Homeの削除 Copyright © 2024, Oracle and/or its affiliates, 142
  118. 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 Database Homeの削除 Copyright © 2024, Oracle and/or its affiliates, 143
  119. 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 Database Homeの削除 Copyright © 2024, Oracle and/or its affiliates, 144
  120. 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 <value> --restartDB [--resume [--sessionID <value>]] [--waitForCompletion <value>] [--executePrereqs] { [--pdbs <value>] | [--skipPDBs <value>] } [--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 ~]# Database timezone のアップグレード Copyright © 2024, Oracle and/or its affiliates, 146 2024/2/19 更新
  121. 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 <value> { --templateLocation <value> | --uploadToObjectStorage --objectStorageLoginUser <value> --objectStorageBucketName <value> [--objectStorageUrl <value>] } [--templateName <value>] [--rmanParallelism <value>] 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 ~]# Database テンプレートの作成 Copyright © 2024, Oracle and/or its affiliates, 147 2024/2/19 更新
  122. • インプレース適用 • 現在の Oracle Home にパッチを適用する • dbaascli dbhome

    patch • アウトオブプレース適用(推奨) • パッチ適用済(新しいバージョン)のOracle Home にデータベースを移動する • dbaascli database move データベースへのパッチ適用 Copyright © 2024, Oracle and/or its affiliates, 149
  123. 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 データベースホームへのパッチ適用(インプレース・パッチ適用)事前確認 Copyright © 2024, Oracle and/or its affiliates, 151 2023/11/21時点
  124. 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 <value> { --oracleHome <value> | --oracleHomeName <value> } [--imageFilePath <value>] [--executePrereqs] [--nodes <value>] { [--resume [--sessionID <value>]] | [--rollback [--sessionID <value>]] } [--skipDatapatch] [--skipClosedPDBs] [--skipPDBs <value>] [--continueWithDbDowntime] [--skipUnreachableNodes] [--waitForCompletion <value>] 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.] データベースホームへのパッチ適用(インプレース・パッチ適用)コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 152 2023/11/21時点
  125. 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 ----------------- データベースホームへのパッチ適用(インプレース・パッチ適用)事前確認 Copyright © 2024, Oracle and/or its affiliates, 153 2023/11/21時点
  126. 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 データベースホームへのパッチ適用(インプレース・パッチ適用)事前確認 Copyright © 2024, Oracle and/or its affiliates, 154 2023/11/21時点
  127. 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 ----------------- <続く> データベースホームへのパッチ適用(インプレース・パッチ適用)適用 Copyright © 2024, Oracle and/or its affiliates, 155 2023/11/21時点
  128. dbaascli dbhome patch <続き> 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 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 update_inventory-vmem-6gl0h1 job Completed update_inventory-vmem-6gl0h1 job ----------------- Running root_script_execution-vmem-6gl0h1 job Completed root_script_execution-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 ----------------- <続く> データベースホームへのパッチ適用(インプレース・パッチ適用)適用 Copyright © 2024, Oracle and/or its affiliates, 156 2023/11/21時点
  129. 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 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 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 データベースホームへのパッチ適用(インプレース・パッチ適用)適用 Copyright © 2024, Oracle and/or its affiliates, 157 2023/11/21時点
  130. 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_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 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 ----------------- dbaascliを使用したデータベース・ホームへのパッチ適用 再開 Copyright © 2024, Oracle and/or its affiliates, 158 2023/11/21時点
  131. dbaascli dbhome patch --resume 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 update_inventory-vmem-6gl0h1 job Completed update_inventory-vmem-6gl0h1 job ----------------- Running root_script_execution-vmem-6gl0h1 job Completed root_script_execution-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 dbaascliを使用したデータベース・ホームへのパッチ適用 再開 Copyright © 2024, Oracle and/or its affiliates, 159 2023/11/21時点
  132. 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 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 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 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 dbaascliを使用したデータベース・ホームへのパッチ適用 再開 Copyright © 2024, Oracle and/or its affiliates, 160 2023/11/21時点
  133. 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 データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 Copyright © 2024, Oracle and/or its affiliates, 161 2023/11/21時点
  134. 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" }, データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 Copyright © 2024, Oracle and/or its affiliates, 162 2023/11/21時点
  135. 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", "compartmentOCID" : "ocid1.compartment.oc1..aaaaaaaa5lyxq3znb3vnngfmlpkdcksqw4oxe5zzg3i37iydjp ezoghgmh7a", "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" }, データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 Copyright © 2024, Oracle and/or its affiliates, 163 2023/11/21時点
  136. データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 "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.orac le.com", "tcpsConnectStrings" : [ "vmem-6gl0h- scan.sub04210756190.exavcn.oraclevcn.com:2484/Tutorial_PDB1.paas.orac le.com" ] } ], "pdbSize" : "8GB", "pdbUsedSize" : "1GB", "pdbSnapshotDetails" : null } }, "messages" : [ ] } dbaascli execution completed データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 Copyright © 2024, Oracle and/or its affiliates, 164 2023/11/21時点
  137. データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 [root@vmem-6gl0h1 ~]# dbaascli dbhome patch --oracleHome /u02/app/oracle/product/19.0.0.0/dbhome_4 --targetVersion 19.21.0.0.0

    -- rollback 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 -- rollback Job id: 5c2b0096-1e09-45aa-bffb-366b24729277 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_nodes job Completed validate_nodes job ----------------- Running validate_oracle_home job Completed validate_oracle_home 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 ----------------- データベースホームへのパッチ適用(インプレース・パッチ適用)適用後 ロールバック Copyright © 2024, Oracle and/or its affiliates, 165 2023/11/21時点
  138. データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 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 Skipping. Job is detected as not applicable. ----------------- Running validate_gold_image job Completed validate_gold_image 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 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 ----------------- データベースホームへのパッチ適用(インプレース・パッチ適用)適用後 ロールバック Copyright © 2024, Oracle and/or its affiliates, 166 2023/11/21時点
  139. データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 Running update_inventory-vmem-6gl0h1 job Completed update_inventory-vmem-6gl0h1 job ----------------- Running root_script_execution-vmem-6gl0h1

    job Completed root_script_execution-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 ----------------- 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 ----------------- データベースホームへのパッチ適用(インプレース・パッチ適用)適用後 ロールバック Copyright © 2024, Oracle and/or its affiliates, 167 2023/11/21時点
  140. データベースホームへのパッチ適用(インプレース・パッチ適用)適用後確認 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 データベースホームへのパッチ適用(インプレース・パッチ適用)適用後 ロールバック Copyright © 2024, Oracle and/or its affiliates, 168 2023/11/21時点
  141. 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 <value> | --oracleHomeName <value> } --dbname <value> [--executePrereqs] { [--resume [--sessionID <value>]] | [--rollback [--sessionID <value>]] } [--skipDatapatch] [--skipPDBs <value>] [--skipClosedPDBs] [--continueWithDbDowntime] [--allowParallelDBMove] [--waitForCompletion <value>] [--nodeList <value>] 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. ] データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 170 2023/11/21時点
  142. 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" }, データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)現状確認 Copyright © 2024, Oracle and/or its affiliates, 171 2023/11/21時点
  143. 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" }, "tdeDetails" : { "tdeKeystoreType" : "FILE", "keyVersionOcid" : null, "tdeMasterKeyId" : "ARbiuLLc6086v+JmNfEoia8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)現状確認 Copyright © 2024, Oracle and/or its affiliates, 172 2023/11/21時点
  144. 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 データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)現状確認 Copyright © 2024, Oracle and/or its affiliates, 173 2023/11/21時点
  145. 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" } }, "messages" : [ ] }, データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)現状確認 Copyright © 2024, Oracle and/or its affiliates, 174 2023/11/21時点
  146. 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 データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)現状確認 Copyright © 2024, Oracle and/or its affiliates, 175 2023/11/21時点
  147. 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 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_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 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_4 Acquiring read lock: _u02_app_oracle_product_19.0.0.0_dbhome_6 ---------------------------------- Running pre_patch_lock_manager job Completed pre_patch_lock_manager job ----------------- Running copy_config_files job Completed copy_config_files job ----------------- データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)適用 Copyright © 2024, Oracle and/or its affiliates, 176 2023/11/21時点
  148. 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 データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)適用 Copyright © 2024, Oracle and/or its affiliates, 177 2023/11/21時点
  149. 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" }, データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)適用後確認 Copyright © 2024, Oracle and/or its affiliates, 178 2023/11/21時点
  150. 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 データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用)適用後確認 Copyright © 2024, Oracle and/or its affiliates, 179 2023/11/21時点
  151. 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 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_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 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 ----------------- データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用) 適用後ロールバック Copyright © 2024, Oracle and/or its affiliates, 180 2023/11/21時点
  152. 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 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_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 データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用) 適用後ロールバック Copyright © 2024, Oracle and/or its affiliates, 181 2023/11/21時点
  153. 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" }, データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用) 適用後ロールバック後確認 Copyright © 2024, Oracle and/or its affiliates, 182 2023/11/21時点
  154. 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 データベースホームへのパッチ適用(アウト・オブ・プレース・パッチ適用) 適用後ロールバック後確認 Copyright © 2024, Oracle and/or its affiliates, 183 2023/11/21時点
  155. 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 <value> | --targetHome <value> } [--executePrereqs] [--nodeList <value>] [--continueWithDbDowntime] [--containerURL <value>] { [--createImage [--createImageDir <value>]] | [--imageFile <value>] } [--patchInParallel] { [--resume [--sessionID <value>]] | [--rollback [--sessionID <value>]] } [--waitForCompletion <value>] <続く> グリッド・インフラストラクチャへのパッチ適用前の事前チェック Copyright © 2024, Oracle and/or its affiliates, 185 2023/11/21時点
  156. 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 ~]# グリッド・インフラストラクチャへのパッチ適用前の事前チェック Copyright © 2024, Oracle and/or its affiliates, 186 2023/11/21時点
  157. 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_nodes job Completed validate_nodes 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 validate_users_umask job Completed validate_users_umask job ----------------- Running download_patches job Completed download_patches job ----------------- Running unpackage_patches job Completed unpackage_patches job ----------------- Running replace_opatch job Completed replace_opatch job ----------------- Running validate_patches job Completed validate_patches job ----------------- Running check_patch_conflicts job Completed check_patch_conflicts job <続く> グリッド・インフラストラクチャへのパッチ適用前の事前チェックの実行 Copyright © 2024, Oracle and/or its affiliates, 187
  158. 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 ~]# グリッド・インフラストラクチャへのパッチ適用前の事前チェックの実行 Copyright © 2024, Oracle and/or its affiliates, 188
  159. 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 initialization job Completed initialization job ----------------- Running validate_nodes job Completed validate_nodes 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 validate_users_umask job Completed validate_users_umask job ----------------- Running unpackage_patches job Completed unpackage_patches job ----------------- Running remove_zipped_patches job Completed remove_zipped_patches job ----------------- Running replace_opatch job Completed replace_opatch job ----------------- 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へのパッチ適用 Copyright © 2024, Oracle and/or its affiliates, 189 2023/11/21時点
  160. dbaascli grid patch <続き> ----------------- Running rotate_image_backup job Completed rotate_image_backup

    job ----------------- Running backup_image job Completed backup_image job ----------------- Running rotate_config_backup job Completed rotate_config_backup job ----------------- Running backup_config-vmem-6gl0h1 job Completed backup_config-vmem-6gl0h1 job ----------------- Running save_local_backup-vmem-6gl0h1 job Completed save_local_backup-vmem-6gl0h1 job ----------------- Running stop_db_instances-vmem-6gl0h1 job Completed stop_db_instances-vmem-6gl0h1 job ----------------- Running run_rootcrs_prepatch-vmem-6gl0h1 job Completed run_rootcrs_prepatch-vmem-6gl0h1 job ----------------- Running stop_tfa-vmem-6gl0h1 job Completed stop_tfa-vmem-6gl0h1 job ----------------- Running check_processes-vmem-6gl0h1 job Completed check_processes-vmem-6gl0h1 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 stop_processes-vmem-6gl0h1 job Completed stop_processes-vmem-6gl0h1 job ----------------- Running apply_gi_oneoffs_postpatch-vmem-6gl0h1 job Completed apply_gi_oneoffs_postpatch-vmem-6gl0h1 job ----------------- Running rootadd_rdbms_script-vmem-6gl0h1 job Completed rootadd_rdbms_script-vmem-6gl0h1 job ----------------- Running run_rootcrs_postpatch-vmem-6gl0h1 job Completed run_rootcrs_postpatch-vmem-6gl0h1 job ----------------- Running start_db_instances-vmem-6gl0h1 job Completed start_db_instances-vmem-6gl0h1 job ----------------- Running update_opatch_log_ownership-vmem-6gl0h1 job Completed update_opatch_log_ownership-vmem-6gl0h1 job ----------------- Running disable_diagsnap-vmem-6gl0h1 job Completed disable_diagsnap-vmem-6gl0h1 job ----------------- <続く> dbaascliを使用したOracle Grid Infrastructureへのパッチ適用 Copyright © 2024, Oracle and/or its affiliates, 190 2023/11/21時点
  161. 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 remove_home_on_node-vmem-6gl0h2 job Completed remove_home_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 ----------------- <続く> dbaascliを使用したOracle Grid Infrastructureへのパッチ適用 Copyright © 2024, Oracle and/or its affiliates, 191 2023/11/21時点
  162. 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 dbaascliを使用したOracle Grid Infrastructureへのパッチ適用 Copyright © 2024, Oracle and/or its affiliates, 192 2023/11/21時点
  163. 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. dbaascliを使用したOracle Grid Infrastructureへのパッチ適用確認 Copyright © 2024, Oracle and/or its affiliates, 193 2023/11/21時点
  164. 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 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-6gl0h2 job Completed run_rootcrs_prepatch_for_rollback-vmem-6gl0h2 job ----------------- Running remove_home-vmem-6gl0h2 job Completed remove_home-vmem-6gl0h2 job ----------------- 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 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 unpackage_image_backup-vmem-6gl0h1 job Completed unpackage_image_backup-vmem-6gl0h1 job ----------------- <続く> dbaascliを使用したOracle Grid Infrastructureへのパッチのロールバック適用 Copyright © 2024, Oracle and/or its affiliates, 194 2023/11/21時点
  165. 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 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 ----------------- 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 dbaascliを使用したOracle Grid Infrastructureへのパッチのロールバック適用 Copyright © 2024, Oracle and/or its affiliates, 195 2023/11/21時点
  166. 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. dbaascliを使用したOracle Grid Infrastructureパッチのロールバック後確認 Copyright © 2024, Oracle and/or its affiliates, 196 2023/11/21時点
  167. 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 ~]# GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 197 2024/4/24 更新
  168. 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)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 198 2024/4/24 更新
  169. 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 --imageTag 19.20.0.0.0 DBAAS CLI version 24.1.2.0.0 Executing command cswlib deleteLocal --imageTag 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]# GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 199 2024/4/24 更新
  170. 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 ----------------- Running create_gold_image job GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 200 2024/4/24 更新
  171. 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分、 GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 201 2024/4/24 更新
  172. 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 ----------------- GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 202 2024/4/24 更新
  173. 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 ----------------- GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 203 2024/4/24 更新
  174. dbaascli grid patch --imageLocation Running software_root_script-wasa-ycfpo1 job Completed software_root_script-wasa-ycfpo1 job

    ----------------- Running root_script_init-wasa-ycfpo1 job Completed root_script_init-wasa-ycfpo1 job ----------------- Running run_rootcrs_postpatch-wasa-ycfpo1 job Completed run_rootcrs_postpatch-wasa-ycfpo1 job ----------------- Running start_db_instances-wasa-ycfpo1 job Completed start_db_instances-wasa-ycfpo1 job ----------------- Running disable_diagsnap-wasa-ycfpo1 job Completed disable_diagsnap-wasa-ycfpo1 job ----------------- Running restore_tfa_status-wasa-ycfpo1 job Completed restore_tfa_status-wasa-ycfpo1 job ----------------- Running remove_local_backup-wasa-ycfpo1 job Completed remove_local_backup-wasa-ycfpo1 job ----------------- Running cleanup-wasa-ycfpo1 job Completed cleanup-wasa-ycfpo1 job ----------------- Running backup_config_on_node-wasa-ycfpo2 job Completed backup_config_on_node-wasa-ycfpo2 job ----------------- Running save_local_backup_on_node-wasa-ycfpo2 job Completed save_local_backup_on_node-wasa-ycfpo2 job ----------------- Running stop_db_instances_on_node-wasa-ycfpo2 job Completed stop_db_instances_on_node-wasa-ycfpo2 job ----------------- Running run_rootcrs_prepatch_on_node-wasa-ycfpo2 job Completed run_rootcrs_prepatch_on_node-wasa-ycfpo2 job ----------------- Running stop_tfa_on_node-wasa-ycfpo2 job Completed stop_tfa_on_node-wasa-ycfpo2 job ----------------- Running stop_processes_on_node-wasa-ycfpo2 job Completed stop_processes_on_node-wasa-ycfpo2 job ----------------- Running remove_home_on_node-wasa-ycfpo2 job Completed remove_home_on_node-wasa-ycfpo2 job ----------------- Running copy_patched_home_from_local_node-wasa-ycfpo2 job Completed copy_patched_home_from_local_node-wasa-ycfpo2 job ----------------- Running unpackage_config_backup_on_node-wasa-ycfpo2 job Completed unpackage_config_backup_on_node-wasa-ycfpo2 job ----------------- Running run_rootcrs_postpatch_on_node-wasa-ycfpo2 job Completed run_rootcrs_postpatch_on_node-wasa-ycfpo2 job ----------------- Running start_db_instances_on_node-wasa-ycfpo2 job Completed start_db_instances_on_node-wasa-ycfpo2 job ----------------- Running disable_diagsnap_on_node-wasa-ycfpo2 job Completed disable_diagsnap_on_node-wasa-ycfpo2 job ----------------- GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 204 2024/4/24 更新
  175. 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分なので、早く終了できる GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 205 2024/4/24 更新
  176. 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 ~]# GIソフトウェア・イメージを使用したOracle Grid Infrastructure (GI)へのパッチ 適用 Copyright © 2024, Oracle and/or its affiliates, 206 2024/4/24 更新
  177. 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 <value> { --targetHome <value> | --targetHomeName <value> } { [--executePrereqs] | [--rollback [--sessionID <value>]] | [--resume [--sessionID <value>]] } { [--standBy] | ( [--allStandbyPrepared] [--upgradeOptions <value>] [--increaseCompatibleParameter] ) } [--removeGRP] [--waitForCompletion <value>] データベースのアップグレード Copyright © 2024, Oracle and/or its affiliates, 208
  178. 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 t he 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 ~]# データベースのアップグレード Copyright © 2024, Oracle and/or its affiliates, 209
  179. 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" データベースのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 210
  180. 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 ~]# データベースのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 211
  181. 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" : [ ] }, データベースのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 212
  182. 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" : { "saburo-5puyv2" : { "nodeName" : "saburo-5puyv2", データベースのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 213
  183. 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 Create_pre_upgrade_log_location job Completed Create_pre_upgrade_log_location job ----------------- Running Check_database_statistics job Completed Check_database_statistics 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 Pre_upgrade_fixups job Completed Pre_upgrade_fixups job ----------------- Running Check_valid_db_components job Completed Check_valid_db_components job ----------------- データベースのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 214
  184. 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 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 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 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 ----------------- データベースのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 215
  185. dbaascli database upgrade Running Perform_database_upgrade job Logs directory: /u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03- 14180247

    Performing Pre-Upgrade Checks... ============================ Pre-Upgrade Checks Results ============================= /u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03- 14180247/DB0313_3k9_kix/upgrade.xml /u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03- 14180247/DB0313_3k9_kix/preupgrade_fixups.sql /u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03- 14180247/DB0313_3k9_kix/postupgrade_fixups.sql [WARNING] [DBT-20060] One or more Oracle upgrade pre-checks resulted in warning conditions that may require further review. ACTION: Refer to the pre-upgrade results location for details: /u02/app/oracle/cfgtoollogs/DB0313_3k9_kix/upgrade/2024-03- 14180247/DB0313_3k9_kix 12% complete 15% complete 25% complete 37% complete 37% complete 37% complete 38% complete 38% complete 38% complete 38% complete 39% complete 39% complete 39% complete 39% complete 40% complete 40% complete 40% complete 40% complete 41% complete 41% complete 41% complete 41% complete 42% complete 42% complete 42% complete 42% complete 43% complete 43% complete 43% complete 43% complete 44% complete 44% complete 44% complete 44% complete 45% complete 45% complete 45% complete 45% complete 46% complete 46% complete 46% complete 46% complete データベースのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 216
  186. 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 Update_source_cloud_registry_metadata job Completed Update_source_cloud_registry_metadata job ----------------- Running Verify_database_upgrade_logs job Completed Verify_database_upgrade_logs job ----------------- 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 Verify_tde_configuration job Completed Verify_tde_configuration job ----------------- Running Update_oratab job Completed Update_oratab job ----------------- Running Update_oraenv_files job Completed Update_oraenv_files job ----------------- データベースのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 217
  187. 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 ~]# データベースのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 218
  188. 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", データベースのアップグレード 事後確認 Copyright © 2024, Oracle and/or its affiliates, 219
  189. 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", "status" : "OPEN" } データベースのアップグレード 事後確認 Copyright © 2024, Oracle and/or its affiliates, 220
  190. 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 ----------------- データベースのアップグレード ロールバック Copyright © 2024, Oracle and/or its affiliates, 221 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 -----------------
  191. 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 [root@saburo-5puyv1 ~]# データベースのアップグレード ロールバック Copyright © 2024, Oracle and/or its affiliates, 222
  192. 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", データベースのアップグレード ロールバック 事後確認 Copyright © 2024, Oracle and/or its affiliates, 223
  193. 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", "status" : "OPEN" } データベースのアップグレード ロールバック 事後確認 Copyright © 2024, Oracle and/or its affiliates, 224
  194. dbaascli grid upgrade --help [root@kara-vpvao1 ~]# dbaascli grid upgrade --help

    DBAAS CLI version 24.3.2.0.0 Executing command grid upgrade --help grid upgrade - upgrade the Grid Infrastructure from one major version to another. Usage: dbaascli grid upgrade --targetVersion <value> [--containerURL <value>] [--executePrereqs] [--resume [--sessionID <value>]] [--rollback [--sessionID <value>]] [--targetHome <value>] [--softwareOnly] [--drainTimeoutInSeconds <value>] [--waitForCompletion <value>] Where: --targetVersion - target version to be upgraded to, specified as five numeric segments separated by periods (e.g. 19.12.0.0.0). [--containerURL - custom URL for fetching Oracle Grid Infrastructure Image. ] [--executePrereqs - run the prerequisite checks and report the results. ] [--resume - to resume the previous operation] [--sessionID - to resume a specific session id.] [--rollback - option to revert failed operation. ] [--sessionID - to resume a specific session id.] [--targetHome - path of the target Grid Infrastructure home for the operation which is different from the current Grid Infrastructure home. ] [--softwareOnly - option to install only Grid Infrastructure software. ] [--drainTimeoutInSeconds - option to specify time (in seconds) to complete the resource draining while stopping the database.] [--waitForCompletion - specifies false to run the operation in background. Valid values : true|false.] [root@kara-vpvao1 ~]# gridのアップグレード Copyright © 2024, Oracle and/or its affiliates, 225 2024/10/29 更新
  195. dbaascli grid getGridHomes [root@shiro-1dkzm1 ~]# dbaascli system getGridHomes DBAAS CLI

    version 24.3.2.0.0 Executing command system getGridHomes Job id: 2d8af463-7b01-4e15-9439-b6a3f2ae5eb7 Session log: /var/opt/oracle/log/system/getGridHomes/dbaastools_2024-10-29_01-09-32-AM_179086.log { "OraGiHome19000" : { "homePath" : "/u01/app/19.0.0.0/grid", "homeName" : "OraGiHome19000", "version" : "19.23.0.0.0", "createTime" : 1721922141474, "updateTime" : 1721922141474, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : { "shiro-1dkzm1" : { "nodeName" : "shiro-1dkzm1", "version" : "19.23.0.0.0", "patches" : [ "36195566", "36459041", "36460248", "36383196", "36240578", "36233343", "36233263" ] }, "shiro-1dkzm2" : { "nodeName" : "shiro-1dkzm2", "version" : "19.23.0.0.0", "patches" : [ "36195566", "36459041", "36460248", "36383196", "36240578", "36233343", "36233263" ] } }, "messages" : [ ] } } dbaascli execution completed [root@shiro-1dkzm1 ~]# gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 226 2024/10/29 更新
  196. dbaascli cswlib showImages --product grid [root@shiro-1dkzm1 ~]# dbaascli cswlib showImages

    --product grid DBAAS CLI version 24.3.2.0.0 Executing command cswlib showImages --product grid Job id: 29dc2ac7-dde2-43fd-8f48-39f9f2b07902 Session log: /var/opt/oracle/log/cswLib/showImages/dbaastools_2024-10-29_01-09-55-AM_182162.log Log file location: /var/opt/oracle/log/cswLib/showImages/dbaastools_2024-10-29_01-09-55-AM_182162.log ############ List of Available grid Artifacts ############# 1.IMAGE_TAG=grid_23.5.0.24.07 VERSION=23.5.0.24.07 DESCRIPTION=23ai grid image 23.5.0.24.07 2.IMAGE_TAG=grid_19.25.0.0.0 VERSION=19.25.0.0.0 DESCRIPTION=19c OCT 2024 GI Image 3.IMAGE_TAG=grid_19.22.0.0.0 VERSION=19.22.0.0.0 DESCRIPTION=19c JAN 2024 GI Image 4.IMAGE_TAG=grid_19.23.0.0.0 VERSION=19.23.0.0.0 DESCRIPTION=19c APR 2024 GI Image 5.IMAGE_TAG=grid_23.6.0.24.10 VERSION=23.6.0.24.10 DESCRIPTION=23ai grid image 23.6.0.24.10 6.IMAGE_TAG=grid_23.4.0.24.05 VERSION=23.4.0.24.05 DESCRIPTION=23ai grid image 23.4.0.24.05 7.IMAGE_TAG=grid_19.24.0.0.0 VERSION=19.24.0.0.0 DESCRIPTION=19c JUL 2024 GI Image 8.IMAGE_TAG=grid_19.21.0.0.0 VERSION=19.21.0.0.0 DESCRIPTION=19c OCT 2023 GI Image Images can be downloaded using their image tags. For details, see help using 'dbaascli cswlib download --help'. gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 227 2024/10/29 更新
  197. dbaascli grid upgrade --executePrereqs [root@shiro-1dkzm1 ~]# dbaascli grid upgrade --targetVersion

    23.6.0.24.10 --executePrereqs DBAAS CLI version 24.3.2.0.0 Executing command grid upgrade --targetVersion 23.6.0.24.10 --executePrereqs Job id: 666ccf45-647d-4927-8a8d-d7102ef0d5f2 Session log: /var/opt/oracle/log/grid/upgrade/dbaastools_2024-10-29_01-43-40-AM_278961.log Loading PILOT... Session ID of the current execution is: 4839 Log file location: /var/opt/oracle/log/grid/upgrade/pilot_2024-10-29_01-43-44-AM_279377 ----------------- Running initialize job Completed initialize job ----------------- Running validate_target_version job Completed validate_target_version job ----------------- Running check_locations_existence job Completed check_locations_existence job ----------------- Running check_locations_free_space job Completed check_locations_free_space job ----------------- Running check_os_version job Completed check_os_version job ----------------- Running check_patch_level job Completed check_patch_level job ----------------- Running check_crs_running_all_nodes job Completed check_crs_running_all_nodes job ----------------- 続く gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 228 2024/10/29 更新
  198. dbaascli grid upgrade --executePrereqs 続き Running check_asm_rebalance_ops job Completed check_asm_rebalance_ops

    job ----------------- Running check_crs_state job Completed check_crs_state job ----------------- Running ocrcheck job Completed ocrcheck job ----------------- Running validate_databases job Completed validate_databases job ----------------- Running validate_image_download_configuration job Completed validate_image_download_configuration job ----------------- Running download_image job Completed download_image job ----------------- Running create_locations_first_node job Completed create_locations_first_node job ----------------- Running unpackage_image_first_node job Completed unpackage_image_first_node job ----------------- Running validate_image job Completed validate_image job ----------------- Running software_only_prereqs job Completed software_only_prereqs job ----------------- 続き gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 229 2024/10/29 更新
  199. dbaascli grid upgrade --executePrereqs 続き Running cluvfy_pre_upgrade job Execution of

    cluvfy_pre_upgrade failed [FATAL] [DBAAS-60400] Prerequisite checks failed. *MORE DETAILS* Pre-check for cluster services setup was unsuccessful. Checks did not pass for the following ASM disk groups: RECOC2,DATAC2 Failures were encountered during execution of CVU verification request "stage -pre crsinst". Disk group RDBMS compatibility setting ...FAILED DATAC2: PRVE-3180 : RDBMS compatibility for ASM disk group "DATAC2" is set to "11.2.0.4.0", which is less than the minimum supported value "19.0.0.0.0". RECOC2: PRVE-3180 : RDBMS compatibility for ASM disk group "RECOC2" is set to "11.2.0.4.0", which is less than the minimum supported value "19.0.0.0.0". RPM Package Manager database ...INFORMATION PRVG-11250 : The check "RPM Package Manager database" was not performed because it needs 'root' user privileges. Refer to My Oracle Support notes "2548970.1" for more details regarding errors PRVG-11250". CVU operation performed: stage -pre crsinst Date: Oct 29, 2024, 1:45:23 AM CVU version: Standalone 23.6.0.24.10 (100824x8664) Clusterware version: 19.0.0.0.0 CVU home: /u02/app/23.0.0.0/gridhome_1 Grid home: /u01/app/19.0.0.0/grid User: grid Operating system: Linux5.4.17-2136.322.6.4.el8uek.x86_64 *** Executing jobs which need to be run always... *** ----------------- Running prereqs_cleanup job Completed prereqs_cleanup job ******** PLUGIN EXECUTION FAILED ******** gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 230 2024/10/29 更新
  200. ASMの compatibleパラメーター [grid@shiro-1dkzm1 ~]$ sqlplus / as sysasm SQL*Plus: Release

    19.0.0.0.0 - Production on Tue Oct 29 01:49:57 2024 Version 19.23.0.0.0 Copyright (c) 1982, 2023, Oracle. All rights reserved. Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.23.0.0.0 SQL> select group_number,name,value from v$asm_attribute where name like '%compatible.rdbms%'; GROUP_NUMBER ------------ NAME -------------------------------------------------------------------------------- VALUE -------------------------------------------------------------------------------- 1 compatible.rdbms 11.2.0.4 2 compatible.rdbms 11.2.0.4.0 GROUP_NUMBER ------------ NAME -------------------------------------------------------------------------------- VALUE -------------------------------------------------------------------------------- gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 231 2024/10/29 更新
  201. ASMの compatibleパラメーター SQL> ALTER DISKGROUP DATAC2 SET ATTRIBUTE 'compatible.rdbms' =

    '19.0'; Diskgroup altered. SQL> ALTER DISKGROUP RECOC2 SET ATTRIBUTE 'compatible.rdbms' = '19.0'; Diskgroup altered. SQL> select group_number,name,value from v$asm_attribute where name like '%compatible.rdbms%'; GROUP_NUMBER ------------ NAME -------------------------------------------------------------------------------- VALUE -------------------------------------------------------------------------------- 1 compatible.rdbms 19.0 2 compatible.rdbms 19.0 GROUP_NUMBER ------------ NAME -------------------------------------------------------------------------------- VALUE -------------------------------------------------------------------------------- SQL> gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 232 2024/10/29 更新
  202. dbaascli grid upgrade --executePrereqs [root@shiro-1dkzm1 ~]# dbaascli grid upgrade --targetVersion

    23.6.0.24.10 --executePrereqs DBAAS CLI version 24.3.2.0.0 Executing command grid upgrade --targetVersion 23.6.0.24.10 --executePrereqs Job id: 979ca11a-a2a7-4b0e-ae7e-4b41e7539be4 Session log: /var/opt/oracle/log/grid/upgrade/dbaastools_2024-10-29_01-51-40-AM_323360.log Loading PILOT... Session ID of the current execution is: 4840 Log file location: /var/opt/oracle/log/grid/upgrade/pilot_2024-10-29_01-51-44-AM_323776 ----------------- Running initialize job Completed initialize job ----------------- Running validate_target_version job Completed validate_target_version job ----------------- Running check_locations_existence job Completed check_locations_existence job ----------------- Running check_locations_free_space job Completed check_locations_free_space job ----------------- Running check_os_version job Completed check_os_version job ----------------- Running check_patch_level job Completed check_patch_level job ----------------- Running check_crs_running_all_nodes job Completed check_crs_running_all_nodes job ----------------- 続く gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 233 2024/10/29 更新
  203. dbaascli grid upgrade --executePrereqs Running check_asm_rebalance_ops job Completed check_asm_rebalance_ops job

    ----------------- Running check_crs_state job Completed check_crs_state job ----------------- Running ocrcheck job Completed ocrcheck job ----------------- Running validate_databases job Completed validate_databases job ----------------- Running validate_image_download_configuration job Completed validate_image_download_configuration job ----------------- Running download_image job Completed download_image job ----------------- Running create_locations_first_node job Completed create_locations_first_node job ----------------- Running unpackage_image_first_node job Completed unpackage_image_first_node job ----------------- Running validate_image job Completed validate_image job ----------------- Running software_only_prereqs job Completed software_only_prereqs job ----------------- Running cluvfy_pre_upgrade job Completed cluvfy_pre_upgrade job ----------------- Running prereqs_cleanup job gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 234 2024/10/29 更新
  204. /etc/oratab [root@shiro-1dkzm1 ~]# cat /etc/oratab # # This file is

    used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third field indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # +ASM1:/u01/app/19.0.0.0/grid:N DB1028_2nc_kix:/u02/app/oracle/product/19.0.0.0/dbhome_1:Y [root@shiro-1dkzm1 ~]# [root@shiro-1dkzm1 ~]# df -Th Filesystem Type Size Used Avail Use% Mounted on 略 /dev/mapper/VGExaDbDisk.u01.20.img-LVDBDisk xfs 20G 3.6G 17G 18% /u01 /dev/mapper/VGExaDbDisk.u02_extra.img-LVDBDisk ext4 57G 33G 21G 62% /u02 /dev/mapper/VGExaDbDisk.grid19.0.0.0.240416.img-LVDBDisk xfs 50G 12G 39G 24% /u01/app/19.0.0.0/grid 略 [root@shiro-1dkzm1 ~]# gridのアップグレード 事前確認 Copyright © 2024, Oracle and/or its affiliates, 235 2024/10/29 更新
  205. dbaascli grid upgrade [root@shiro-1dkzm1 ~]# dbaascli grid upgrade --targetVersion 23.6.0.24.10

    DBAAS CLI version 24.3.2.0.0 Executing command grid upgrade --targetVersion 23.6.0.24.10 Job id: eb7447c2-2bb7-49f4-8bb6-5a397e4d3dc5 Session log: /var/opt/oracle/log/grid/upgrade/dbaastools_2024-10-29_02-02-17-AM_378968.log Loading PILOT... Session ID of the current execution is: 4842 Log file location: /var/opt/oracle/log/grid/upgrade/pilot_2024-10-29_02-02-21-AM_379440 ----------------- Running initialize job Completed initialize job ----------------- Running validate_target_version job Completed validate_target_version job ----------------- Running check_locations_existence job Completed check_locations_existence job ----------------- Running check_locations_free_space job Completed check_locations_free_space job ----------------- Running check_os_version job Completed check_os_version job ----------------- Running check_patch_level job Completed check_patch_level job ----------------- Running check_crs_running_all_nodes job Completed check_crs_running_all_nodes job ----------------- 続く gridのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 236 2024/10/29 更新
  206. dbaascli grid upgrade Running check_asm_rebalance_ops job Completed check_asm_rebalance_ops job -----------------

    Running check_crs_state job Completed check_crs_state job ----------------- Running ocrcheck job Completed ocrcheck job ----------------- Running validate_databases job Completed validate_databases job ----------------- Running validate_image_download_configuration job Completed validate_image_download_configuration job ----------------- Running download_image job Completed download_image job ----------------- Running create_locations_first_node job Completed create_locations_first_node job ----------------- Running unpackage_image_first_node job Completed unpackage_image_first_node job ----------------- Running validate_image job Completed validate_image job ----------------- Running software_only_prereqs job Completed software_only_prereqs job ----------------- 続く gridのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 237 2024/10/29 更新
  207. dbaascli grid upgrade Running cluvfy_pre_upgrade job Completed cluvfy_pre_upgrade job Acquiring

    write lock: _u01_app_19.0.0.0_grid Acquiring write lock: provisioning ----------------- Running pre_upgrade_lock_manager job Completed pre_upgrade_lock_manager job ----------------- Running update_limits job Completed update_limits job ----------------- Running unset_css_miscount job Completed unset_css_miscount job ----------------- Running setup_software_first_node job Completed setup_software_first_node job ----------------- Running create_locations_on_remote_nodes job Completed create_locations_on_remote_nodes job ----------------- Running copy_software_to_shared_location job Completed copy_software_to_shared_location job ----------------- Running copy_software_to_remote_nodes job Completed copy_software_to_remote_nodes job ----------------- Running remove_software_from_shared_location job Completed remove_software_from_shared_location job ----------------- 続く gridのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 238 2024/10/29 更新
  208. dbaascli grid upgrade Running inventory_rootscript job Completed inventory_rootscript job -----------------

    Running attach_home job Completed attach_home job ----------------- Running software_rootscript job Grid software install completed with oracle home: /u02/app/23.0.0.0/gridhome_1 Completed software_rootscript job ----------------- Running config_update job Completed config_update job ----------------- Running stop_databases-shiro-1dkzm1 job Completed stop_databases-shiro-1dkzm1 job ----------------- Running stop_tfa-shiro-1dkzm1 job Completed stop_tfa-shiro-1dkzm1 job ----------------- Running umount_acfs-shiro-1dkzm1 job Completed umount_acfs-shiro-1dkzm1 job ----------------- Running execute_rootscript-shiro-1dkzm1 job Completed execute_rootscript-shiro-1dkzm1 job ----------------- Running mount_acfs-shiro-1dkzm1 job Completed mount_acfs-shiro-1dkzm1 job ----------------- Running start_databases-shiro-1dkzm1 job Completed start_databases-shiro-1dkzm1 job ----------------- 続く gridのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 239 2024/10/29 更新
  209. dbaascli grid upgrade Running restore_tfa_status-shiro-1dkzm1 job Completed restore_tfa_status-shiro-1dkzm1 job -----------------

    Running stop_databases-shiro-1dkzm2 job Completed stop_databases-shiro-1dkzm2 job ----------------- Running stop_tfa-shiro-1dkzm2 job Completed stop_tfa-shiro-1dkzm2 job ----------------- Running umount_acfs-shiro-1dkzm2 job Completed umount_acfs-shiro-1dkzm2 job ----------------- Running execute_rootscript-shiro-1dkzm2 job Completed execute_rootscript-shiro-1dkzm2 job ----------------- Running mount_acfs-shiro-1dkzm2 job Completed mount_acfs-shiro-1dkzm2 job ----------------- Running start_databases-shiro-1dkzm2 job Completed start_databases-shiro-1dkzm2 job ----------------- Running restore_tfa_status-shiro-1dkzm2 job Completed restore_tfa_status-shiro-1dkzm2 job ----------------- Running config_tools job Completed config_tools job ----------------- Running cvu_post_checks job Completed cvu_post_checks job ----------------- 続く gridのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 240 2024/10/29 更新
  210. dbaascli grid upgrade Running check_crs_running_all_nodes_post_upgrade job Completed check_crs_running_all_nodes_post_upgrade job -----------------

    Running check_crs_version_post_upgrade job Completed check_crs_version_post_upgrade job ----------------- Running set_asm_cardinality job Completed set_asm_cardinality job ----------------- Running disable_diagsnap job Completed disable_diagsnap job ----------------- Running exacs_post_upgrade job Grid upgrade completed with oracle home: /u02/app/23.0.0.0/gridhome_1 Completed exacs_post_upgrade job ----------------- Running post_upgrade_lock_manager job Completed post_upgrade_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@shiro-1dkzm1 ~]# gridのアップグレード 実行 Copyright © 2024, Oracle and/or its affiliates, 241 2024/10/29 更新
  211. dbaascli grid upgrade [root@shiro-1dkzm1 ~]# dbaascli system getGridHomes DBAAS CLI

    version 24.3.2.0.0 Executing command system getGridHomes Job id: 6f8650d4-da26-4910-86dc-bb1cb8d8e909 Session log: /var/opt/oracle/log/system/getGridHomes/dbaastools_2024-10-29_02-30-56-AM_213436.log { "OraGI23Home1" : { "homePath" : "/u02/app/23.0.0.0/gridhome_1", ★GI 23ai はu02 "homeName" : "OraGI23Home1", "version" : "23.6.0.24.10", "createTime" : 1730167990241, "updateTime" : 1730167990241, "unifiedAuditEnabled" : true, "ohNodeLevelDetails" : { "shiro-1dkzm1" : { "nodeName" : "shiro-1dkzm1", "version" : "23.6.0.24.10", "patches" : [ "35221462", "37110283", "37037093", "37037083", "37037090", "37037086" ] }, "shiro-1dkzm2" : { "nodeName" : "shiro-1dkzm2", "version" : "23.6.0.24.10", "patches" : [ "35221462", "37110283", "37037093", "37037083", "37037090", "37037086" ] } }, "messages" : [ ] }, 続く gridのアップグレード 実行後確認 Copyright © 2024, Oracle and/or its affiliates, 242 2024/10/29 更新
  212. dbaascli grid upgrade "OraGiHome19000" : { "homePath" : "/u01/app/19.0.0.0/grid", "homeName"

    : "OraGiHome19000", "version" : "19.23.0.0.0", "createTime" : 1721922141474, "updateTime" : 1721922141474, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : { "shiro-1dkzm1" : { "nodeName" : "shiro-1dkzm1", "version" : "19.23.0.0.0", "patches" : [ "36195566", "36459041", "36460248", "36383196", "36240578", "36233343", "36233263" ] }, "shiro-1dkzm2" : { "nodeName" : "shiro-1dkzm2", "version" : "19.23.0.0.0", "patches" : [ "36195566", "36459041", "36460248", "36383196", "36240578", "36233343", "36233263" ] } }, "messages" : [ ] } } dbaascli execution completed [root@shiro-1dkzm1 ~]# gridのアップグレード 実行後確認 Copyright © 2024, Oracle and/or its affiliates, 243 2024/10/29 更新
  213. dbaascli grid upgrade [root@shiro-1dkzm1 ~]# cat /etc/oratab #Backup file is

    /u01/app/grid/crsdata/shiro-1dkzm1/output/oratab.bak.shiro-1dkzm1.grid line added by Agent # # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third field indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # DB1028_2nc_kix:/u02/app/oracle/product/19.0.0.0/dbhome_1:Y +ASM1:/u02/app/23.0.0.0/gridhome_1:N # line added by Agent [root@shiro-1dkzm1 ~]# [root@shiro-1dkzm1 ~]# df -Th Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/VGExaDbDisk.u01.20.img-LVDBDisk xfs 20G 3.8G 17G 19% /u01 /dev/mapper/VGExaDbDisk.u02_extra.img-LVDBDisk ext4 57G 36G 19G 67% /u02 /dev/mapper/VGExaDbDisk.grid19.0.0.0.240416.img-LVDBDisk xfs 50G 12G 39G 24% /u01/app/19.0.0.0/grid [root@shiro-1dkzm1 ~]# gridのアップグレード 実行後確認 Copyright © 2024, Oracle and/or its affiliates, 244 2024/10/29 更新
  214. dbaascli gridHome create [root@kara-vpvao1 ~]# dbaascli gridHome create --help DBAAS

    CLI version 24.3.2.0.0 Executing command gridHome create --help gridHome create - setup of Grid Infrastructure home. Usage: dbaascli gridHome create --version <value> [--resume [--sessionID <value>]] [--waitForCompletion <value>] 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@kara-vpvao1 ~]# Grid Home の作成 Copyright © 2024, Oracle and/or its affiliates, 245 2024/10/29 更新
  215. dbaascli gridHome create [root@kara-vpvao1 ~]# dbaascli gridHome create --version 23.6.0.24.10

    DBAAS CLI version 24.3.2.0.0 Executing command gridHome create --version 23.6.0.24.10 Job id: 0c4eec63-7375-49e1-a4a6-2de083d09229 Session log: /var/opt/oracle/log/gridHome/create/dbaastools_2024-10-29_02-56-36-AM_68673.log Loading PILOT... Session ID of the current execution is: 15244 Log file location: /var/opt/oracle/log/gridHome/create/pilot_2024-10-29_02-56-40-AM_69025 ----------------- Running initialize job Completed initialize job ----------------- Running check_location_existence job Completed check_location_existence job ----------------- Running check_os_version job Completed check_os_version job ----------------- Running create_locations job Completed create_locations job ----------------- Running prepare_download_config job Completed prepare_download_config job ----------------- Running download_image_on_first_node job Completed download_image_on_first_node job ----------------- Running check_locations_free_space job Completed check_locations_free_space job ----------------- 続く Grid Home の作成 Copyright © 2024, Oracle and/or its affiliates, 246 2024/10/29 更新
  216. dbaascli gridHome create Running unpack_image_on_first_node job Completed unpack_image_on_first_node job Acquiring

    write lock: _u02_app_23.0.0.0_gridhome_1 Acquiring write lock: provisioning ----------------- Running update_limits job Completed update_limits job ----------------- Running software_only_prereqs job Completed software_only_prereqs job ----------------- Running setup_grid_software_first_node job Completed setup_grid_software_first_node job ----------------- Running copy_software_to_remote_nodes job Completed copy_software_to_remote_nodes job ----------------- Running attach_home job Completed attach_home job ----------------- Running inventory_rootscript job Completed inventory_rootscript job ----------------- Running software_rootscript job Completed software_rootscript job Releasing lock: _u02_app_23.0.0.0_gridhome_1 Releasing lock: provisioning ----------------- Running generate_gridhome_metadata job Completed generate_gridhome_metadata job ----------------- Running generate_system_details job Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Grid Home の作成 Copyright © 2024, Oracle and/or its affiliates, 247 2024/10/29 更新
  217. dbaascli gridHome create [root@kara-vpvao1 ~]# dbaascli system getGridHomes DBAAS CLI

    version 24.3.2.0.0 Executing command system getGridHomes Job id: d481bce4-bda5-41de-a834-766c0a06701c Session log: /var/opt/oracle/log/system/getGridHomes/dbaastools_2024-10-29_02-59-38-AM_98688.log { "OraGI23Home1" : { "homePath" : "/u02/app/23.0.0.0/gridhome_1", "homeName" : "OraGI23Home1", "version" : "23.6.0.24.10", "createTime" : 1730170728627, "updateTime" : 1730170728627, "unifiedAuditEnabled" : true, "ohNodeLevelDetails" : { "kara-vpvao1" : { "nodeName" : "kara-vpvao1", "version" : "23.6.0.24.10", "patches" : [ "35221462", "37110283", "37037093", "37037083", "37037090", "37037086" ] }, "kara-vpvao2" : { "nodeName" : "kara-vpvao2", "version" : "23.6.0.24.10", "patches" : [ "35221462", "37110283", "37037093", "37037083", "37037090", "37037086" ] } }, "messages" : [ ] }, 続く Grid Home の作成 Copyright © 2024, Oracle and/or its affiliates, 248 2024/10/29 更新
  218. dbaascli gridHome create "wc_XYeOKPFGgYPByBB5LLC1PNPyZLqKgeup_20231127043106" : { "homePath" : "/u02/app/19.0.0.0/grid_1", "homeName"

    : "wc_XYeOKPFGgYPByBB5LLC1PNPyZLqKgeup_20231127043106", "version" : "19.22.0.0.0", "createTime" : 1715314955355, "updateTime" : 1715314955355, "unifiedAuditEnabled" : false, "ohNodeLevelDetails" : { "kara-vpvao1" : { "nodeName" : "kara-vpvao1", "version" : "19.22.0.0.0", "patches" : [ "36440449", "34697081", "35949090", "35967489", "35956421", "35943157", "33575402" ] }, "kara-vpvao2" : { "nodeName" : "kara-vpvao2", "version" : "19.22.0.0.0", "patches" : [ "36440449", "34697081", "35949090", "35967489", "35956421", "35943157", "33575402" ] } }, "messages" : [ ] } } dbaascli execution completed [root@kara-vpvao1 ~]# Grid Home の作成 Copyright © 2024, Oracle and/or its affiliates, 249 2024/10/29 更新
  219. dbaascli gridHome create GridHome追加作成時ではまだ oratab は元のまま [root@kara-vpvao1 ~]# cat /etc/oratab

    #Backup file is /u01/app/grid/crsdata/kara-vpvao1/output/oratab.bak.kara-vpvao1.oracle line added by Agent # # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third field indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # DB1017_9k6_kix:/u02/app/oracle/product/19.0.0.0/dbhome_1:N DB1032_c25_kix:/u02/app/oracle/product/19.0.0.0/dbhome_3:Y DB1106_552_kix:/u02/app/oracle/product/19.0.0.0/dbhome_9:Y DB11062_sxh_kix:/u02/app/oracle/product/19.0.0.0/dbhome_8:Y +ASM1:/u02/app/19.0.0.0/grid_1:Y [root@kara-vpvao1 ~]# Grid Home の作成 Copyright © 2024, Oracle and/or its affiliates, 250 2024/10/29 更新
  220. dbaascli grid upgrade 作成したGrid Home のパスを指定してプリチェック [root@kara-vpvao1 ~]# dbaascli grid

    upgrade --targetVersion 23.6.0.24.10 --targetHome /u02/app/23.0.0.0/gridhome_1 --executePrereqs DBAAS CLI version 24.3.2.0.0 Executing command grid upgrade --targetVersion 23.6.0.24.10 --targetHome /u02/app/23.0.0.0/gridhome_1 --executePrereqs Job id: 3ecc9599-08be-41ae-aa8e-483f2a96c45b Session log: /var/opt/oracle/log/grid/upgrade/dbaastools_2024-10-29_04-51-05-AM_311722.log Loading PILOT... Session ID of the current execution is: 15251 Log file location: /var/opt/oracle/log/grid/upgrade/pilot_2024-10-29_04-51-09-AM_312121 ----------------- Running initialize job Completed initialize job ----------------- Running validate_target_version job Completed validate_target_version job ----------------- Running check_locations_existence job Completed check_locations_existence job ----------------- Running validate_target_home job Completed validate_target_home job ----------------- Running check_locations_free_space job Completed check_locations_free_space job ----------------- Running check_os_version job Completed check_os_version job ----------------- Running check_patch_level job Completed check_patch_level job ----------------- 続く Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 251 2024/10/29 更新
  221. dbaascli grid upgrade Running check_crs_running_all_nodes job Completed check_crs_running_all_nodes job -----------------

    Running check_asm_rebalance_ops job Completed check_asm_rebalance_ops job ----------------- Running check_crs_state job Completed check_crs_state job ----------------- Running ocrcheck job Completed ocrcheck job ----------------- Running validate_databases job Completed validate_databases job ----------------- Running cluvfy_pre_upgrade job Completed cluvfy_pre_upgrade job dbaascli execution completed [root@kara-vpvao1 ~]# Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 252 2024/10/29 更新
  222. dbaascli grid upgrade [root@kara-vpvao1 ~]# dbaascli grid upgrade --targetVersion 23.6.0.24.10

    --targetHome /u02/app/23.0.0.0/gridhome_1 DBAAS CLI version 24.3.2.0.0 Executing command grid upgrade --targetVersion 23.6.0.24.10 --targetHome /u02/app/23.0.0.0/gridhome_1 Job id: 7dfc96f0-4d14-443f-b319-6a04310f9c3e Session log: /var/opt/oracle/log/grid/upgrade/dbaastools_2024-10-29_04-56-57-AM_358932.log Loading PILOT... Session ID of the current execution is: 15252 Log file location: /var/opt/oracle/log/grid/upgrade/pilot_2024-10-29_04-57-01-AM_359332 ----------------- Running initialize job Completed initialize job ----------------- Running validate_target_version job Completed validate_target_version job ----------------- Running check_locations_existence job Completed check_locations_existence job ----------------- Running validate_target_home job Completed validate_target_home job ----------------- Running check_locations_free_space job Completed check_locations_free_space job ----------------- Running check_os_version job Completed check_os_version job ----------------- Running check_patch_level job Completed check_patch_level job ----------------- 続く Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 253 2024/10/29 更新
  223. dbaascli grid upgrade Running check_crs_running_all_nodes job Completed check_crs_running_all_nodes job -----------------

    Running check_asm_rebalance_ops job Completed check_asm_rebalance_ops job ----------------- Running check_crs_state job Completed check_crs_state job ----------------- Running ocrcheck job Completed ocrcheck job ----------------- Running validate_databases job Completed validate_databases job ----------------- Running cluvfy_pre_upgrade job Completed cluvfy_pre_upgrade job Acquiring write lock: _u02_app_19.0.0.0_grid_1 Acquiring write lock: provisioning ----------------- Running pre_upgrade_lock_manager job Completed pre_upgrade_lock_manager job ----------------- Running config_update job Completed config_update job ----------------- Running stop_databases-kara-vpvao1 job Completed stop_databases-kara-vpvao1 job ----------------- 続く Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 254 2024/10/29 更新
  224. dbaascli grid upgrade Running stop_tfa-kara-vpvao1 job Completed stop_tfa-kara-vpvao1 job -----------------

    Running umount_acfs-kara-vpvao1 job Completed umount_acfs-kara-vpvao1 job ----------------- Running execute_rootscript-kara-vpvao1 job Completed execute_rootscript-kara-vpvao1 job ----------------- Running mount_acfs-kara-vpvao1 job Completed mount_acfs-kara-vpvao1 job ----------------- Running start_databases-kara-vpvao1 job Completed start_databases-kara-vpvao1 job ----------------- Running restore_tfa_status-kara-vpvao1 job Completed restore_tfa_status-kara-vpvao1 job ----------------- Running stop_databases-kara-vpvao2 job Completed stop_databases-kara-vpvao2 job ----------------- Running stop_tfa-kara-vpvao2 job Completed stop_tfa-kara-vpvao2 job ----------------- Running umount_acfs-kara-vpvao2 job Completed umount_acfs-kara-vpvao2 job ----------------- Running execute_rootscript-kara-vpvao2 job Completed execute_rootscript-kara-vpvao2 job ----------------- 続く Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 255 2024/10/29 更新
  225. dbaascli grid upgrade Running mount_acfs-kara-vpvao2 job Completed mount_acfs-kara-vpvao2 job -----------------

    Running start_databases-kara-vpvao2 job Completed start_databases-kara-vpvao2 job ----------------- Running restore_tfa_status-kara-vpvao2 job Completed restore_tfa_status-kara-vpvao2 job ----------------- Running config_tools job Completed config_tools job ----------------- Running cvu_post_checks job Completed cvu_post_checks job ----------------- Running check_crs_running_all_nodes_post_upgrade job Completed check_crs_running_all_nodes_post_upgrade job ----------------- Running check_crs_version_post_upgrade job Completed check_crs_version_post_upgrade job ----------------- Running set_asm_cardinality job Completed set_asm_cardinality job ----------------- Running disable_diagsnap job Completed disable_diagsnap job ----------------- Running exacs_post_upgrade job Grid upgrade completed with oracle home: /u02/app/23.0.0.0/gridhome_1 Completed exacs_post_upgrade job ----------------- 続く Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 256 2024/10/29 更新
  226. dbaascli grid upgrade Running post_upgrade_lock_manager job Completed post_upgrade_lock_manager job Releasing

    lock: _u02_app_19.0.0.0_grid_1 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 You have new mail in /var/spool/mail/root [root@kara-vpvao1 ~]# Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 257 2024/10/29 更新
  227. dbaascli grid upgrade [root@kara-vpvao1 ~]# cat /etc/oratab #Backup file is

    /u01/app/grid/crsdata/kara-vpvao1/output/oratab.bak.kara-vpvao1.grid line added by Agent # # This file is used by ORACLE utilities. It is created by root.sh # and updated by either Database Configuration Assistant while creating # a database or ASM Configuration Assistant while creating ASM instance. # A colon, ':', is used as the field terminator. A new line terminates # the entry. Lines beginning with a pound sign, '#', are comments. # # Entries are of the form: # $ORACLE_SID:$ORACLE_HOME:<N|Y>: # # The first and second fields are the system identifier and home # directory of the database respectively. The third field indicates # to the dbstart utility that the database should , "Y", or should not, # "N", be brought up at system boot time. # # Multiple entries with the same $ORACLE_SID are not allowed. # # DB1017_9k6_kix:/u02/app/oracle/product/19.0.0.0/dbhome_1:N DB1032_c25_kix:/u02/app/oracle/product/19.0.0.0/dbhome_3:Y DB1106_552_kix:/u02/app/oracle/product/19.0.0.0/dbhome_9:Y DB11062_sxh_kix:/u02/app/oracle/product/19.0.0.0/dbhome_8:Y +ASM1:/u02/app/23.0.0.0/gridhome_1:Y # line added by Agent [root@kara-vpvao1 ~]# Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 258 2024/10/29 更新
  228. dbaascli grid upgrade [root@kara-vpvao1 ~]# dbaascli grid getDetails DBAAS CLI

    version 24.3.2.0.0 Executing command grid getDetails Job id: aaa4d36b-aefc-42a8-a1fe-a204679b6909 Session log: /var/opt/oracle/log/grid/getDetails/dbaastools_2024-10-29_05- 45-05-AM_348783.log { "createTime" : 1730178294501, "updateTime" : 1730178294501, "activeVersion" : "23.0.0.0.0", "state" : "NORMAL", "scanListenerTCPPorts" : [ 1521 ], "scanListenerTCPSPorts" : [ 2484 ], "diskGroupDetails" : [ { "name" : "DATA", "redundancy" : "HIGH", "totalSize" : "4896GB", "freeSpace" : "3690GB" }, { "name" : "RECO", "redundancy" : "HIGH", "totalSize" : "1224GB", "freeSpace" : "312GB" }, { "name" : "SPR", "redundancy" : null, "totalSize" : null, "freeSpace" : null } ], "giNodeLevelDetails" : { "kara-vpvao1" : { "nodeName" : "kara-vpvao1", "homePath" : "/u02/app/23.0.0.0/gridhome_1", "version" : "23.6.0.24.10", "status" : null }, "kara-vpvao2" : { "nodeName" : "kara-vpvao2", "homePath" : "/u02/app/23.0.0.0/gridhome_1", "version" : "23.6.0.24.10", "status" : null } }, "messages" : [ ] } dbaascli execution completed [root@kara-vpvao1 ~]# Grid Home の作成後のアップグレード Copyright © 2024, Oracle and/or its affiliates, 259 2024/10/29 更新
  229. dbaascli gridHome delete [root@kara-vpvao1 ~]# dbaascli gridHome delete --gridHome /u01/app/19.0.0.0/grid

    DBAAS CLI version 24.3.2.0.0 Executing command gridHome delete --gridHome /u01/app/19.0.0.0/grid Job id: e7400c05-d033-4e6a-9d14-7a2b965b7d18 Session log: /var/opt/oracle/log/gridHome/delete/dbaastools_2024-10-29_02-29-28-AM_320036.log Loading PILOT... Session ID of the current execution is: 15242 Log file location: /var/opt/oracle/log/gridHome/delete/pilot_2024-10-29_02-29-31-AM_320758 ----------------- Running Plugin_initialization job Completed Plugin_initialization job ----------------- Running GI_deletion_prechecks job Completed GI_deletion_prechecks job Acquiring write lock: u01_app_19.0.0.0_grid Acquiring write lock: provisioning ----------------- Running GI_detach job Completed GI_detach job ----------------- Running GI_remove_directory job Completed GI_remove_directory job ----------------- Running Post_gi_deletion job Completed Post_gi_deletion job Releasing lock: u01_app_19.0.0.0_grid Releasing lock: provisioning ----------------- Running Generate_gihome_system_details job Acquiring native write lock: global_dbsystem_details_generation Releasing native lock: global_dbsystem_details_generation Completed Generate_gihome_system_details job dbaascli execution completed Grid Home の作成後、不要なGrid Home の削除 Copyright © 2024, Oracle and/or its affiliates, 260 2024/10/29 更新
  230. 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 ~]# PDBコマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 262 2024/2/19 更新
  231. 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 <value> { --pdbName <value> | --pdbUID <value> } Where: --dbname - Oracle database name. --pdbName | --pdbUID --pdbName - PDB name. --pdbUID - identifier of PDB. [root@taro-3nusm1 ~]# PDBコマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 264 2024/2/19 更新
  232. 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 ~]# PDBコマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 265 2024/2/19 更新
  233. 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 PDBのバウンス Copyright © 2024, Oracle and/or its affiliates, 266
  234. 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 PDBを停止 Copyright © 2024, Oracle and/or its affiliates, 267
  235. 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 PDBを停止 Copyright © 2024, Oracle and/or its affiliates, 268
  236. 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 <value> | --pdbUID <value> } --dbname <value> [--openMode <value>] [--startServices <value>] [--waitForCompletion <value>] [--setPDBRefreshModeNone [--skipPDBRefresh] [-- pdbAdminUserName <value>]] [--executePrereqs] [--resume [--sessionID <value>]] [--blobLocation <value>] 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 ~]# PDBのオープン Copyright © 2024, Oracle and/or its affiliates, 269 2024/2/19 更新
  237. 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 PDBのオープン Copyright © 2024, Oracle and/or its affiliates, 270
  238. 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 PDBのオープン Copyright © 2024, Oracle and/or its affiliates, 271
  239. 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 <value> --dbName <value> [--maxCPU <value>] [--maxSize <value>] [--pdbAdminUserName <value>] [--lockPDBAdminAccount <value>] [--resume [--sessionID <value>]] [--executePrereqs] [--waitForCompletion <value>] { [--blobLocation <value>] | [--standbyBlobFromPrimary <value>] } [--pdbKMSKeyVersionOCID <value>] 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 ~]# PDBの作成 Copyright © 2024, Oracle and/or its affiliates, 272 2024/2/19 更新
  240. 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 Plugin_initialization job Completed Plugin_initialization job ----------------- 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 ----------------- 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 PDBの作成 Copyright © 2024, Oracle and/or its affiliates, 274
  241. 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 <value> { --pdbName <value> | --pdbUID <value> } [--executePrereqs] [--waitForCompletion <value>] [--resume [--sessionID <value>]] [--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 ~]$ PDBの削除 Copyright © 2024, Oracle and/or its affiliates, 275
  242. 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 PDBの削除 Copyright © 2024, Oracle and/or its affiliates, 277
  243. 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 <value> { --pdbName <value> | --pdbUID <value> } Where: --dbname - Oracle database name. --pdbName | --pdbUID --pdbName - PDB name. --pdbUID - Identifier of PDB. PDBの詳細確認 Copyright © 2024, Oracle and/or its affiliates, 279
  244. 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 PDBの詳細確認 Copyright © 2024, Oracle and/or its affiliates, 280
  245. 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 <value> Where: --dbname - Oracle database name. CDB内のPDBの一覧 Copyright © 2024, Oracle and/or its affiliates, 281
  246. 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 CDB内のPDBの一覧 Copyright © 2024, Oracle and/or its affiliates, 282
  247. 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 <value> --dbName <value> [--targetPDBName <value>] [--powerLimit <value>] [--maxCPU <value>] [--maxSize <value>] [--resume [--sessionID <value>]] [--executePrereqs] [--waitForCompletion <value>] { [--blobLocation <value>] | [--standbyBlobFromPrimary <value>] } [--excludeUserTablespaces <value>] [--excludePDBData <value>] [--pdbAdminUserName <value>] [--lockPDBAdminAccount <value>] [-- sourcePDBServiceConvertList <value>] 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] [--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 同一CDB内のローカルクローンPDB作成 Copyright © 2024, Oracle and/or its affiliates, 283 2024/2/19 更新
  248. 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 Plugin_initialization job Completed Plugin_initialization job ----------------- 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 ----------------- 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 同一CDB内のローカルクローンPDB作成 Copyright © 2024, Oracle and/or its affiliates, 285
  249. 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 同一CDB内のローカルクローンPDB作成 作成後の確認 Copyright © 2024, Oracle and/or its affiliates, 286
  250. 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 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 ----------------- 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 同一CDB内のローカルクローンPDB作成 クローンのPDB名を指定して作成 Copyright © 2024, Oracle and/or its affiliates, 287
  251. 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" } ] <続く> 同一CDB内のローカルクローンPDB作成 クローン後の確認 Copyright © 2024, Oracle and/or its affiliates, 288
  252. 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 同一CDB内のローカルクローンPDB作成 クローン後の確認 Copyright © 2024, Oracle and/or its affiliates, 289
  253. 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 <value> --dbName <value> --sourceDBConnectionString <value> [--targetPDBName <value>] [--powerLimit <value>] [-- maxCPU <value>] [--maxSize <value>] [--resume [--sessionID <value>]] [--executePrereqs] [--waitForCompletion <value>] [--sourcePDBExportedTDEKeyFile <value>] { [--blobLocation <value>] | [--standbyBlobFromPrimary <value>] } [--excludeUserTablespaces <value>] [--excludePDBData <value>] [--pdbAdminUserName <value>] [--lockPDBAdminAccount <value>] [-- sourcePDBServiceConvertList <value>] [--refreshablePDB --refreshMode <value> [--refreshIntervalInMinutes <value>]] [--updateDBBlockCacheSize] { [--dblinkUsername <value> [--honorCaseSensitiveUserName]] | [--dbLinkName <value>] } Where: --pdbName - specifies source PDB name to clone. --dbName - specifies target database name. --sourceDBConnectionString - source database connection string in the format of <scan_name>:<scan_port>/<database_service_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.] 続く 別CDBへのリモートクローンPDB作成 コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 290 2024/2/19 更新
  254. 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 ~]# 別CDBへのリモートクローンPDB作成 コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 291 2024/2/19 更新
  255. 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)))) 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)))) 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]# 別CDBへのリモートクローンPDB作成 ソースデータベース(CDB)の接続記述子確認 Copyright © 2024, Oracle and/or its affiliates, 293
  256. 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)))) 別CDBへのリモートクローンPDB作成 ソースデータベース(CDB)の接続記述子確認 Copyright © 2024, Oracle and/or its affiliates, 294
  257. 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 Plugin_initialization job Enter REMOTE_DB_SYS_PASSWORD ************* Completed Plugin_initialization job ----------------- 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 ----------------- 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 別CDBへのリモートクローンPDB作成 Copyright © 2024, Oracle and/or its affiliates, 295
  258. 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 別CDBへのリモートクローンPDB作成 作成後の確認 Copyright © 2024, Oracle and/or its affiliates, 296
  259. 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 <value> --dbName <value> --sourceDBConnectionString <value> [--targetPDBName <value>] [--powerLimit <value>] [-- maxCpu <value>] [--maxSize <value>] [--resume [--sessionID <value>]] [--executePrereqs <value>] [--sourcePDBServices <value>] [--sourcePDBReadOnlyServices <value>] [--waitForCompletion <value>] [--primaryDBWalletTar <value>] Where: --pdbName - Specify source pdb name to relocate. --dbName - Specify target database name. --sourceDBConnectionString - Source database connection string in the format of <scan_name>:<scan_port>/<database_service_name>. [--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. ] リモートデータベースからローカルデータベースへのPDBのリロケート Copyright © 2024, Oracle and/or its affiliates, 297
  260. 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 <value> --dbName <value> --sourceDBConnectionString <value> [--targetPDBName <value>] [--powerLimit <value>] [-- maxCpu <value>] [--maxSize <value>] [--resume [--sessionID <value>]] [--executePrereqs] [--sourcePDBServices <value>] [--sourcePDBReadOnlyServices <value>] [-- waitForCompletion <value>] { [--blobLocation <value>] | [--standbyBlobFromPrimary <value>] } [--upgradePDB <value>] [--updateDBBlockCacheSize] { [--skipOpenPDB] | [--completePDBRelocate] } Where: --pdbName - specifies source PDB name to relocate. --dbName - specifies target database name. --sourceDBConnectionString - source database connection string in the format of <scan_name>:<scan_port>/<database_service_name>. [--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.] [--blobLocation | --standbyBlobFromPrimary] [--blobLocation - custom directory location where the standby blob file will be generated in a DG environment.] リモートデータベースからローカルデータベースへのPDBのリロケート Copyright © 2024, Oracle and/or its affiliates, 298
  261. 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 Plugin_initialization job Enter REMOTE_DB_SYS_PASSWORD ********** Completed Plugin_initialization job ----------------- 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 ----------------- 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 Register_ocids job Skipping. Job is detected as not applicable. ----------------- Running Generate_dbsystem_details job Completed Generate_dbsystem_details job dbaascli execution completed リモートデータベースからローカルデータベースへのPDBのリロケート Copyright © 2024, Oracle and/or its affiliates, 299
  262. 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 リモートデータベースからローカルデータベースへのPDBのリロケート リロケート後の確認 Copyright © 2024, Oracle and/or its affiliates, 300
  263. 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" } ] } ] dbaascli execution completed リモートデータベースからローカルデータベースへのPDBのリロケート リロケート後の確認 Copyright © 2024, Oracle and/or its affiliates, 301
  264. 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 <value> --dbName <value> --sourceDBConnectionString <value> [--targetPDBName <value>] [--refreshablePDB -- refreshMode <value> [--refreshIntervalInMinutes <value>]] { [--dblinkUsername <value>] | [--dbLinkName <value>] } Where: --pdbName - specifies source PDB name to clone. ソースのPDB名 --dbName - specifies target database name. ソースのDB名 --sourceDBConnectionString - source database connection string in the format of <scan_name>:<scan_port>/<database_service_name>. [--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] Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 302 2024/2/19 更新
  265. 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. SQL> Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates 303 2024/2/19 更新
  266. 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 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 304 2024/2/19 更新
  267. 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. ----------------- 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 305 2024/2/19 更新
  268. 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 ~]# Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 306 2024/2/19 更新
  269. 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 ----------------- 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 307 2024/2/19 更新
  270. 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 ----------------- 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 308 2024/2/19 更新
  271. 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 ~]# Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 309 2024/2/19 更新
  272. 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" }, 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 310 2024/2/19 更新
  273. 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 ~]# Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 311 2024/2/19 更新
  274. dbaascli pdb remoteClone --refreshablePDB Refreshable PDB remoteClone の作成 Copyright ©

    2024, Oracle and/or its affiliates, 312 2024/2/19 更新 作成された NEW_PDB5
  275. dbaascli pdb remoteClone --refreshablePDB Refreshable PDB remoteClone の作成 Copyright ©

    2024, Oracle and/or its affiliates, 313 2024/2/19 更新 Refreshable clone: Yes Open Mode: Mounted
  276. 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> Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 314 2024/2/19 更新
  277. 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 <value> { --pdbName <value> | --pdbUID <value> } [--waitForCompletion <value>] 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 ~]# Refreshable PDB のrefresh Copyright © 2024, Oracle and/or its affiliates, 315 2024/2/19 更新
  278. 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 ~]# Refreshable PDB のrefresh Copyright © 2024, Oracle and/or its affiliates, 316 2024/2/19 更新
  279. 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 Refreshable PDB のrefresh Copyright © 2024, Oracle and/or its affiliates, 317 2024/2/19 更新
  280. 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 <value> | --pdbUID <value> } --dbname <value> [--openMode <value>] [--startServices <value>] [--waitForCompletion <value>] [--setPDBRefreshModeNone [--skipPDBRefresh] [-- pdbAdminUserName <value>]] [--executePrereqs] [--resume [--sessionID <value>]] [--blobLocation <value>] 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 ~]# Refreshable PDB の Regular PDB へのコンバート Copyright © 2024, Oracle and/or its affiliates, 318 2024/2/19 更新
  281. 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 ----------------- 続く Refreshable PDB の Regular PDB へのコンバート Copyright © 2024, Oracle and/or its affiliates, 319 2024/2/19 更新
  282. 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 ~]# Refreshable PDB の Regular PDB へのコンバート Copyright © 2024, Oracle and/or its affiliates, 320 2024/2/19 更新
  283. 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" }, 続く Refreshable PDB の Regular PDB へのコンバート Copyright © 2024, Oracle and/or its affiliates, 321 2024/2/19 更新
  284. 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 ~]# Refreshable PDB の Regular PDB へのコンバート Copyright © 2024, Oracle and/or its affiliates, 322 2024/2/19 更新
  285. 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> Refreshable PDB の Regular PDB へのコンバート Copyright © 2024, Oracle and/or its affiliates, 323 2024/2/19 更新
  286. 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 *************** 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 324 2024/2/19 更新
  287. 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 ----------------- 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 325 2024/2/19 更新
  288. 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 ~]# Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 326 2024/2/19 更新
  289. 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" }, 続く Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 327 2024/2/19 更新
  290. 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 ~]# Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 328 2024/2/19 更新
  291. 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> Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 329 2024/2/19 更新
  292. 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 ----------------- Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 330 2024/2/19 更新
  293. 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 ~]# Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 331 2024/2/19 更新
  294. 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" }, 続き Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 332 2024/2/19 更新
  295. 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 ~]# Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 333 2024/2/19 更新
  296. 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> Refreshable PDB remoteClone の作成 Copyright © 2024, Oracle and/or its affiliates, 334 2024/2/19 更新
  297. 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 <value> Where: --dbname - Oracle database name. CDB内のPDBの一覧 Copyright © 2024, Oracle and/or its affiliates, 335 22.2.1.0.1 新機能
  298. 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" } ], "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 CDB内のPDBの一覧 Copyright © 2024, Oracle and/or its affiliates, 336 22.2.1.0.1 新機能
  299. 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 <value> { --list [--json <value>] | --start { [--level0] | [--level1] | [--archival --tag <value>] } | --delete --backupTag <value> | --status --uuid <value> | --getBackupReport --tag <value> --json <value> | --configure { --configFile <value> | --enableRTRT | --disableRTRT } | --getConfig [--configFile <value>] } 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 <value> --status --uuid <value> --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. ] データベースのバックアップ コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 338
  300. dbaascli database backup --help [root@shiro-1dkzm1 ~]# dbaascli database backup --help

    DBAAS CLI version 24.3.1.0.0 Executing command database backup --help database backup - performs database backup operations. Usage: dbaascli database backup --dbname <value> { --list { [--backupType <value>] | [--json <value>] } | --start [--level0] [--level1] { [--archival --tag <value>] | [--archivelog] } | --delete --backupTag <value> | --status --uuid <value> [--json <value>] | --getBackupReport { --tag <value> | --latest } --json <value> | --configure { --configFile <value> | --enableRTRT | --disableRTRT | --disableCatalog | --deleteImmutableConfiguration } データベースのバックアップ コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 339 2024/8/29 更新
  301. dbaascli database backup --help | --getConfig [--configFile <value>] | --validate

    [--untilTime <value>] | --showHistory [--all] | --getSchedules } Where: --dbname - Oracle database name. --list | --start | --delete | --status | --getBackupReport | --configure | --getConfig | --validate | --showHistory | --getSchedules --list - returns database backup information. [--backupType | --json] [--backupType - specifies backupType (REGULAR-L0 | REGULAR-L1 | ARCHIVELOG | LONGTERM). ] [--json - specifies file Name for JSON output. ] --start - begins database backup. [--level0 - creates a Level-0 (full) backup. ] [--level1 - creates a Level-1 (incremental) backup. ] [--archival | --archivelog] [--archival - creates an archival full backup. ] --tag - specifies backup tag. [--archivelog ] --delete - deletes Archival backup. --backupTag - specifies backup tag to delete. --status - displays the details about a backup job process. --uuid - unique identifier of the backup operation. Input format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. [--json - specifies file Name for JSON output. ] --getBackupReport - returns BackupReport. --tag | --latest --tag - specifies backup tag. --latest - returns latest backup report (all types of database backup). --json - specifies file Name for JSON output. 続く データベースのバックアップ コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 340 2024/8/29 更新
  302. dbaascli database backup --help 続き --configure - configures database for

    backup. --configFile | --enableRTRT | --disableRTRT | --disableCatalog | --deleteImmutableConfiguration --configFile - specifies database backup configuration file. --enableRTRT - enable Real Time Redo Transport. --disableRTRT - disable Real Time Redo Transport. --disableCatalog - disable recovery catalog. --deleteImmutableConfiguration --getConfig - returns database backup configuration. [--configFile - specifies database backup configuration file. ] --validate - validates that backups are complete and corruption-free. [--untilTime - validates from closest Level-0 (full) backup until time provided. Input format: DD-MON-YYYY HH24:MI:SS.] --showHistory - displays history of backup operations. [--all - displays all backup operations. ] --getSchedules - return all backup schedules for a given database. [root@shiro-1dkzm1 ~]# データベースのバックアップ コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 341 2024/8/29 更新
  303. 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 バックアップ構成情報の取得 Copyright © 2024, Oracle and/or its affiliates, 342
  304. dbaascli database backup --getConfig [root@orcl0329-pfutx1 ~]# cat /tmp/configfile_1.txt #### ####

    This is the Backup config for the DB : dbcli01 #### Please refer to <link> 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= <続く> バックアップ構成情報の取得 Copyright © 2024, Oracle and/or its affiliates, 343
  305. 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= <続く> バックアップ構成情報の取得 Copyright © 2024, Oracle and/or its affiliates, 344
  306. 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= バックアップ構成情報の取得 Copyright © 2024, Oracle and/or its affiliates, 345
  307. 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 バックアップ構成情報の取得 Copyright © 2024, Oracle and/or its affiliates, 346
  308. dbaascli database backup --configure バックアップ構成情報の設定例 – オブジェクトストレージにバックアップを保存するケース Copyright © 2024,

    Oracle and/or its affiliates, 347 # vi /tmp/tmp/configfile_1.txt # cat /tmp/configfile_1.txt (※編集箇所抜粋) bkup_cron_entry=yes bkup_oss=yes bkup_oss_url=https://swiftobjectstorage.ap-tokyo-1.oraclecloud.com/v1/xxxxx/bucket-tky [email protected] bkup_oss_passwd=_G>4W9IY76xqX3XwR}s# bkup_oss_recovery_window=15 bkup_daily_time=06:45 # chmod 600 /tmp/configfile_1.txt # ll /tmp/configfile_1.txt -rw------- 1 root root 3609 Mar 30 00:24 /tmp/configfile_1.txt Object Storage への バックアップを有効化 バックアップ先の Object Storage の URL バックアップ先の Object Storage へのアクセス・ユー ザー名 認証トークン Object Storage へのバック アップの保持期間 毎日の自動バックアップ実行 時刻 自動バックアップ構成の 有効化
  309. dbaascli database backup --configure バックアップ構成情報の設定例 – ローカルディスクにバックアップを保存するケース Copyright © 2024,

    Oracle and/or its affiliates, 348 # vi /tmp/tmp/configfile_1.txt # cat /tmp/configfile_1.txt (※編集箇所抜粋) bkup_cron_entry=yes bkup_disk=yes bkup_disk_recovery_window=15 bkup_daily_time=06:45 # chmod 600 /tmp/configfile_1.txt # ll /tmp/configfile_1.txt -rw------- 1 root root 3609 Mar 30 00:30 /tmp/configfile_1.txt ローカルディスクへの バックアップを有効化 ローカルディスクへのバックアッ プの保持期間 毎日の自動バックアップ実行 時刻 自動バックアップ構成の 有効化
  310. 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 バックアップ構成情報の設定 Copyright © 2024, Oracle and/or its affiliates, 349
  311. 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 バックアップ構成情報の設定 Copyright © 2024, Oracle and/or its affiliates, 350
  312. 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 バックアップの取得 Copyright © 2024, Oracle and/or its affiliates, 351
  313. 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 バックアップ実施状況の確認(実行中) Copyright © 2024, Oracle and/or its affiliates, 352
  314. 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 TICKET ] dbaascli execution completed バックアップ実施状況の確認(実行完了後) Copyright © 2024, Oracle and/or its affiliates, 353
  315. 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 バックアップの一覧 Copyright © 2024, Oracle and/or its affiliates, 354
  316. [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 level0 は内蔵ディスクグループ(FRA)には取得できない Copyright © 2024, Oracle and/or its affiliates, 355
  317. dbaascli database backup --start [root@shiro-1dkzm1 ~]# dbaascli database backup --dbname

    DB0726 --start --archivelog DBAAS CLI version 24.3.1.0.0 Executing command database backup --dbname DB0726 --start --archivelog Session log: /var/opt/oracle/log/DB0726/database/backup/dbaastools_2024-08-29_02-32-58-AM_324391.log logfile:/var/opt/oracle/log/dtrs/dcs-dtrs.0.*.log UUID f4470872-07d8-42ad-84da-e2e912a01c36 for this backup dbaascli execution completed [root@shiro-1dkzm1 ~]# dbaascli database backup --dbname DB0726 --status --uuid f4470872-07d8-42ad-84da-e2e912a01c36 DBAAS CLI version 24.3.1.0.0 Executing command database backup --dbname DB0726 --status --uuid f4470872-07d8-42ad-84da-e2e912a01c36 Session log: /var/opt/oracle/log/DB0726/database/backup/dbaastools_2024-08-29_02-36-08-AM_340551.log [UUID -> f4470872-07d8-42ad-84da-e2e912a01c36 [STATE -> Success [ACTION -> Create Archive Log Backup [STARTED -> Thu Aug 29 02:33:00 UTC 2024 [ENDED -> Thu Aug 29 02:34:01 UTC 2024 [TAG -> DBAASTOOLS_29_08_2024_023301 [PCT -> 100 [LOG -> Please verify logs at:/var/opt/oracle/log/dtrs/dcs-dtrs.0.*.log dbaascli execution completed [root@shiro-1dkzm1 ~]# dbaascli database backup --dbname DB0726 --list DBAAS CLI version 24.3.1.0.0 Executing command database backup --dbname DB0726 --list Session log: /var/opt/oracle/log/DB0726/database/backup/dbaastools_2024-08-29_02-50-40-AM_14885.log Backup Tag Completion Date (UTC) Type -------------------------- --------------------------- ------------------------- DBTRegular-L01724832982403QyN 08/28/2024 08:31:23 full DBTRegular-L11724858026228pcf 08/28/2024 15:18:13 incremental Archivelog バックアップの取得 Copyright © 2024, Oracle and/or its affiliates, 356 2024/8/29 更新
  318. dbaascli database backup --start RMAN> list backup summary; List of

    Backups =============== Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag ------- -- -- - ----------- --------------- ------- ------- ---------- --- 1 B F A DISK 25-JUL-24 1 1 NO TAG20240725T235858 略 254 B A A SBT_TAPE 29-AUG-24 1 1 NO DBAASTOOLS_29_08_2024_023301 255 B A A SBT_TAPE 29-AUG-24 1 1 NO DBAASTOOLS_29_08_2024_023301 256 B F A SBT_TAPE 29-AUG-24 1 1 YES DBAASTOOLS_29_08_2024_023301 257 B F A SBT_TAPE 29-AUG-24 1 1 YES DBAASTOOLS_29_08_2024_023301 258 B F A SBT_TAPE 29-AUG-24 1 1 YES TAG20240829T023332 RMAN> Archivelog バックアップの取得 Copyright © 2024, Oracle and/or its affiliates, 357 2024/8/29 更新
  319. dbaascli database backup --start RMAN> list backup of archivelog all;

    List of Backup Sets =================== 略 BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ --------------- 254 256.00K SBT_TAPE 00:00:03 29-AUG-24 BP Key: 254 Status: AVAILABLE Compressed: NO Tag: DBAASTOOLS_29_08_2024_023301 Handle: DBAASTOOLS_29_08_2024_023301_arc_DB0726_2315636853_7v33l6rm_255_1_1_20240829_1178246006_set255 Media: swiftobjects~.ap-osaka- 1.oraclecloud.com/v~/bRqhgku3QnUwrGuDozZK List of Archived Logs in backup set 254 Thrd Seq Low SCN Low Time Next SCN Next Time ---- ------- ---------- --------- ---------- --------- 1 46 11618147 29-AUG-24 11619080 29-AUG-24 BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ --------------- 255 256.00K SBT_TAPE 00:00:03 29-AUG-24 BP Key: 255 Status: AVAILABLE Compressed: NO Tag: DBAASTOOLS_29_08_2024_023301 Handle: DBAASTOOLS_29_08_2024_023301_arc_DB0726_2315636853_7u33l6rm_254_1_1_20240829_1178246006_set254 Media: swiftobjects~.ap-osaka- 1.oraclecloud.com/v~/bRqhgku3QnUwrGuDozZK List of Archived Logs in backup set 255 Thrd Seq Low SCN Low Time Next SCN Next Time ---- ------- ---------- --------- ---------- --------- 2 47 11618151 29-AUG-24 11619076 29-AUG-24 RMAN> Archivelog バックアップの取得 Copyright © 2024, Oracle and/or its affiliates, 358 2024/8/29 更新
  320. 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 <value> { --start { --untilTime <value> | --untilSCN <value> | --latest | --tag <value> } | --status --uuid <value> } 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 <value> データベースのリカバー Copyright © 2024, Oracle and/or its affiliates, 359
  321. 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 データベースのリカバー Copyright © 2024, Oracle and/or its affiliates, 360
  322. 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 -> ORA-01034: ORACLE not available2022-03-30 09:36:18.271454 - API:: DB Status : 0 [LOG -> 2022-03-30 09:36:30.289610 - API:: Checking for PFILE in file system... [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. <続く> データベースのリカバー 確認(完了後) Copyright © 2024, Oracle and/or its affiliates, 361
  323. 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 データベースのリカバー 確認 Copyright © 2024, Oracle and/or its affiliates, 362
  324. dbaascli pdb backup --help [root@orcl0329-pfutx1 ~]# dbaascli pdb backup --help

    DBAAS CLI version 22.1.1.1.0 Executing command pdb backup --help pdb backup - Performs PDB backup operations. Usage: dbaascli pdb backup --dbname <value> --pdbName <value> { --start { [--level1] | [--archival --tag <value>] } | --delete --backupTag <value> | --status --uuid <value> | --getBackupReport --tag <value> --json <value> | --list [--json <value>] } 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. --status --uuid <value> --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. ] PDBのバックアップ Copyright © 2024, Oracle and/or its affiliates, 363
  325. 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 PDBのバックアップ Copyright © 2024, Oracle and/or its affiliates, 364
  326. 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 -> 3f8e2b36b08211ec9717020017011f98 [DBNAME -> 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 -> 2022-03-30 23:40:19.778386 - API:: All requested tasks are completed [ END TICKET ] dbaascli execution completed PDBバックアップ実施状況の確認 Copyright © 2024, Oracle and/or its affiliates, 365
  327. 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 ~]# PDBバックアップ取得状況の確認 Copyright © 2024, Oracle and/or its affiliates, 366
  328. 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 <value> --pdbName <value> { --start { --untilTime <value> | --untilSCN <value> | --latest | --tag <value> } | --status --uuid <value> } 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 <value> PDBのリカバー Copyright © 2024, Oracle and/or its affiliates, 367
  329. dbaascli pdb recover --start [root@orcl0329-pfutx1 ~]# dbaascli pdb recover --dbname

    dbcli01 --pdbname DBCLI01PDB01 --start --latest 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 PDBのリカバー Copyright © 2024, Oracle and/or its affiliates, 368
  330. dbaascli pdb recover --status [root@orcl0329-pfutx1 ~]# dbaascli pdb recover --dbname

    dbcli01 --pdbname DBCLI01PDB01 --status --uuid 4e0a7678b08311ecbd14020017011f98 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 PDBのリカバー 確認 Copyright © 2024, Oracle and/or its affiliates, 369
  331. 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. Data Guard コマンド一覧 Copyright © 2024, Oracle and/or its affiliates, 371
  332. 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 <value>] [--short <value>] [--dbname <value>] Where: [--details - more information related to dataguard. ] [--short - short info like primary standby, congiuration name. ] [--dbname - Oracle database name. ] Data Guard のステータス Copyright © 2024, Oracle and/or its affiliates, 372
  333. 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: 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 Data Guard のステータス プライマリ Copyright © 2024, Oracle and/or its affiliates, 373
  334. 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: 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 Data Guard のステータス スタンバイ Copyright © 2024, Oracle and/or its affiliates, 374
  335. 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: 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 Data Guard のステータス スイッチオーバー後 旧プライマリ Copyright © 2024, Oracle and/or its affiliates, 375
  336. 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: 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 Data Guard のステータス スイッチオーバー後 旧スタンバイ Copyright © 2024, Oracle and/or its affiliates, 376
  337. 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 <value>] [--password <value>] [--dbname <value>] Where: [--force - force failover to Standby (yes|no). ] [--password - password for sys user. ] [--dbname - Oracle database name. ] Data Guard フェイルオーバー Copyright © 2024, Oracle and/or its affiliates, 377
  338. 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 Data Guard フェイルオーバー Copyright © 2024, Oracle and/or its affiliates, 378
  339. 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 Data Guard フェイルオーバー後のステータス 新プライマリ Copyright © 2024, Oracle and/or its affiliates, 379
  340. 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 <value>] [--dbname <value>] Where: [--password - password for sys user. ] [--dbname - Oracle database name. ] Data Guard フェイルオーバー後、旧プライマリをスタンバイへ Copyright © 2024, Oracle and/or its affiliates, 380
  341. 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 Data Guard フェイルオーバー後、旧プライマリをスタンバイへ Copyright © 2024, Oracle and/or its affiliates, 381
  342. 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: 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 Data Guard reinstate のステータス スタンバイ Copyright © 2024, Oracle and/or its affiliates, 382
  343. 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 <value>] [--dbname <value>] Where: [--password - password for sys user. ] [--dbname - Oracle database name. ] Data Guard のスイッチオーバー Copyright © 2024, Oracle and/or its affiliates, 383
  344. 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 Data Guard のスイッチオーバー Copyright © 2024, Oracle and/or its affiliates, 384
  345. 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: 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 Data Guard reinstate のステータス スタンバイ Copyright © 2024, Oracle and/or its affiliates, 385
  346. 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 <value>] [--iperf --remoteNodes <value>] [--type <value>] 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. ] Data Guard のヘルスチェック Copyright © 2024, Oracle and/or its affiliates, 386
  347. 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 '<GIHOME>/bin/srvctl start scan -n <nodename>' NOTE: Dependent checks might not have run due to above exceptions. Fix them and re-run health check Done addstby checks...! Data Guard のヘルスチェック Copyright © 2024, Oracle and/or its affiliates, 387
  348. 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 <value>] [--remoteNodes <value>] [--json <value>] 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.] Data Guard のベリファイ Copyright © 2024, Oracle and/or its affiliates, 388
  349. 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 <続く> Data Guard のベリファイ Copyright © 2024, Oracle and/or its affiliates, 389
  350. 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 | '---------------------------------+------------------------------------------------------------------' <続く> Data Guard のベリファイ Copyright © 2024, Oracle and/or its affiliates, 390
  351. 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 | '----------------------------------------+---------' <続く> Data Guard のベリファイ Copyright © 2024, Oracle and/or its affiliates, 391
  352. 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 | '-----------+----------------------------------------------------------------------------------------' Data Guard のベリファイ Copyright © 2024, Oracle and/or its affiliates, 392
  353. 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 <value>] [--dbname <value>] Where: [--action - inputs action to be performed on AWR.] [--dbname - Oracle database name. ] Data Guard スタンバイ環境のAWR生成をプライマリから実施 Copyright © 2024, Oracle and/or its affiliates, 393
  354. 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 <value> --standbyType <value> [--standbyName <value>] 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.] Data Guard スタンバイスナップショットへの変換 Copyright © 2024, Oracle and/or its affiliates, 394
  355. 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 <value> { --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. Data Guard redo 適用の設定確認 Copyright © 2024, Oracle and/or its affiliates, 395
  356. 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 Data Guard redo 適用の設定確認 Copyright © 2024, Oracle and/or its affiliates, 396
  357. 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 Data Guard redo 適用の設定確認 Copyright © 2024, Oracle and/or its affiliates, 397
  358. 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 Data Guard redo 適用の設定確認 Copyright © 2024, Oracle and/or its affiliates, 398
  359. 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 <value> Where: --attributes - Contains the DG Automation attributes that are to be modified. Takes comma separated values of format <attribute=value>. Attributes must be predefined in DG configuration file. Data Guard の設定変更 Copyright © 2024, Oracle and/or its affiliates, 399 22.2.1.0.1 新機能
  360. 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 <value>] Where: [--attribute - Specifies a DG Automation attribute to be shown. Attribute must be predefined in DG configuration file.] Data Guard の設定確認 Copyright © 2024, Oracle and/or its affiliates, 400 22.2.1.0.1 新機能
  361. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 402 2024/2/19 更新
  362. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 403 2024/2/19 更新
  363. 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 <value> Where: --dbname - Oracle database name. [root@taro-3nusm1 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 404 2024/2/19 更新
  364. 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: <open> 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 Copyright © 2024, Oracle and/or its affiliates, 405 2024/2/19 更新
  365. 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: <open> keystore type: hsm Instance is a CDB with PDB's: PDB1 TDE configuration matches with CDB on: PDB1 dbaascli execution completed [root@kara-vpvao1 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 406 2024/2/19 更新
  366. 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 <value> [--infoFilePath <value>] Where: --dbname - Oracle database name. [--infoFilePath - specifies the absolute path of the file where the results will be saved. ] [root@taro-3nusm1 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 407 2024/2/19 更新
  367. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 408 2024/2/19 更新
  368. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 410 2024/2/19 更新
  369. 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 <value> [--infoFilePath <value>] Where: --dbname - Oracle database name. [--infoFilePath - specifies the absolute path of the file where the results will be saved. ] [root@taro-3nusm1 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 412 2024/2/19 更新
  370. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 413 2024/2/19 更新
  371. dbaascli tde getHSMKeys TDE Copyright © 2024, Oracle and/or its

    affiliates, 414 2024/2/19 更新 primary_kms_key_ocid key_version_ocid PDB1用 key_version_ocid CDB用
  372. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 415 2024/2/19 更新
  373. 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 <value> Where: --dbname - Oracle database name. [root@taro-3nusm1 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 416 2024/2/19 更新
  374. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 417 2024/2/19 更新
  375. 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 <value> [--dbname <value>] [--waitForCompletion <value>] 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 コマンドの機能 TDE Copyright © 2024, Oracle and/or its affiliates, 418 2024/2/19 更新
  376. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 419 2024/2/19 更新
  377. dbaascli tde getMKIDForKeyVersionOCID TDE Copyright © 2024, Oracle and/or its

    affiliates, 420 2024/2/19 更新 --kmsKeyVersionOCID に指定するのは DB の Encryption Key に見え る ocid ではない (ocid1.key.xx)
  378. dbaascli tde getMKIDForKeyVersionOCID TDE Copyright © 2024, Oracle and/or its

    affiliates, 421 2024/2/19 更新 --kmsKeyVersionOCID に指定するのは DB の Encryption Key の “Versions” に見える Key Version の ocid (ocid1.keyversion.xx) DB の Master Key の encryption key で見える OCID の Key
  379. 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 <value> | --okvServer <value> --okvAdminUserName <value> [--okvServerRestPort <value>] } --dbname <value> [--hsmKeystoreConfigType <value>] [--skipPatchCheck <value>] [--executePrereqs] [--primarySuc <value>] { [--resume [--sessionID <value>]] | [--revert [--sessionID <value>]] } [--waitForCompletion <value>] 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] [--sessionID - to resume a specific session id.] [--revert - to rollback the previous operation] TDE Copyright © 2024, Oracle and/or its affiliates, 422 2024/2/19 更新
  380. 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 F ULLY_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> TDE Copyright © 2024, Oracle and/or its affiliates, 423 2024/2/19 更新
  381. 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> TDE Copyright © 2024, Oracle and/or its affiliates, 424 2024/2/19 更新
  382. dbaascli tde fileToHSM TDE Copyright © 2024, Oracle and/or its

    affiliates, 425 2024/2/19 更新 key 作成直後は key version は一つのみ 登録する予定の key の OCID (これを --kmsKeyOCID に指定する)
  383. 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 ----------------- Running Update_creg job Skipping. Job is detected as not applicable. TDE Copyright © 2024, Oracle and/or its affiliates, 426 2024/2/19 更新
  384. 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 Completed Update_creg job ----------------- TDE Copyright © 2024, Oracle and/or its affiliates, 427 2024/2/19 更新
  385. 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: <open> 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: <open> keystore type: hsm Instance is a CDB with PDB's: PDB1 TDE configuration matches with CDB on: PDB1 dbaascli execution completed [root@taro-3nusm1 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 428 2024/2/19 更新
  386. dbaascli tde fileToHSM 実施前 SQL> select * from v$encryption_wallet; WRL_TYPE

    WRL_PARAMETER STATUS WALLET_TYPE WALLET_ORDER KEYSTORE_MODE F ULLY_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 selected. SQL> WALLET_TYPE = OKV が追加された WALLET_ORDER が OKV が PRIMARY になる TDE Copyright © 2024, Oracle and/or its affiliates, 429 2024/2/19 更新
  387. 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", "con_id" : "3", "age_days" : "0", TDE Copyright © 2024, Oracle and/or its affiliates, 430 2024/2/19 更新
  388. 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 が変更 TDE Copyright © 2024, Oracle and/or its affiliates, 431 2024/2/19 更新
  389. 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" } } } dbaascli execution completed TDE Copyright © 2024, Oracle and/or its affiliates, 432 2024/2/19 更新
  390. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 433 2024/2/19 更新
  391. dbaascli tde fileToHSM TDE Copyright © 2024, Oracle and/or its

    affiliates, 434 2024/2/19 更新 key 登録後は key version が二つ追加されて いる 登録した key の OCID
  392. dbaascli tde fileToHSM TDE Copyright © 2024, Oracle and/or its

    affiliates, 435 2024/2/19 更新 Encryption Key OCID が表示されるようになっ た
  393. 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 <value> --secondaryKmsKeyOCID <value> [--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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 436 2024/2/19 更新
  394. dbaascli tde addSecondaryHSMKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 437 2024/2/19 更新 key 作成直後は key version は一つのみ 追加登録する予定の key exacs-key の OCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7g f6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2 f4q (これを --SecondarykmsKeyOCID に指 定する)
  395. 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 ~]# 出来たぽい? TDE Copyright © 2024, Oracle and/or its affiliates, 438 2024/2/19 更新
  396. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 439 2024/2/19 更新
  397. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 440 2024/2/19 更新
  398. 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 <value> --primaryKMSKeyOCID <value> [--allStandbyPrepared] [--bounceDatabase] [--executePrereqs] [--resume [--sessionID <value>]] 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 441 2024/2/19 更新
  399. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 442 2024/2/19 更新
  400. 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 続き TDE Copyright © 2024, Oracle and/or its affiliates, 443 2024/2/19 更新
  401. 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は再起動する TDE Copyright © 2024, Oracle and/or its affiliates, 444 2024/2/19 更新
  402. dbaascli tde setPrimaryHSMKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 445 2024/2/19 更新 key 作成直後は key version は一つのみだっ たのが二つ追加された primary に変更した key exacs-key の OCID ocid1.key.oc1.ap-osaka- 1.dnq4fgnmaaen2.abvwsljrvq7o6two2lo7g f6bueqcau6xpwje5qqs3rwu7ruzp3eyebgv2 f4q (これを --primarykmsKeyOCID に指定 した)
  403. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 446 2024/2/19 更新
  404. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 447 2024/2/19 更新
  405. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 448 2024/2/19 更新
  406. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 449 2024/2/19 更新
  407. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 450 2024/2/19 更新
  408. dbaascli tde setPrimaryHSMKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 451 2024/2/19 更新 Encryption Key OCID が表示されるようになっ た
  409. 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 <value> [--rotateMasterKeyOnAllPDBs] [--pdbName <value>] [--executePrereqs] [--resume [--sessionID <value>]] { [--prepareStandbyBlob <value> [--blobLocation <value>]] | [--standbyBlobFromPrimary <value>] } 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 452 2024/2/19 更新
  410. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 453 2024/2/19 更新
  411. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 454 2024/2/19 更新
  412. dbaascli tde rotateMasterKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 455 2024/2/19 更新 key rotation中
  413. dbaascli tde rotateMasterKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 456 2024/2/19 更新 key rotation 後は key version が一つ追加さ れた ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gsuemxkz56aaa.abvwslj rjyto5gmnii3eiuevzkbcz4nzqcsbz3b3fksasm dhaxrrnpsexz3q
  414. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 457 2024/2/19 更新
  415. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 458 2024/2/19 更新
  416. dbaascli tde rotateMasterKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 459 2024/2/19 更新 CDB の key version ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gsuemxkz56aaa.abvwslj rjyto5gmnii3eiuevzkbcz4nzqcsbz3b3fksasm dhaxrrnpsexz3q
  417. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 460 2024/2/19 更新
  418. 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" } ] dbaascli execution completed TDE Copyright © 2024, Oracle and/or its affiliates, 461 2024/2/19 更新
  419. 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 21-FEB-24 06.05.34.651769000 AM UTC 21-FEB-24 06.06.49.489590000 AM UTC CDB$ROOT SQL> TDE Copyright © 2024, Oracle and/or its affiliates, 462 2024/2/19 更新
  420. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 463 2024/2/19 更新
  421. dbaascli tde rotateMasterKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 464 2024/2/19 更新 PDB1 の新 key version CDB の新 key version CDB の前回rotationで作成された key version
  422. dbaascli tde rotateMasterKey TDE Copyright © 2024, Oracle and/or its

    affiliates, 465 2024/2/19 更新 PDB1 の新 key version CDB の新 key version CDB の前回rotationで作成された key version
  423. 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: 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 Copyright © 2024, Oracle and/or its affiliates, 466 2024/2/19 更新
  424. 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 Copyright © 2024, Oracle and/or its affiliates, 467 2024/2/19 更新
  425. 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 <value> --dbname <value> [--pdbName <value>] [--masterKeyID <value>] [--standbySuc] [-- executePrereqs] [--waitForCompletion <value>] 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 Copyright © 2024, Oracle and/or its affiliates, 468 2024/2/19 更新
  426. dbaascli tde setKeyVersion TDE Copyright © 2024, Oracle and/or its

    affiliates, 469 2024/2/19 更新 現在の key version Rotate key
  427. dbaascli tde setKeyVersion TDE Copyright © 2024, Oracle and/or its

    affiliates, 470 2024/2/19 更新 Rotate key
  428. dbaascli tde setKeyVersion TDE Copyright © 2024, Oracle and/or its

    affiliates, 471 2024/2/19 更新 新しい key version 作成中
  429. dbaascli tde setKeyVersion TDE Copyright © 2024, Oracle and/or its

    affiliates, 472 2024/2/19 更新 Rotate key で作成された key version ocid1.keyversion.oc1.ap-osaka- 1.dnq4fgnmaaen2.gsuemxk24raaa.abvwsljr 326emv3fevite5vkf7n2itfykrpp26wlwsp5t2 rp3dl4ulvp7smq この key version を setKeyVersion する
  430. 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 Copyright © 2024, Oracle and/or its affiliates, 473 2024/2/19 更新
  431. 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 Copyright © 2024, Oracle and/or its affiliates, 474 2024/2/19 更新
  432. 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 Copyright © 2024, Oracle and/or its affiliates, 475 2024/2/19 更新
  433. 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 Copyright © 2024, Oracle and/or its affiliates, 476 2024/2/19 更新
  434. dbaascli tde removeSecondaryHSMKey --help 既存のHSM (KMS)構成からセカンダリHSM (KMS)キーを削除 [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 <value> [--confirmDeletion] [--secondaryKmsKeyOCID <value>] [--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 Copyright © 2024, Oracle and/or its affiliates, 477 2024/2/19 更新
  435. 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 Copyright © 2024, Oracle and/or its affiliates, 478 2024/2/19 更新
  436. 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 Copyright © 2024, Oracle and/or its affiliates, 479 2024/2/19 更新
  437. 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 Copyright © 2024, Oracle and/or its affiliates, 480 2024/2/19 更新
  438. 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 <value>] { [--dbname <value>] | [--allDBs] } [--backupLocation <value>] [--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 Copyright © 2024, Oracle and/or its affiliates, 481 2024/2/19 更新
  439. 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 Copyright © 2024, Oracle and/or its affiliates, 482 2024/2/19 更新
  440. 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 Copyright © 2024, Oracle and/or its affiliates, 483 2024/2/19 更新
  441. 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 <value> { [--prepareStandbyBlob <value> [--blobLocation <value>]] | [--standbyBlobFromPrimary <value>] } [--resume [--sessionID <value>]] [--executePrereqs] [--waitForCompletion <value>] 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 Copyright © 2024, Oracle and/or its affiliates, 484 2024/2/19 更新
  442. 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 Copyright © 2024, Oracle and/or its affiliates, 485 2024/2/19 更新
  443. 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 Copyright © 2024, Oracle and/or its affiliates, 486 2024/2/19 更新
  444. 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 <value> { --pdbName <value> | --pdbUID <value> } [--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 Copyright © 2024, Oracle and/or its affiliates, 487 2024/2/19 更新
  445. 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 <value> { --pdbName <value> | --pdbUID <value> } [--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 Copyright © 2024, Oracle and/or its affiliates, 488 2024/2/19 更新
  446. 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 Copyright © 2024, Oracle and/or its affiliates, 489 2024/2/19 更新
  447. 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 <value> --tdeKeyFilePath <value> [--waitForCompletion <value>] [--pdbName <value>] 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 Copyright © 2024, Oracle and/or its affiliates, 490 2024/2/19 更新
  448. 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 Copyright © 2024, Oracle and/or its affiliates, 491 2024/2/19 更新
  449. 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/tdedb0207.eky: data [root@taro-3nusm1 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 492 2024/2/19 更新
  450. dbaascli tde hsmToFile --help HSM (KMS/OKV)ベースのTDEをFILEベースのTDEに変換 [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 <value> { [--prepareStandbyBlob <value> [--blobLocation <value>]] | [--standbyBlobFromPrimary <value>] } [--skipPatchCheck <value>] [--executePrereqs] [--primarySuc <value>] { [--resume [--sessionID <value>]] | [--revert [--sessionID <value>]] } [--waitForCompletion <value>] 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.] [--revert - to rollback the previous operation] [--sessionID - to resume a specific session id.] TDE Copyright © 2024, Oracle and/or its affiliates, 493 2024/2/19 更新
  451. 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 Copyright © 2024, Oracle and/or its affiliates, 494 2024/2/19 更新
  452. 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 ~]# コンソールからは提供されていないが、dbaascli では提供されている TDE Copyright © 2024, Oracle and/or its affiliates, 495 2024/2/19 更新
  453. 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: <open> 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 Copyright © 2024, Oracle and/or its affiliates, 496 2024/2/19 更新
  454. dbaascli tde hsmToFile 実施前 SQL> select * from v$encryption_wallet; WRL_TYPE

    WRL_PARAMETER STATUS WALLET_TYPE WALLET_ORDER KEYSTORE_MODE F ULLY_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> TDE Copyright © 2024, Oracle and/or its affiliates, 497 2024/2/19 更新
  455. 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 498 2024/2/19 更新
  456. 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" }, { "key" : "AWb87WzcEk/Zv0ROlmkZFyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "con_id" : "3", TDE Copyright © 2024, Oracle and/or its affiliates, 499 2024/2/19 更新
  457. 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 <value> [--dbRestart <value>] [--executePrereqs] [--resume [--sessionID <value>]] 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 ~]# TDE Copyright © 2024, Oracle and/or its affiliates, 500 2024/2/19 更新
  458. すべてのグリッド・ホームの詳細をリスト [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 の情報 Copyright © 2024, Oracle and/or its affiliates, 502 2024/2/19 更新
  459. 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 の操作 Copyright © 2024, Oracle and/or its affiliates, 503 2024/2/19 更新
  460. 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 <value> [--resume [--sessionID <value>]] [--waitForCompletion <value>] 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 の作成 Copyright © 2024, Oracle and/or its affiliates, 504 2024/2/19 更新
  461. 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 <value> | --gridHomeID <value> | --gridHomeName <value> } [--resume [--sessionID <value>]] [--waitForCompletion <value>] 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 Home の削除 Copyright © 2024, Oracle and/or its affiliates, 505 2024/2/19 更新
  462. 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の操作 Copyright © 2024, Oracle and/or its affiliates, 506 2024/2/19 更新
  463. 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 ~]# Gridの操作 Copyright © 2024, Oracle and/or its affiliates, 507 2024/2/19 更新
  464. 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 ~]# Gridの操作 Copyright © 2024, Oracle and/or its affiliates, 508 2024/2/19 更新
  465. 既存のクラスタに対してTCPSを構成 デフォルトでは、TCPSは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 <value>] [--serverCert <value>] [--caCertChain <value>] [--privateKey <value>] [-- privateKeyPasswordProtected <value>] [--pkcs12WalletFilePath <value>] [--executePrereqs] [--resume [--sessionID <value>]] 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 ~]# Gridの操作 Copyright © 2024, Oracle and/or its affiliates, 509 2024/2/19 更新
  466. クラスタに対してTCPSを確認 [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 ~]# Gridの操作 Copyright © 2024, Oracle and/or its affiliates, 510 2024/2/19 更新
  467. クラスタに対してTCPSを確認 [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 ~]# Gridの操作 Copyright © 2024, Oracle and/or its affiliates, 511 2024/2/19 更新
  468. 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 <value>] [--serverCert <value>] [--caCertChain <value>] [--privateKey <value>] [-- privateKeyPasswordProtected <value>] [--pkcs12WalletFilePath <value>] [--executePrereqs] [--resume [--sessionID <value>]] [--skipListenerBounce <value>] 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の操作 Copyright © 2024, Oracle and/or its affiliates, 512 2024/2/19 更新
  469. Grid Infrastructureウォレットから既存のTCPS証明書を削除 [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 <value> { --userCert | --trustedCert | --requestedCert } [--serialNumber <value>] [--executePrereqs] [--resume [--sessionID <value>]] [--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 ~]# Gridの操作 Copyright © 2024, Oracle and/or its affiliates, 513 2024/2/19 更新
  470. 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 <value>] [--user <value>] Where: [--dbname - Oracle database name. ] [--user - username whose password change is required. ] [root@taro-3nusm1 ~]# Gridの操作 Copyright © 2024, Oracle and/or its affiliates, 514 2024/2/19 更新
  471. 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. dbaascli のインタラクティブモードの非推奨 Copyright © 2024, Oracle and/or its affiliates, 516
  472. 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 ダウンロードしてインストールできる最新バージョンのdbaastoolsを表示 Copyright © 2024, Oracle and/or its affiliates, 517 22.2.1.0.1 追加
  473. 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 ダウンロードしてインストールできる最新バージョンのdbaastoolsを表示 Copyright © 2024, Oracle and/or its affiliates, 518 22.2.1.0.1 追加
  474. 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 <value>] | [--location <value>] } [--nodes <value>] [--force] [--resume [--sessionID <value>]] [--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 の更新 Copyright © 2024, Oracle and/or its affiliates, 519
  475. 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 ----------------- 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 ******** 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. dbaascli の更新事前チェック(下位バージョンへのダウングレード時) Copyright © 2024, Oracle and/or its affiliates, 520
  476. 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 Plugin_initialization job Completed Plugin_initialization job ----------------- Running Default_value_initialization job Completed Default_value_initialization job ----------------- 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. ----------------- 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 Cleanup_downloaded_rpm job Skipping. Job is detected as not applicable. ----------------- Running Cleanup_legacy_rpms job Skipping. Job is detected as not applicable. dbaascli の更新事前チェック(最新へのアップグレード時) Copyright © 2024, Oracle and/or its affiliates, 521
  477. 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 の更新 Copyright © 2024, Oracle and/or its affiliates, 522
  478. 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 の更新 Copyright © 2024, Oracle and/or its affiliates, 523
  479. 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 の更新 Copyright © 2024, Oracle and/or its affiliates, 524
  480. 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 の更新 Copyright © 2024, Oracle and/or its affiliates, 525
  481. 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 <value> | --imageTag <value> } [--resume [--sessionID <value>]] [--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 の更新 Copyright © 2024, Oracle and/or its affiliates, 526 2024/2/19 更新
  482. 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 <value>] [--startTime <value>] [--endTime <value>] [--nodes <value>] [--dbNames <value>] [-- objectStoreBucketURI <value>] [--destLocation <value>] 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 ] デフォルトで24時間分を取得 それ以前が必要な場合は –-startTimeで指定 SR上げる際の情報取得 Copyright © 2024, Oracle and/or its affiliates, 527
  483. 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 ★先ファイルをSRにアップロード SR上げる際の情報取得 実行例 Copyright © 2024, Oracle and/or its affiliates, 528
  484. 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 <value>] [--objectStoreBucketURI <value>] [--dbNames <value>] [--destLocation <value>] 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 ] 診断ヘルスチェック Copyright © 2024, Oracle and/or its affiliates, 529
  485. 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 診断ヘルスチェック Copyright © 2024, Oracle and/or its affiliates, 530
  486. 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 診断ヘルスチェック Copyright © 2024, Oracle and/or its affiliates, 531
  487. 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 ~]# dbaastools 更新版の一覧(現在は非推奨コマンド) Copyright © 2024, Oracle and/or its affiliates, 532 2024/2/19 更新
  488. 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の確認 Copyright © 2024, Oracle and/or its affiliates, 533
  489. 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" } jobの確認 Copyright © 2024, Oracle and/or its affiliates, 534