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:opatch:apply_patch [24/10/2024 12:47] mdloracle:opatch:apply_patch [13/11/2025 08:16] (Version actuelle) mdl
Ligne 1: Ligne 1:
 +====== Patch ORACLE_HOME ======
 +
 +
 +
 +
 == Download Patch == == Download Patch ==
  
-[[https://updates.oracle.com/Orion/SimpleSearch/process_form?search_type=patch&patch_number=36233126&plat_lang=226P&display_type=&search_style=8&orderby=43&direction=dd&old_type_list=21%3A20%3A1%3A500&gobuttonpressed=&sortcolpressed=&tab_number=&email=mdelagrandrie%40pbs-santander.com&userid=O-mdelagrandrie%40pbs-santander.com&c_release_parent=product&c_product_child=release]]+[[https://support.oracle.com/epmos/faces/PatchResultsNDetails?_adf.ctrl-state=mxne3pp6u_4&releaseId=600000000101150&requestId=25638263&patchId=36233263&languageId=0&platformId=226&searchdata=%3Ccontext+type%3D%22BASIC%22+search%3D%22%26lt%3BSearch%26gt%3B%26lt%3BFilter+name%3D%26quot%3Bpatch_number%26quot%3B+op%3D%26quot%3Bis%26quot%3B+value%3D%26quot%3B36233263%26quot%3B%2F%26gt%3B%26lt%3BFilter+name%3D%26quot%3Bexclude_superseded%26quot%3B+op%3D%26quot%3Bis%26quot%3B+value%3D%26quot%3Bfalse%26quot%3B%2F%26gt%3B%26lt%3B%2FSearch%26gt%3B%22%2F%3E&_afrLoop=381051573684953]]
  
  
  
-== Apply Patch ==+== 1/ Update Opatch == 
 + 
 +  
 +https://updates.oracle.com/download/6880880.html 
 +<code bash> 
 +[oracle@oracle1]$ cd $ORACLE_HOME/ 
 +[oracle@oracle1 dbhome_1]$ cd OPatch/ 
 + 
 +[oracle@oracle1 OPatch]$ ./opatch version 
 +OPatch Version: 12.2.0.1.17 
 + 
 +OPatch succeeded. 
 + 
 + 
 +[oracle@oracle1 OPatch]$ cd .. 
 +[oracle@oracle1 dbhome_1]$  rm OPatch/ -Rf 
 +[oracle@oracle1 dbhome_1]$  unzip /tmp/p6880880_OPatch12.2.0.1.43_190000_Linux-x86-64.zip 
 + 
 +[oracle@oracle1 dbhome_1]$ cd OPatch/ 
 + 
 +[oracle@oracle1 OPatch]$ ./opatch version 
 +OPatch Version: 12.2.0.1.43 
 + 
 +OPatch succeeded. 
 + 
 + 
 +</code> 
 + 
 + 
 +== 2/ Apply Patch ==
   * faire un backup ORACLE_HOME via un ZIP ou TAR   * faire un backup ORACLE_HOME via un ZIP ou TAR
 <code bash> <code bash>
Ligne 128: Ligne 162:
  
 </code> </code>
 +
 + \\
 +
 +== PROBLEME ==
 +  * PDB blockée en OPEN RESTRICTED: 
 +<code PLSQL>
 +SQL> show pdbs
 +
 +    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
 +---------- ------------------------------ ---------- ----------
 +         2 PDB$SEED                       READ ONLY  NO
 +         3 OEMDB135                       READ WRITE YES
 +
 +SQL> select status, message, action
 +     from   pdb_plug_in_violations
 +     where  status !='RESOLVED';  
 +
 +STATUS
 +---------
 +MESSAGE
 +--------------------------------------------------------------------------------
 +ACTION
 +--------------------------------------------------------------------------------
 +PENDING
 +'19.23.0.0.0 Release_Update 2404060042' is installed in the CDB but '19.19.0.0.0
 + Release_Update 2303220204' is installed in the PDB
 +Call datapatch to install in the PDB or the CDB
 +
 +</code>
 +=> relancer datapatch et redémarrer l'instance:
 +<code >
 +$ORACLE_HOME/OPatch/datapatch
 +
 +SQL Patching tool version 19.23.0.0.0 Production on Fri Dec  6 17:17:25 2024
 +Copyright (c) 2012, 2024, Oracle.  All rights reserved.
 +
 +Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_16777_2024_12_06_17_17_25/sqlpatch_invocation.log
 +
 +Connecting to database...OK
 +Gathering database info...done
 +
 +[...]
 +
 +Installing patches...
 +Patch installation complete.  Total patches installed: 1
 +
 +Validating logfiles...done
 +Patch 36233263 apply (pdb OEMDB135): SUCCESS
 +  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/36233263/25638263/36233263_apply_OEMDB_OEMDB135_2024Dec06_17_18_12.log (no errors)
 +SQL Patching tool complete on Fri Dec  6 17:18:48 2024
 +
 +
 +SQL> shutdown immediate;
 +Database closed.
 +Database dismounted.
 +ORACLE instance shut down.
 +SQL> startup
 +ORACLE instance started.
 +
 +Total System Global Area 1.7180E+10 bytes
 +Fixed Size                  9223416 bytes
 +Variable Size            1.5636E+10 bytes
 +Database Buffers         1526726656 bytes
 +Redo Buffers                7553024 bytes
 +Database mounted.
 +Database opened.
 +SQL> show pdbs
 +
 +    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
 +---------- ------------------------------ ---------- ----------
 +         2 PDB$SEED                       READ ONLY  NO
 +         3 OEMDB135                       READ WRITE NO
 +SQL> select status, message, action
 +     from   pdb_plug_in_violations
 +     where  status !='RESOLVED';  2    3
 +
 +no rows selected
 +
 +
 +</code>
 +