meta données pour cette page
  •  

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
oracle:oda:patch_oda_from_19.21_to_19.22 [15/04/2025 09:44] – créée mdloracle:oda:patch_oda_from_19.21_to_19.22 [26/10/2025 12:31] (Version actuelle) mdl
Ligne 2: Ligne 2:
 <color #ed1c24>This procedure is a classical patch, no reimaging</color> <color #ed1c24>This procedure is a classical patch, no reimaging</color>
  
-Following patches are required+Following patches are required:
  
-Oracle Database Appliance Server Patch for the ODACLI/DCS stack (patch 36269277) +  * Oracle Database Appliance Server Patch for the ODACLI/DCS stack (patch 36269277) 
-Oracle Grid Infrastructure clone files (patch 30403673) +  Oracle Grid Infrastructure clone files (patch 30403673) 
-Oracle Database clone files (patch 30403662)+  Oracle Database clone files (patch 30403662)
  
-Unzip files +== Update ODA Repositories ==
-Once unpacked, we will have following.+
  
 +  * Unzip files. Once unpacked, we will have the following.
 +
 +<code BASH>
 [root@phanes patch1922]# ls -ltra oda* [root@phanes patch1922]# ls -ltra oda*
 -r--r--r-- 1 root root 4420437140 Mar  6 18:42 oda-sm-19.22.0.0.0-240306-server.zip -r--r--r-- 1 root root 4420437140 Mar  6 18:42 oda-sm-19.22.0.0.0-240306-server.zip
Ligne 16: Ligne 18:
 -r--r--r-- 1 root root 7002170313 Mar  6 18:48 odacli-dcs-19.22.0.0.0-240306-GI-19.22.0.0.zip -r--r--r-- 1 root root 7002170313 Mar  6 18:48 odacli-dcs-19.22.0.0.0-240306-GI-19.22.0.0.zip
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
-Update the repository with the server patch +  * Update the repository with the server patch 
- +<code BASH>
 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-repository -f /u01/Download/patch1922/oda-sm-19.22.0.0.0-240306-server.zip [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-repository -f /u01/Download/patch1922/oda-sm-19.22.0.0.0-240306-server.zip
 { {
Ligne 32: Ligne 34:
   "jobType" : null   "jobType" : null
 } }
 +</code>
  
  
- +  * Validate that the job was fine 
-Validate that the job was fine +<code BASH>
 [root@phanes patch1922]# odacli describe-job -i "16c1193e-61ba-4b95-b46d-60ff5b47bebf" [root@phanes patch1922]# odacli describe-job -i "16c1193e-61ba-4b95-b46d-60ff5b47bebf"
  
Ligne 52: Ligne 54:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
- +  *  Update DCS admin 
- Update DCS admin +<code BASH>
- +
 [root@phanes patch1922]#  /opt/oracle/dcs/bin/odacli update-dcsadmin -v 19.22.0.0.0 [root@phanes patch1922]#  /opt/oracle/dcs/bin/odacli update-dcsadmin -v 19.22.0.0.0
 { {
Ligne 89: Ligne 90:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
 +  * Update the DCS components
  
-Update the DCS components +<code BASH>
- +
 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-dcscomponents -v 19.22.0.0.0 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-dcscomponents -v 19.22.0.0.0
 { {
Ligne 107: Ligne 108:
 } }
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
 +  * Update DCS agent
  
-Update DCS agent +<code BASH>
- +
 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-dcsagent -v 19.22.0.0.0 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-dcsagent -v 19.22.0.0.0
 { {
Ligne 146: Ligne 147:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
 +== Update repository with grid clone and db clone ==
  
-Update repository with grid clone and db clone +  * Grid clone 
-Grid clone+<code BASH>
 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-repository -f /u01/Download/patch1922/odacli-dcs-19.22.0.0.0-240306-GI-19.22.0.0.zip [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-repository -f /u01/Download/patch1922/odacli-dcs-19.22.0.0.0-240306-GI-19.22.0.0.zip
 { {
Ligne 181: Ligne 184:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
- +  * Database clone   
-Database clone +<code BASH>
- +
 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-repository -f /u01/Download/patch1922/odacli-dcs-19.22.0.0.0-240306-DB-19.22.0.0.zip [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli update-repository -f /u01/Download/patch1922/odacli-dcs-19.22.0.0.0-240306-DB-19.22.0.0.zip
 { {
Ligne 219: Ligne 221:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
 +== Run patching pre-checks ==
  
-Run patching pre-checks +  * Before launching the patch, be sure that the prepatch check did not return any error. 
-Before launching the patch, be sure that the prepatch check did not return any error. +<code BASH>
- +
- +
 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli create-prepatchreport -s -v 19.22.0.0.0 [root@phanes patch1922]# /opt/oracle/dcs/bin/odacli create-prepatchreport -s -v 19.22.0.0.0
  
Ligne 241: Ligne 242:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
  
  
 +  * Validate the output
  
-Validate the output +<code BASH>
- +
- +
 [root@phanes patch1922]# odacli describe-prepatchreport -i cc822327-5f38-4bab-9bc5-c333b0f66485 [root@phanes patch1922]# odacli describe-prepatchreport -i cc822327-5f38-4bab-9bc5-c333b0f66485
  
Ligne 314: Ligne 314:
                                           patching                                           patching
 Validate command execution      Success   Validated command execution Validate command execution      Success   Validated command execution
- 
- 
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
-Update the server +== Update the server ==
- +
- +
-Take an backup with odabr +
- +
  
 +  * Take a backup with odabr
 +<code BASH>
 [root@phanes patch1922]#  /opt/odabr/odabr infosnap [root@phanes patch1922]#  /opt/odabr/odabr infosnap
  
Ligne 417: Ligne 413:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
Ligne 425: Ligne 421:
  
  
 +<code BASH>
 [root@phanes ~]# /opt/oracle/dcs/bin/odacli update-server -v 19.22.0.0.0 [root@phanes ~]# /opt/oracle/dcs/bin/odacli update-server -v 19.22.0.0.0
 { {
Ligne 439: Ligne 435:
 } }
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
- +  * The process should return success 
-The process should return success +<code BASH>
- +
- +
 [root@phanes ~]# odacli describe-job -i b816575f-5483-4f9d-9c00-35e53d55c014 [root@phanes ~]# odacli describe-job -i b816575f-5483-4f9d-9c00-35e53d55c014
  
Ligne 504: Ligne 498:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
- +  * Validate your component after the patch 
-Validate your component after the patch +<code BASH>
- +
 [root@phanes ~]# odacli describe-component [root@phanes ~]# odacli describe-component
 System Version System Version
Ligne 555: Ligne 548:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
- +  * Remove the odabr backups 
-Remove the odabr backups +<code BASH>
 [root@phanes ~]#  /opt/odabr/odabr delsnap [root@phanes ~]#  /opt/odabr/odabr delsnap
 INFO: 2024-05-15 11:02:05: Please check the logfile '/opt/odabr/out/log/odabr_66739.log' for more details INFO: 2024-05-15 11:02:05: Please check the logfile '/opt/odabr/out/log/odabr_66739.log' for more details
Ligne 589: Ligne 582:
 WARNING: 2024-05-15 11:02:12: LVM snapshot for 'opt' does not exist WARNING: 2024-05-15 11:02:12: LVM snapshot for 'opt' does not exist
 WARNING: 2024-05-15 11:02:13: LVM snapshot for 'u01' does not exist WARNING: 2024-05-15 11:02:13: LVM snapshot for 'u01' does not exist
- 
- 
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
 +== Patch the storage ==
  
-Patch the storage +  * Run a prepatch report 
-Run a prepatch report +<code BASH>
- +
- +
 [root@phanes ~]# /opt/oracle/dcs/bin/odacli create-prepatchreport -st -v 19.22.0.0.0 [root@phanes ~]# /opt/oracle/dcs/bin/odacli create-prepatchreport -st -v 19.22.0.0.0
  
Ligne 614: Ligne 604:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
- +  * Validate the output 
-Validate the output +<code BASH>
 [root@phanes ~]# odacli describe-prepatchreport -i de0ba736-bea2-4de4-b35d-e36e8a3bf450 [root@phanes ~]# odacli describe-prepatchreport -i de0ba736-bea2-4de4-b35d-e36e8a3bf450
  
Ligne 642: Ligne 632:
 Verify ASM disks status         Success   ASM disks are online Verify ASM disks status         Success   ASM disks are online
 Validate command execution      Success   Validated command execution Validate command execution      Success   Validated command execution
- 
- 
- 
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
-If no error, than run the storage patch +  * If no error, then run the storage patch 
- +<code BASH>
 [root@phanes ~]# /opt/oracle/dcs/bin/odacli update-storage -v 19.22.0.0.0 [root@phanes ~]# /opt/oracle/dcs/bin/odacli update-storage -v 19.22.0.0.0
 { {
Ligne 663: Ligne 650:
 } }
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
-Check the result +  * Check the result 
 +<code BASH>
 [root@phanes ~]# odacli describe-job -i "1b6a7023-0822-49c6-acb4-411064724e09" [root@phanes ~]# odacli describe-job -i "1b6a7023-0822-49c6-acb4-411064724e09"
  
Ligne 684: Ligne 672:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
-Patch databases +== Patch databases ==
-First list the dbhomes +
- +
  
 +  * First list the dbhomes
 +<code BASH>
 [root@phanes ~]# odacli list-dbhomes [root@phanes ~]# odacli list-dbhomes
 ID                                       Name                 DB Version           DB Edition Home Location                                            Status ID                                       Name                 DB Version           DB Edition Home Location                                            Status
Ligne 696: Ligne 684:
 ff400f69-1355-449d-80de-c25c6039ac94     OraDB19000_home2     19.22.0.0.240116     EE         /u01/app/odaorahome/oracle/product/19.0.0.0/dbhome_2     CONFIGURED ff400f69-1355-449d-80de-c25c6039ac94     OraDB19000_home2     19.22.0.0.240116     EE         /u01/app/odaorahome/oracle/product/19.0.0.0/dbhome_2     CONFIGURED
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
- +  * Run the prepatch report for the dbhome you want to upgrade 
-Run the prepatch report for the dbhome you want to upgrade +<code BASH>
- +
- +
 [root@phanes ~]# /opt/oracle/dcs/bin/odacli create-prepatchreport --dbhome --dbhomeid 10d35634-771c-4f07-9389-638f191ca1b8 -v 19.22.0.0.0 [root@phanes ~]# /opt/oracle/dcs/bin/odacli create-prepatchreport --dbhome --dbhomeid 10d35634-771c-4f07-9389-638f191ca1b8 -v 19.22.0.0.0
  
Ligne 717: Ligne 703:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
- +  * Check the report 
-Check the report +<code BASH>
- +
- +
- +
 [root@phanes ~]# odacli describe-prepatchreport -i 8d3cda1a-c2a8-4bef-a93c-ae9ae0deb5e6 [root@phanes ~]# odacli describe-prepatchreport -i 8d3cda1a-c2a8-4bef-a93c-ae9ae0deb5e6
  
Ligne 763: Ligne 746:
 Running orachk                  Success   Successfully ran Orachk Running orachk                  Success   Successfully ran Orachk
 Validate command execution      Success   Validated command execution Validate command execution      Success   Validated command execution
- 
- 
- 
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
- +  * if success, then launch the patching 
- +<code BASH>
 [root@phanes ~]# /opt/oracle/dcs/bin/odacli update-dbhome -i 10d35634-771c-4f07-9389-638f191ca1b8 -v 19.22.0.0.0 [root@phanes ~]# /opt/oracle/dcs/bin/odacli update-dbhome -i 10d35634-771c-4f07-9389-638f191ca1b8 -v 19.22.0.0.0
 { {
Ligne 784: Ligne 764:
 } }
 [root@phanes ~]# [root@phanes ~]#
 +</code>
  
  
- +  * Validate that the job is fine 
-Validate that the job is fine +<code BASH>
- +
 [root@phanes ~]# odacli describe-job -i "d3ea8afa-d48b-4503-aeb1-3f59d97fc194" [root@phanes ~]# odacli describe-job -i "d3ea8afa-d48b-4503-aeb1-3f59d97fc194"
  
Ligne 819: Ligne 798:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>