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 11:55] mdloracle:oda:patch_oda_from_19.21_to_19.22 [26/10/2025 12:31] (Version actuelle) mdl
Ligne 8: Ligne 8:
   * Oracle Database clone files (patch 30403662)   * Oracle Database clone files (patch 30403662)
  
-Unzip files +== Update ODA Repositories == 
-Once unpacked, we will have the following.+ 
 +  * Unzip filesOnce unpacked, we will have the following.
  
 <code BASH> <code BASH>
Ligne 19: 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 36: Ligne 37:
  
  
-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 53: 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 90: 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 108: 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 147: 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 182: 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 220: 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 242: 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 315: 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 418: Ligne 413:
  
 [root@phanes patch1922]# [root@phanes patch1922]#
 +</code>
  
  
Ligne 426: 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 440: 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 505: 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 556: 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 590: 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 615: 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 643: 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 664: 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 685: 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 697: 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 718: 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 764: 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 785: 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 820: Ligne 798:
  
 [root@phanes ~]# [root@phanes ~]#
 +</code>