1 更新OPatch
下载最新的opatch版本。
2 Environment Checks
1.Ensure that the $PATH definition has the following executables: make, ar, ld, and nm.
The location of these executables depends on your operating system. On many operating systems, they are located in /usr/ccs/bin, in which case you can set your PATH definition as follows:
export PATH=$PATH:/usr/ccs/bin
3 检查冲突
1.Determine whether any currently installed interim patches conflict with the patch being installed, 32916808:
unzip p32916808_122010_Linux-x86-64.zip
cd 32916808
opatch prereq CheckConflictAgainstOHWithDetail -ph ./
4 加载补丁
4.Set your current directory to the directory where the patch is located and then run the OPatch utility by entering the following commands:
unzip p32916808_<version>_<platform>.zip
cd 32916808
opatch apply
5 加载sql应用
Load Modified SQL Files into the Database
% sqlplus /nolog
SQL> Connect / as sysdba
SQL> startup /alter pluggable database all open;Foot 1
% cd $ORACLE_HOME/OPatch
% ./datapatch -verboseExample:
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
6 更新恢复目录
Upgrade Oracle Recovery Manager Catalog
If you are using the Oracle Recovery Manager, the catalog needs to be upgraded. Enter the following command to upgrade it. The UPGRADE CATALOG command must be entered twice to confirm the upgrade.
$ rman catalog username/password@alias
RMAN> UPGRADE CATALOG;
RMAN> UPGRADE CATALOG;
RMAN> EXIT;
7 回滚
opatch rollback -id 32916808
Load Modified SQL Files into the Database
% sqlplus /nolog
SQL> Connect / as sysdba
SQL> startup /alter pluggable database all open;Foot 1
% cd $ORACLE_HOME/OPatch
% ./datapatch -verboseExample:
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
JVM补丁 步骤基本一致,在进行sql应用时采用upgrade模式
SQL> startup upgrade /alter pluggable database all open upgrade;