How do I create credentials for Oracle GoldenGate Classic instance using EMCLI in GoldenGate Enterprise Manager Plug-in?
Duration: 3 minutes
Create credentials for GoldenGate Classic instance using the EM CLI client
Login to the EM CLI client.
Discover Oracle GoldenGate classic instance.
To create Named Credentials (host credentials), run the
create_named_credential
verb as shown in the following example:./emcli create_named_credential -cred_name=classic -auth_target_type=host -cred_type=HostCreds -attributes="HostUserName:hostusername"
Enter
HostPassword
.Confirm the
HostPassword
.The credential gets created.
To create Named Credentials (OGG Admin credentials), run the
create_named_credential
verb as shown in the following example:./emcli create_named_credential -cred_name=classic2 -auth_target_type=oracle_goldengate -cred_type=OGGCred -attributes="AgentUserName:agentusername"
Enter
AgentPassword
.Confirm
AgentPassword
.The credential gets created.
To create Preferred credentials, run the
set_preferred_credential
verb as shown in the following example:/emcli set_preferred_credential -set_name=classic2 -target_type=oracle_goldengate -target_name=extract:target.us.oracle.com:2101 -cred_type=OGGCred -attributes="HostUserName:oggagentuser"
The preferred credential gets created.
Explanation of the parameters:
- cred_name - Credential name. For example,
classic
orclassic2
- auth_target_type - Authenticating target type. For example,
host
ororacle_goldengate
- cred_type - Credential type. For example
HostCreds
orOGGCred
- attributes - Specify credential host user name and host password. For OGG Admin Credentials, specify Monitor Agent user name and password.
- set_name - Sets the preferred credential for this credential set.
- target_name - Sets the preferred credential for this target.
- target_type - Target type for the target/credential set.
- credential_name - Name of the credential. This is a mandatory parameter while setting preferred credentials.
- credential_owner - Owner of the credential. This defaults to the currently logged in user.
Video Preview
Watch this video on how to set credentials the Oracle GoldenGate Enterprise Manager Plug-in UI: