本文主要是介绍基于11GR2的PSU补丁安装,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
基于11GR2的PSU补丁安装
场景:hp-unix新装数据库11.2.0.4.0,为了便于在线上触发此版本的一些bug而导致停机来维护,在安装后,应用MOS上提供最新的PSU补丁,
操作:利用OPatch工具来打GI和ORACLE软件的PSU
操作系统版本:
$ uname -a
HP-UX dbsrv B.11.31 U ia64 3837480657unlimited-user license
一、打PSU之前的检查工作
==>查看数据库版本
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise EditionRelease 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE 11.2.0.4.0 Production
TNS for HPUX: Version 11.2.0.4.0 -Production
NLSRTL Version 11.2.0.4.0 - Production
==>下载补丁,建议在MOS上下载自己需要的补丁
这里应用补丁是基于HPUX-IA64的p18139609的PSU,将其版本打到11.2.0.4.2
==>解压补丁,放在自己指定的目录下
$ pwd
/tmp/psu/18139609
$ ll
total 144
drwxr-xr-x 4 grid oinstall 8192 May 15 17:30 18031668
drwxr-xr-x 5 grid oinstall 96 May 15 17:30 18031740
-rw-r--r-- 1 grid oinstall 55880 May 15 17:29 README.html
-rw-r--r-- 1 grid oinstall 0 May 15 17:30 README.txt
-rw-r--r-- 1 grid oinstall 452 May 15 17:29 bundle.xml
==>检查GI和oracle下的OPatch工具是否满足README.html里的版本要求,如果不满足下载其满足的版本
$ /u01/app/grid/11.2.0/OPatch/opatchversion
OPatch Version: 11.2.0.3.6
OPatch succeeded.
$ /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchversion
OPatch Version: 11.2.0.3.6
OPatch succeeded.
==>验证一下GI和ORACLE用户的inventory是否有效,如果有错误或者不一致,就必须优先打满足的补丁使其满足打PSU补丁的要求
/u01/app/grid/11.2.0/OPatch/opatchlsinventory -detail -oh /u01/app/grid/11.2.0
/u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatchlsinventory -detail -oh /u01/app/oracle/product/11.2.0/dbhome_1
==>检查是否有与GI的18031740及ORACLE的18031668补丁有冲突的PSU
$ /u01/app/grid/11.2.0/OPatch/opatch prereqCheckConflictAgainstOHWithDetail -ph /tmp/psu/18139609/18031740
Oracle Interim Patch Installer version11.2.0.3.6
Copyright (c) 2013, OracleCorporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/grid/11.2.0
Central Inventory : /u01/app/oraInventory
from :/u01/app/grid/11.2.0/oraInst.loc
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.4.0
Log file location :/u01/app/grid/11.2.0/cfgtoollogs/opatch/opatch2014-05-21_13-00-32PM_1.log
Invoking prereq"checkconflictagainstohwithdetail"
Prereq"checkC
这篇关于基于11GR2的PSU补丁安装的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!