EM 12c, EM 13c: How to Update DBSNMP Password and Change Monitoring Credentials of an Enterprise Manager Cloud Control Target Database Using emcli Command Line (Doc ID 1592390.1)

EM 12c, EM 13c: How to Update DBSNMP Password and Change Monitoring Credentials of an Enterprise Manager Cloud Control Target Database Using emcli Command Line (Doc ID 1592390.1)

The DBSNMP password for one of my target dataase was in Expired status (But in Grace Period).


Use the following Steps to Change the DBSNMP Password on the Target Database and on the OMS Repository.
You will run all the commands from the OMS Server.

1. Use emcli command to login to the OMS

emcli login -username=sysman -password=<sysman_password>


2. Run the below command to get the target name for your database

./emcli get_targets -target="oracle_database"

3. Run the below command to change the DBSNMP password both on the OMS repository and the target database

emcli update_db_password -target_name="<target_name>" -target_type="oracle_database" -user_name="dbsnmp" -change_at_target=yes -old_password="<old_password>" -new_password="<new_password>" -retype_new_password="<new_password>"

=> Replace each value in <> in commandline with the appropriate values.


-- Check the password on the target database

No comments:

Post a Comment

ASM and Database does not auto start in Oracle restart environment (After Server start)

 If you are supporting Any Oracle restart environment and if you notice that your ASM instance and Database instance does not start automati...