基于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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值