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

本文档详细介绍了Oracle补丁的更新流程,包括下载OPatch、环境检查、冲突检测、补丁安装、SQL应用、恢复目录升级以及回滚操作。确保在执行这些步骤时,正确设置环境变量,并注意检查可能的冲突,以保证数据库系统的稳定运行。
摘要由CSDN通过智能技术生成

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_<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 -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;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值