EMCLI Fails with Errors: Some required configuration is missing.. (EM 12c) or Java.io.IOException: No Locks Available (EM 11g)

(Doc ID 1480978.1)

Last updated on APRIL 14, 2017

Applies to:

Enterprise Manager Base Platform - Version to [Release 11.1 to 12.1]
Information in this document applies to any platform.


Enterprise Manager (EM) 12c Cloud Control emcli
Enterprise Manager 11g Grid Control emcli


The EM  emcli utility uses this command for setup prior to use:  emcli setup -url="https://oms.hostname:7799/em" -user=sysman

However, running this command fails with the following session errors:

For 11.1


2. Compile the program
javac TestLock.java

This will create a TestLock.class file

3. Execute the program (example):

java TestLock
java.io.IOException: No locks available
at sun.nio.ch.FileChannelImpl.lock0(Native Method)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:887)
at java.nio.channels.FileChannel.lock(FileChannel.java:876)
at TestLock.main(TestLock.java:14)






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