Dynamically updating the administrator password for a database repository

Use this procedure to dynamically update the database administrator password for a database repository.

About this task

Note: When this dynamic call is made, only the configuration in memory is updated. The configuration file is not updated.
Event Type
DYNA_CONFIG_EVENT_UPDATE_DB_ADMIN_PASSWORD
Configuration Data
DYNA_CONFIG_KEY_REPOS_ID (required) - [String]
Specifies ID of the database repository in which you want to change the administrator information.
DYNA_CONFIG_KEY_DB_ADMIN_PASSWORD (required) – [base64Binary]
Specifies the database administrator password to update.
The following is a sample task:

Procedure

  1. Ensure that virtual member manager is running.
  2. Call the dynamicUpdateConfig API method to change the password. For example:
    Hashtable configData = new Hashtable();
    configData.put(DynamicConfigConstants.DYNA_CONFIG_KEY_REPOS_ID, "DB1");
    	configData.put(DynamicConfigConstants.DYNA_CONFIG_KEY_DB_ADMIN_PASSWORD, 
    PasswordUtil.getByteArrayPassword("password0"));
    	service.dynamicUpdateConfig(DynamicConfigConstants.DYNA_CONFIG_EVENT_UPDATE_DB_ADMIN_PASSWORD,
                                  configData);


Terms of use | Feedback