chekc file permissions, owner, group ________________________________ From: Vinod Gopinath BMMI IT <vinodg@xxxxxxxxxxx> To: askdba@xxxxxxxxxxxxx Sent: Wednesday, 3 December, 2008 19:00:52 Subject: [askdba] opatch failed Trying to apply the patch 4938850 on 10.2.0.2 and get the following error: <<< INFO:Failure in script execution, Message reported : /u02/DEV/oradev/devdb/10.2.0/.patch_storage/getEnv.sh: printenv: not found SEVERE:OPatch invoked as follows: 'apply ' INFO: Oracle Home : /u02/DEV/oradev/devdb/10.2.0 Central Inventory : /var/opt/oracle/DEV/oraInventory from : /var/opt/oracle/oraInst.loc OPatch version : 10.2.0.4.3 OUI version : 10.2.0.2.0 OUI location : /u02/DEV/oradev/devdb/10.2.0/oui Log file location : /u02/DEV/oradev/devdb/10.2.0/cfgtoollogs/opatch/opatch2008-12-02_17-02-1 2PM.log INFO:Starting ApplySession at Tue Dec 02 17:02:13 AST 2008 INFO:Starting Apply Session at Tue Dec 02 17:02:13 AST 2008 INFO:ApplySession applying interim patch '4938850' to OH '/u02/DEV/oradev/devdb/10.2.0' INFO:Starting to apply patch to local system at Tue Dec 02 17:02:13 AST 2008 INFO:Start the Apply initScript at Tue Dec 02 17:02:13 AST 2008 INFO:Finish the Apply initScript at Tue Dec 02 17:02:13 AST 2008 INFO:Unable to lock Central Inventory. OPatch will attempt to re-lock. Do you want to proceed? [y|n] INFO:Start to wait for user-input at Tue Dec 02 17:02:13 AST 2008 INFO:Finish waiting for user-input at Tue Dec 02 17:02:18 AST 2008 INFO:User Responded with: Y INFO:OPatch will sleep for few seconds, before re-trying to get the lock... INFO:Unable to lock Central Inventory. OPatch will attempt to re-lock. Do you want to proceed? [y|n] INFO:Start to wait for user-input at Tue Dec 02 17:04:18 AST 2008 INFO:Finish waiting for user-input at Tue Dec 02 17:05:02 AST 2008 INFO:User Responded with: Y INFO:OPatch will sleep for few seconds, before re-trying to get the lock... INFO:Unable to lock Central Inventory. OPatch will attempt to re-lock. Do you want to proceed? [y|n] INFO:Start to wait for user-input at Tue Dec 02 17:07:02 AST 2008 INFO:Finish waiting for user-input at Tue Dec 02 17:07:08 AST 2008 INFO:User Responded with: Y INFO:OPatch will sleep for few seconds, before re-trying to get the lock... INFO:Unable to lock Central Inventory. OPatch will attempt to re-lock. Do you want to proceed? [y|n] INFO:Start to wait for user-input at Tue Dec 02 17:09:08 AST 2008 INFO:Finish waiting for user-input at Tue Dec 02 17:09:10 AST 2008 INFO:User Responded with: N INFO:Unable to lock Central Inventory. Stop trying per user-request? SEVERE:OUI-67064:OPatchSession cannot load inventory for the given Oracle Home /u02/DEV/oradev/devdb/10.2.0. 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 SEVERE:OUI-67073:ApplySession failed: ApplySession failed to prepare the system. Unable to lock Central Inventory. Stop trying per user-request? INFO:System intact, OPatch will not attempt to restore the system INFO:Finishing ApplySession at Tue Dec 02 17:09:10 AST 2008 INFO:Total time spent waiting for user-input is 56 seconds. Finish at Tue Dec 02 17:09:10 AST 2008 INFO:Stack Description: java.lang.RuntimeException: ApplySession failed to prepare the system. Unable to lock Central Inventory. Stop trying per user-re quest? INFO:StackTrace: oracle.opatch.OUISessionManager.lockCentralInventory(OUISessionManager.j ava:357) INFO:StackTrace: oracle.opatch.OUISessionManager.instantiate(OUISessionManager.java:83) INFO:StackTrace: oracle.opatch.OUISessionManager.getOUIInventorySession(OUISessionManager .java:592) INFO:StackTrace: oracle.opatch.InventorySessionManager.getInventorySession(InventorySessi onManager.java:47) INFO:StackTrace: oracle.opatch.Locker.lock(Locker.java:347) INFO:StackTrace: oracle.opatch.OracleHomeInventory.lock(OracleHomeInventory.java:1575) INFO:StackTrace: oracle.opatch.OracleHomeInventory.createInventoryObj(OracleHomeInventory .java:1807) INFO:StackTrace: oracle.opatch.OracleHomeInventory.getInstance(OracleHomeInventory.java:8 61) INFO:StackTrace: oracle.opatch.GenericInventory.createInstance(GenericInventory.java:42) INFO:StackTrace: oracle.opatch.ApplySession.loadInventory(ApplySession.java:645) INFO:StackTrace: oracle.opatch.ApplySession.processLocal(ApplySession.java:3426) INFO:StackTrace: oracle.opatch.ApplySession.process(ApplySession.java:5283) INFO:StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:1602) INFO:StackTrace: oracle.opatch.OPatch.main(OPatch.java:619) >>> What could be the problem? tks VG