PSU7 for 11.2.0.4 Database Linux X64 Install Step
===============================================================================
1. 在Oracle Support中下载PSU到本地,PSU补丁号为:20760982
2. 上传PSU到服务器并且解压缩
unzip p20760982_112040_Linux-x86-64.zip
cd 20760982
3. 检查opatch版本,如果版本不能满足需求的话,下载最新的opatch,并且进行替换
oracle@linux01:[/app/soft/psu] opatch version
OPatch Version: 11.2.0.3.4
OPatch succeeded.
解压opatch,备份原来的opatch并且用新的opatch进行替换:
unzip p6880880_112000_Linux-x86-64.zip
mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.bak.20150902
mv /app/soft/psu/OPatch $ORACLE_HOME/OPatch
检查替换过后的opatch版本:
oracle@linux01:[/app/database/oracle/11.2.0/product] opatch version
OPatch Version: 11.2.0.3.11
OPatch succeeded.
4. 关闭数据库
grid用户执行,停止监听:
lsnrctl stop
oracle用户执行,停止数据库:
sqlplus / as sysdba
SQL> shutdown immediate
5. 验证PSU是否冲突
export PATH=$PATH:/usr/ccs/bin
opatch prereq CheckConflictAgainstOHWithDetail -ph ./
6. 安装PSU
opatch apply -local
依次在所有节点执行升级操作
下面动作只在一个节点执行即可:
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
无报错即可
=====================================================================
PSU7 for 11.2.0.4 ClusterWare Linux X64 Install Step
=====================================================================
1. 在Oracle Support中下载PSU到本地,PSU补丁号为:20996923
2. 上传PSU到服务器并且解压缩
unzip p20996923_112040_Linux-x86-64.zip
cd 20760982
3. 检查opatch版本,如果版本不能满足需求的话,下载最新的opatch,并且进行替换
要求opatch 11.2.0.3.6或者以上
opatch version
4. 安装前工作
export ORACLE_HOME=/app/grid
$ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME
生成ocm.rsp文件,为了后面的auto方法安装(所有节点执行)
$ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output $ORACLE_HOME/ocm.rsp
如果配置EM了,停止EM
$ORACLE_HOME/bin/emctl stop dbconsole
停止数据库:
$ORACLE_HOME/bin/srvctl stop database –d rac
如果使用了ACFS的话,unmount所有的acfs设备
使用root用户执行,这里要注意,clusterware是开启状态的,如果关闭状态,要指定 -och 变量,否则会报错
cd /app/grid
为 GI HOME打Patch
/app/grid/OPatch/opatch auto /app/soft/psu/20996923 -ocmrf /app/grid/ocm.rsp
如果出现 "A system reboot is recommended before using ACFS” 这样的消息,那么必须重启系统后再往后操作
重新mount所有的ACFS设备
为 DB HOME打Patch
/app/grid/OPatch/opatch auto /app/soft/psu/20996923 -oh /app/database/oracle/11.2.0/product -ocmrf /app/grid/ocm.rsp
在其它节点重复上面步骤
在任一节点上面执行:
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
检查日志是否有报错:
Check the following log files in $ORACLE_BASE/cfgtoollogs/catbundle for any errors:
catbundle_PSU_<database SID>_APPLY_<TIMESTAMP>.log
catbundle_PSU_<database SID>_GENERATE_<TIMESTAMP>.log
更新rman Catalog
If you are using the Oracle Recovery Manager, the catalog needs to be upgraded. Enter the following command to upgrade it:
$ rman catalog username/password@alias
RMAN> UPGRADE CATALOG;
本文出自 “数据库之路” 博客,请务必保留此出处http://dbaway.blog.51cto.com/7099215/1693433
GI PSU7 And DB PSU7 Install on 11.2.0.4.0 RAC
原文地址:http://dbaway.blog.51cto.com/7099215/1693433