查看Oracle已打过的补丁

查看Oracle已打过的补丁使用Oracle自带的工具OPatch,在Oracle目录:$ORACLE_HOME/OPatch/,执行opatch即可。以下是操作:

[root@d156 ~]# su - oracle
[oracle@d156 ~]$ env | grep ORA

[oracle@d156 ~]$ env | grep ORA
ORACLE_UNQNAME=aidev
ORACLE_SID=aidev1
ORACLE_BASE=/oracle/base
ORACLE_HOSTNAME=d156
ORACLE_TERM=xterm
ORACLE_HOME=/oracle/base/db
[oracle@d156 ~]$ cd /oracle/base/db
[oracle@d156 db]$ cd OPatch/
[oracle@d156 OPatch]$ pwd
/oracle/base/db/OPatch
[oracle@d156 OPatch]$ ls
crs  docs  emdpatch.pl  fmw  jlib  ocm  opatch  opatch.ini  opatch.pl  opatchprereqs
[oracle@d156 OPatch]$ ./opatch lsinventory -all

Invoking OPatch 11.2.0.1.1


Oracle Interim Patch Installer version 11.2.0.1.1

Copyright (c) 2009, Oracle Corporation.  All rights reserved.


Oracle Home       : /oracle/base/db
Central Inventory : /oracle/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.2.0.1.1
OUI version       : 11.2.0.2.0
OUI location      : /oracle/base/db/oui
Log file location : /oracle/base/db/cfgtoollogs/opatch/opatch2012-06-11_11-29-15AM.log


Patch history file: /oracle/base/db/cfgtoollogs/opatch/opatch_history.txt


Lsinventory Output file location : /oracle/base/db/cfgtoollogs/opatch/lsinv/lsinventory2012-06-11_11-29-15AM.txt


--------------------------------------------------------------------------------
List of Oracle Homes:
  Name          Location
   Oracrs102         /oracle/grid
   OraDb11g_home1         /oracle/base/db


Installed Top-level Products (1): 


Oracle Database 11g                                                  11.2.0.2.0
There are 1 products installed in this Oracle Home.

There are no Interim patches installed in this Oracle Home.


OPatch failed with error code 130

[oracle@d156 OPatch]$ ./opatch lsinventory -detial




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值