环境:
ORACLE10.2.0.4 64BIT
REDHAT 5.6 64BIT
AGENT 11.2.0.1 64BIT
打5759944补丁遇到:OPatch failed with error code 73
[@more@]因为公司内使用EM11g作为整体的数据监控平台,所以在agent端agent是11g,而DB是10g所以在opatch的时候调用的是agent的目录,最终导致安装补丁失败:
[oracle@bi 5759944]$ ../opatch apply
Invoking OPatch 10.2.0.4.2
Oracle Interim Patch Installer version 10.2.0.4.2
Copyright (c) 2007, Oracle Corporation. All rights reserved.
Oracle Home : /u01/oracle/product/10.2.0/db_1
Central Inventory : /u01/oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.2
OUI version : 10.2.0.4.0
OUI location : /u01/oracle/product/10.2.0/db_1/oui
Log file location : /u01/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-12-12_15-59-34PM.log
ApplySession applying interim patch '5759944' to OH '/u01/oracle/product/10.2.0/db_1'
List of Homes on this system:
Home name= agent11g1, Location= "/u01/oracle/product/10.2.0/db_1/agent11g"
OPatchSession cannot load inventory for the given Oracle Home /u01/oracle/product/10.2.0/db_1. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
ApplySession failed: ApplySession failed to prepare the system. OracleHomeInventory gets null oracleHomeInfo
System intact, OPatch will not attempt to restore the system
OPatch failed with error code 73
解决办法是执行oracle数据库的重新定位:
[oracle@bi 5759944]$ ../../oui/bin/attachHome.sh
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/oracle/oraInventory
'AttachHome' was successful.
重新打补丁,问题解决:
[oracle@bi 5759944]$ ../opatch apply
Invoking OPatch 10.2.0.4.2
Oracle Interim Patch Installer version 10.2.0.4.2
Copyright (c) 2007, Oracle Corporation. All rights reserved.
Oracle Home : /u01/oracle/product/10.2.0/db_1
Central Inventory : /u01/oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.2
OUI version : 10.2.0.4.0
OUI location : /u01/oracle/product/10.2.0/db_1/oui
Log file location : /u01/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-12-12_16-02-15PM.log
ApplySession applying interim patch '5759944' to OH '/u01/oracle/product/10.2.0/db_1'
Running prerequisite checks...
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/oracle/product/10.2.0/db_1')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '5759944' for restore. This might take a while...
Backing up files affected by the patch '5759944' for rollback. This might take a while...
Patching component oracle.rdbms, 10.2.0.4.0...
Updating archive file "/u01/oracle/product/10.2.0/db_1/lib/libserver10.a" with "lib/libserver10.a/opitca.o"
Running make for target ioracle
ApplySession adding interim patch '5759944' to inventory
Verifying the update...
Inventory check OK: Patch ID 5759944 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 5759944 are present in Oracle Home.
The local system has been patched and can be restarted.
OPatch succeeded.
[oracle@bi 5759944]$ ../opatch lsinventory
Invoking OPatch 10.2.0.4.2
Oracle Interim Patch Installer version 10.2.0.4.2
Copyright (c) 2007, Oracle Corporation. All rights reserved.
Oracle Home : /u01/oracle/product/10.2.0/db_1
Central Inventory : /u01/oracle/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.2
OUI version : 10.2.0.4.0
OUI location : /u01/oracle/product/10.2.0/db_1/oui
Log file location : /u01/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-12-12_16-02-47PM.log
Lsinventory Output file location : /u01/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-12-12_16-02-47PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (2):
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
There are 2 products installed in this Oracle Home.
Interim patches (1) :
Patch 5759944 : applied on Mon Dec 12 16:02:32 CST 2011
Created on 9 Dec 2008, 20:31:46 hrs PST8PDT
Bugs fixed:
5759944
--------------------------------------------------------------------------------
OPatch succeeded.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10130206/viewspace-1056802/ ,如需转载,请注明出处,否则将追究法律责任。