EM 12c: Enterprise Manager 12c Cloud Control emctl start agent Creates Inventory Lock writer.lock on Inventory

(Doc ID 2139650.1)

Last updated on OCTOBER 18, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

Enterprise Manager (EM) 12.1.0.1 Cloud Control

$AGENT_INST/bin/emctl start agent

Command creates a inventory lock 'writer.lock' on inventory. It is retained and not removed during EM agent start.
This ‘lock’ is interfering to users daily clones thus causing impacts to user inventory related operation.

From /orainventory/locks/write.lock

2016-05-08_11-22-09-PM
java.lang.Throwable
at oracle.sysman.oii.oiit.OiitLockHeartbeat.writeStackTrace(OiitLockHeartbeat.java:186)
at oracle.sysman.oii.oiit.OiitLockHeartbeat.<init>(OiitLockHeartbeat.java:171)
at oracle.sysman.oii.oiit.OiitTargetLocker.getWriterLock(OiitTargetLocker.java:280)
at oracle.sysman.oii.oiit.OiitTargetLocker.getWriterLock(OiitTargetLocker.java:185)
at oracle.sysman.oii.oiit.OiitTargetLocker.getWriterLock(OiitTargetLocker.java:172)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.acquireLocks(OiicStandardInventorySession.java:403)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:301)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:231)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:180)
at oracle.opatch.OUIInventorySession.initSession(OUIInventorySession.java:60)
at oracle.opatch.OUISessionManager.setupSession(OUISessionManager.java:144)
at oracle.opatch.OUISessionManager.lockCentralInventory(OUISessionManager.java:215)
at oracle.opatch.OUISessionManager.instantiate(OUISessionManager.java:90)
at oracle.opatch.OUISessionManager.getOUIInventorySession(OUISessionManager.java:480)
at oracle.opatch.InventorySessionManager.getInventorySession(InventorySessionManager.java:43)
at oracle.opatch.Locker.lock(Locker.java:327)
at oracle.opatch.OracleHomeInventory.lock(OracleHomeInventory.java:2028)
at oracle.opatch.OracleHomeInventory.createInventoryObj(OracleHomeInventory.java:2183)
at oracle.opatch.OracleHomeInventory.getInstance(OracleHomeInventory.java:929)
at oracle.opatch.GenericInventory.createInstance(GenericInventory.java:42)
at oracle.opatch.OPatchSessionHelper.getOHProductFamily(OPatchSessionHelper.java:6733)
at oracle.opatch.CmdLineParser.parse(CmdLineParser.java:1663)
at oracle.opatch.OPatchSession.main(OPatchSession.java:1221)
at oracle.opatch.OPatch.main(OPatch.java:666)

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms