EMCA Fails With Error "java.lang.UnsatisfiedLinkError" (Doc ID 274397.1)

Last updated on AUGUST 09, 2012

Applies to:

Enterprise Manager for Oracle Database - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Symptoms

The Enterprise Manager Configuration Assistant (EMCA) command fails with java.lang.UnsatisfiedLinkError under following scenarios:

  1. When running EMCA command to create DBConsole, it fails with below error message

    emca -config dbcontrol db -repos create
    STARTED EMCA at 22-Oct-2007 10:38:31
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.

    Enter the following information:
    Database SID: <SID of database>
    UnsatisfiedLinkError exception loading native library: njni10
    Exception in thread "main" java.lang.UnsatisfiedLinkError: get
  2. Running EMCA to either configure or remove the database control (DBConsole) for a 10g database, the following errors occur.
    Note : Applicable only for HP-UX PA-RISC (64-bit) and IBM AIX on POWER Systems (64-bit)

    java.lang.UnsatisfiedLinkError: no OsUtils in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1516)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at oracle.sysman.assistants.util.OsUtilsUnix.(OsUtilsUnix.java:659)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java:261)
    at oracle.sysman.assistants.util.OsUtilsBase.constructInstance(OsUtilsBase.java:1334)
    at oracle.sysman.assistants.util.OsUtilsBase.getOsUtils(OsUtilsBase.java:133)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.getEnvParams(SQLEngine.java:400)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.initialize(SQLEngine.java:227)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.(SQLEngine.java:212)
    at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.(SQLPlusEngine.java:104)
    at oracle.sysman.assistants.util.sqlEngine.SQLEngine.getSQLEngine(SQLEngine.java:356)
    at oracle.sysman.emcp.EMConfig.initSQLEngine(EMConfig.java:5350)
    at oracle.sysman.emcp.EMConfig.checkConfiguration(EMConfig.java:948)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:233)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:659)
    at oracle.sysman.emcp.EMConfigAssistant.performSetup(EMConfigAssistant.java:608)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:313)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:166)

    OR

    java.lang.UnsatisfiedLinkError: Can't find library OsUtils (libOsUtils.a or
    .so) in sun.boot.library.path or java.library.path

    sun.boot.library.path=/u01/app/oracle/product/10.1/jdk/jre/bin
    java.library.path=/u01/app/oracle/product/10.1/jdk/jre/bin:/u01/app/oracle/produ
    ct/10.1/jdk/jre/bin/classic:/u01/app/oracle/product/10.1/jdk/jre/bin:/u01/app/or
    acle/product/10.1/lib:/usr/lib
  3. Trying to run the EMCA command with a response file results in error on Windows 2003:

    emca -f C:\oracle\local\tmp\oraemca_sidname_3744_2.tmp
    STARTED EMCA at Sat Jun 11 09:48:45 CDT 2005
    Password for dbsnmp:
    Password for sysman:
    Password for sys:
    java.lang.UnsatisfiedLinkError: Can't load library:c:/oracle/oracleproduct10.1.0/oui/lib/win32/oraInstaller.dll
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1459)
    at java.lang.Runtime.load0(Runtime.java:737)
    at java.lang.System.load(System.java:811)
    at oracle.sysman.oii.oiip.osd.win32.OiipwWin32NativeCalls.loadNativeLib(OiipwWin32NativeCalls.java:747)
  4. Recreating Database Control ( DB Console) for a 11.1.0.6 database using EMCA utility throws an error at the Configuration Step.The DB Control repository objects are created with no problem.

    The following is the error reported by the emca log file; the error seems to indicate that there is a ocijdbc10 in java.library.path; however, this is an ambigous error.

    From emca_timestamp.log

    Sep 17, 2008 7:19:05 AM oracle.sysman.emdrep.config.IConfigurationContext createConnection
    INFO: jdbcUrl = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))
    Sep 17, 2008 7:19:06 AM oracle.sysman.emdrep.config.IConfigurationContext createConnection
    INFO: jdbcUrl = jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))
    Sep 17, 2008 7:19:06 AM oracle.sysman.emdrep.config.EMSchemaConfiguration$ConfigInstance run
    SEVERE: null
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.sysman.emdrep.config.EMSchemaConfiguration$ConfigInstance.run(EMSchemaConfiguration.java:469)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3139)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3135)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:519)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:816)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at oracle.sysman.emdrep.config.IConfigurationContext.createConnection(IConfigurationContext.java:201)
    at oracle.sysman.emdrep.config.IConfigurationContext.createConnection(IConfigurationContext.java:240)
    at oracle.sysman.emdrep.config.IConfigurationContext.getConnection(IConfigurationContext.java:194)
    at oracle.sysman.emdrep.config.IConfigurationContext.init(IConfigurationContext.java:96)
    ... 6 more

    Sep 17, 2008 7:19:06 AM oracle.sysman.emdrep.config.EMSchemaConfiguration perform
    WARNING: Exception Occured during Execution of oracle.sysman.emdrep.util.TransxWrapper
    Sep 17, 2008 7:19:06 AM oracle.sysman.emdrep.config.EMSchemaConfiguration perform
    SEVERE: FATAL EXCEPTIONS:
    FATAL Configuration Exceptions
  5. On 10g Database when attempting to create the DBConsole using EMCA the following error occurs:
    Note : Applicable only for HP-UX PA-RISC (64-bit)

    /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libc.sl
    /usr/lib/dld.sl: Exec format error
    Failed to open libc

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