meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| oracle:opatch:apply_patch [24/10/2024 12:47] – mdl | oracle: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/ | + | [[https://support.oracle.com/ |
| - | == Apply Patch == | + | == 1/ Update Opatch == |
| + | |||
| + | |||
| + | https:// | ||
| + | <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]$ | ||
| + | [oracle@oracle1 dbhome_1]$ | ||
| + | |||
| + | [oracle@oracle1 dbhome_1]$ cd OPatch/ | ||
| + | |||
| + | [oracle@oracle1 OPatch]$ ./opatch version | ||
| + | OPatch Version: 12.2.0.1.43 | ||
| + | |||
| + | OPatch succeeded. | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | == 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: | ||
| </ | </ | ||
| + | |||
| + | \\ | ||
| + | |||
| + | == PROBLEME == | ||
| + | * PDB blockée en OPEN RESTRICTED: | ||
| + | <code PLSQL> | ||
| + | SQL> show pdbs | ||
| + | |||
| + | CON_ID CON_NAME | ||
| + | ---------- ------------------------------ ---------- ---------- | ||
| + | 2 PDB$SEED | ||
| + | 3 OEMDB135 | ||
| + | |||
| + | SQL> select status, message, action | ||
| + | | ||
| + | | ||
| + | |||
| + | STATUS | ||
| + | --------- | ||
| + | MESSAGE | ||
| + | -------------------------------------------------------------------------------- | ||
| + | ACTION | ||
| + | -------------------------------------------------------------------------------- | ||
| + | PENDING | ||
| + | ' | ||
| + | | ||
| + | Call datapatch to install in the PDB or the CDB | ||
| + | |||
| + | </ | ||
| + | => relancer datapatch et redémarrer l' | ||
| + | <code > | ||
| + | $ORACLE_HOME/ | ||
| + | |||
| + | SQL Patching tool version 19.23.0.0.0 Production on Fri Dec 6 17:17:25 2024 | ||
| + | Copyright (c) 2012, 2024, Oracle. | ||
| + | |||
| + | Log file for this invocation: / | ||
| + | |||
| + | Connecting to database...OK | ||
| + | Gathering database info...done | ||
| + | |||
| + | [...] | ||
| + | |||
| + | Installing patches... | ||
| + | Patch installation complete. | ||
| + | |||
| + | Validating logfiles...done | ||
| + | Patch 36233263 apply (pdb OEMDB135): SUCCESS | ||
| + | logfile: / | ||
| + | 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 | ||
| + | Redo Buffers | ||
| + | Database mounted. | ||
| + | Database opened. | ||
| + | SQL> show pdbs | ||
| + | |||
| + | CON_ID CON_NAME | ||
| + | ---------- ------------------------------ ---------- ---------- | ||
| + | 2 PDB$SEED | ||
| + | 3 OEMDB135 | ||
| + | SQL> select status, message, action | ||
| + | | ||
| + | | ||
| + | |||
| + | no rows selected | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||