My Oracle Support Banner

Named Credential Authentication Fails With INVALID_CRED_OBJECT If Created With EMCLI (Doc ID 1517285.1)

Last updated on FEBRUARY 06, 2020

Applies to:

Enterprise Manager for Oracle Database - Version and later
Information in this document applies to any platform.


Named credentials are not working as expected in the console if created with the emcli command:

[oracle@em12cc bin]$ ./emcli create_named_credential -cred_name=Test_Testdb -auth_target_type="oracle_database" -cred_type="DBCreds" -cred_scope="instance" -target_type="oracle_database" -target_name="<Target_DB_Name>" -attributes="DBUserName:SYSTEM;DBPassword:<SYSTEM_PASSWORD>"
Credential TEST_TESTDB created.


Using the credential in the console fails with:

java.lang.Exception: INVALID_CRED_OBJECT


emoms.trc shows following java error stack.

2012-12-24 12:16:36,908 [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR homepage.ui doLogin.225 - error during target authentication
java.lang.Exception: INVALID_CRED_OBJECT
  at oracle.sysman.db.conn.DBMetaConnectionPool.initializeConnection(
  at oracle.sysman.db.conn.DBMetaConnectionPool.(
  at oracle.sysman.targetauth.EMDBConnectionHandler.login(
  at oracle.sysman.emSDK.sec.targetauth.EMTargetLoginService.doTargetLogin(
  at oracle.sysman.emSDK.sec.targetauth.EMTargetLoginService.doTargetLogin(
  at oracle.sysman.db.homepage.ui.DBLoginPageModelBean.doLogin(
  at oracle.sysman.db.homepage.ui.DBLoginPageModelBean.doApplyAction(
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.