Change the Administrator User Password Registered with XAG for a Deployment
To change the password for the Oracle GoldenGate Microservices administrator
account that is registered with XAG, through the web interface or the REST
API. The following steps guide you to change the password from the REST
API:
-
Disable the XAG healthcheck monitoring, which is run by Grid Control, preventing it from failing and stopping GoldenGate processes during the password changing process:
$ agctl disable goldengate instance name
-
Change the Service Manager and Deployment administrator password:
curl -u USER:PASSWORD -X PATCH http://hostname.us.com:7701/services/v2/authorizations/security/oggadmin -H "Content-Type:application/json" -H "Accept:application/json" -d @update_security_password.json| python -mjson.tool
In this code syntax, replace the hostname and port number with the deployment server hostname and port number for the deployment.
The contents of theupdate_security_password.json
script are as follows:$cat update_security_password.json { "credential":"password"}
Note:
The Oracle GoldenGate administrator account user name registered with XAG, must be the same for the Service Manager and all deployments managed by the Service Manager. This also applies to the administrator account password, it must be the same for the Service Manager and all deployments. -
Change the password with XAG, as the root user:
# agctl modify goldengate instance_name --adminuser OGG admin user Enter password for 'oggadmin' :
-
Re-enable the XAG healthcheck monitoring:
$ agctl enable goldengate instance_name