OPatch Installation Steps
(I) Prerequisites
--------------------
Before you install or deinstall the patch, ensure that you meet the following requirements:
$ unzip p31602782_198000DBRU_AIX64-5L.zip
$ echo $PATH
Postinstallation
Perform the following postinstallation steps described in Loading Modified SQL Files Into the Database.
1.4.1 Loading Modified SQL Files Into the Database
To perform the postinstallation, follow these steps:
The following steps load modified SQL files into the database.
Datapatch is run to complete the post-install SQL deployment for the Update. For further details about Datapatch, including Known Issues and workarounds to common problems, see: Datapatch: Database 12c or later Post Patch SQL Automation (Doc ID 1585822.1).
For each separate database running on the same shared Oracle home being patched, run the
datapatch
utility as described in the following table.Table 1-1 Steps to Run the Datapatch Utility for Standalone Database Versus Single or Multitenant (CDB or PDB) Database
Steps Standalone Database Steps Single or Multitenant (CDB or PDB) Database 1
% sqlplus /nolog
1
% sqlplus /nolog
2
SQL> Connect / as sysdba
2
SQL> Connect / as sysdba
3
SQL> startup
Footnote 13
SQL> startup
Footnote 14
SQL> quit
4
SQL> alter pluggable database all
open
;
Footnote 25
% cd $ORACLE_HOME/OPatch
5
SQL> quit
6
% ./datapatch -verbose
6
% cd $ORACLE_HOME/OPatch
7
% sqlplus /nolog
7
% ./datapatch -verbose
8
SQL> Connect / as sysdba
8
% sqlplus /nolog
9
SQL> shutdown
9
SQL> Connect / as sysdba
10
SQL> startup
Foot 310
SQL> shutdown
11
SQL> startup
Footnote 312
SQL> alter pluggable database all open;
1.4.2 - For no RU update patches
1. For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus. Connect as SYSDBA and run the below script as follows:
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @?/sqlpatch/31602782/postinstall.sql
2. Check the output for any errors.
How to fix “OPatch failed with error code 41”
After fixing PDB$SEED, you can apply datapatch to it alone.
$ /u01/app/oracle/product/12.1.0.2/dbhome_1/OPatch/datapatch -verbose -pdbs 'PDB$SEED'
No comments:
Post a Comment