Oracle数据库管理-12c加载psu和JVM patch

1  更新OPatch

1 登陆网站​​​​​​https://updates.oracle.com/Orion/PatchDetails/handle_plat_lang_change?release=80112000&plat_lang=23P&patch_file=&file_id=&password_required=&password_required_readme=&merged_trans=&aru=22872904&patch_num=6880880&patch_num_id=1136314&default_release=80112000&default_plat_lang=212P&default_compatible_with=&patch_password=&orderby=&direction=&no_header=0&sortcolpressed=&tab_number=&email=zxg499078778%40126.com&userid=o-zxg499078778%40126.com

下载最新的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__.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 -verbose

Example:
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 -verbose

Example:
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;

你可能感兴趣的:(ORACLE数据库升级,PSU,jvm,RU补丁,oracle,big,data,数据库)