Enable and Disable Credentials

Enable credentials:

  1. Login as the user who installed the agent.

    $ su oracle
  2. Navigate to the omcli directory location.

    $ cd <AGENT_BASE_DIR>/agent_inst/bin
  3. Start the agent if it’s not already running.

    $ omcli start agent
  4. Enable a credential by using:

    $ omcli enable_credential agent CREDENTIAL_NAME [ TARGETNAME:TARGETTYPE | -global ]

    The command enables the specified credential.

    Where:

    • CREDENTIAL_NAME: is the credential name.

    • TARGETNAME:TARGETTYPE: enables only the credentials with the local name CREDENTIAL_NAME within the entity's scope.

      TARGETNAME is the name part of the target id of the credential definition.

      TARGETTYPE is the type part of the target id of the credential definition.

    • —global: enables the credentials with the global name CREDENTIAL_NAME.

Disable credentials:

  1. Login as the user who installed the agent.

    $ su oracle
  2. Navigate to the omcli directory location.

    $ cd <AGENT_BASE_DIR>/agent_inst/bin
  3. Start the agent if it’s not already running.

    $ omcli start agent
  4. Disable a credential by using:

    $ omcli disable_credential agent CREDENTIAL_NAME [ TARGETNAME:TARGETTYPE | -global ]

    The command disables the specified credential.

    Where:

    • CREDENTIAL_NAME: is the credential name.

    • TARGETNAME:TARGETTYPE: disables only the credentials with the local name CREDENTIAL_NAME within the entity's scope.

      TARGETNAME is the name part of the target id of the credential definition.

      TARGETTYPE is the type part of the target id of the credential definition.

    • —global: disables only the credentials with the global name CREDENTIAL_NAME.