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

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
oracle:oda:patch_oda_from_19.21_to_19.22 [26/10/2025 12:12] mdloracle:oda:patch_oda_from_19.21_to_19.22 [26/10/2025 12:31] (Version actuelle) mdl
Ligne 20: Ligne 20:
 </code> </code>
  
-Update the repository with the server patch+  * Update the repository with the server patch
 <code BASH> <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 224: Ligne 224:
  
  
-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 243: 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 316: 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 419: Ligne 413:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
Ligne 427: 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 441: 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 506: 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 557: 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 591: 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 616: 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 644: 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 665: 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 686: 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 698: 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 719: 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 765: 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 786: 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 821: Ligne 798:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>