PSU补丁:p22191577_112040_Linux-x86-64.zip
OPATCH工具:p6880880_112000_LINUX.zip
解压OPATCH工具 覆盖到/u01/11.2.0/grid/和/u01/app/oracle/product/11.2.0/db_1这两个目录。(两上节点都执行)
生成OCM file(grid用户)
/u01/11.2.0/grid/OPatch/ocm/bin
./emocmrsp
先升GI:两个节点执行:
root执行:
unzip p22191577_112040_Linux-x86-64.zip
chown -R grid:oinstall 22191577
chmod -R 775 22191577
/u01/11.2.0/grid/OPatch/opatch auto /soft/orcapp/22191577 -oh /u01/11.2.0/grid/ -ocmrf /u01/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
再升DB 两个节点执行:
root执行:
chown -R oracle:oinstall 22191577
chmod -R 775 22191577
/u01/11.2.0/grid/OPatch/opatch auto /soft/orcapp/22191577 -oh /u01/app/oracle/product/11.2.0/db_1/ -ocmrf /u01/11.2.0/grid/OPatch/ocm/bin/ocm.rsp
grid用户查看GI版本:
/u01/11.2.0/grid/OPatch/opatch lsinventory
oracle用户查看DB版本:
/u01/app/oracle/product/11.2.0/db_1/OPatch/opatch lsinventory
更新dba_registry_history视图信息
[oracle@rac1 ~]$ sqlplus / as sysdba
SQL> @?/rdbms/admin/catbundle.sql psu apply
确认升级后的dba_registry_history视图:
查看补丁
col ACTION_TIME for a10
col ACTION for a10
col NAMESPACE for a10
col VERSION for a10
col COMMENTS for a40
set linesize 250
select * from dba_registry_history;
su - oracle
opatch lsinv
For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus. Connect as SYSDBA and run the catbundle.sql script as follows:
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT