If necessary, it is possible to change the default password ("swx") of the "dba" user for PostgreSQL and Sybase databases (configuration, log, and archiving databases).
For PostgreSQL database:
For Sybase SQL Anywhere database:
In the case of a redundant application, the password change must be performed on all application servers. Subsequently, it is necessary (for PostgreSQL) to restart the archive processes if their databases are located in the same PostgreSQL cluster (installation) as the configuration and log database.
Changing the password using the kernel.exe program, which must be started from the command line (the user must have administrator rights).
kernel.exe /CApplicationName /APoldPwd,newPwd
Application ApplicationName must be properly configured.
%D2KNL-I-Application Name: a1 |
In D2000 System Management Console the password is changed in the dialog box that opens from the application context menu → Password
An example of a log is when the password for the configuration and log database was changed successfully.
%D2KNL-I-Application Name: a1 %D2KNL-I-Process was started to change database password and set the password as permanent. %D2KNL-I-Opening syscfg.db .... %D2KNL-I-syscfg.db successfully opened %D2KNL-I-Opening logfile.db .... %D2KNL-I-logfile.db successfully opened %D2KNL-I-Password was changed in syscfg.db. %D2KNL-I-Setting password as permanent. %D2KNL-I-Password was successfully set %D2KNL-I-Password was changed in logfile.db. |
The password change in the configuration database will be performed even if the log database cannot be opened unless the opening of the log database fails due to an incorrect password. This condition can occur if a configuration and log database with different passwords is used in one application.
Example of failing to open the monitoring database:
%D2KNL-I-Application Name: a1 %D2KNL-I-Process was started to change the database password and make the password as permanent. %D2KNL-I-Opening syscfg.db .... %D2KNL-I-syscfg.db successfully opened %D2KNL-I-Opening logfile.db .... %D2KNL-E-Database error when opening. %D2KNL-I-Password was changed in syscfg.db. %D2KNL-I-Setting password as permanent. %D2KNL-I-Password was successfully set. |
Example of failing to open log database due to wrong password (oldPwd):
%D2KNL-I-Application Name: a1 %D2KNL-I-Process was started to change the database password and make the password as permanent. %D2KNL-I-Opening syscfg.db .... %D2KNL-I-syscfg.db successfully opened %D2KNL-I-Opening logfile.db .... %D2KNL-E-Invalid password. Trying to use swx as password. %D2KNL-E-Invalid password. %D2KNL-I-No changes were made. |
For a redundant application, all participating applications must have the same password set.
If a predefined Sybase SQL Anywhere configuration or monitoring database (from the Templates directory) is used in an application that has a password set, it is also necessary to initialize the password:
%D2KNL-I-Application Name: a1 %D2KNL-I-Process was started to set the password as permanent. %D2KNL-I-Checking password %D2KNL-I-Opening syscfg.db .... %D2KNL-I-I changed the syscfg.db default password. %D2KNL-I-syscfg.db successfully opened -> close %D2KNL-I-Opening logfile.db .... %D2KNL-I-I changed the logfile.db default password. %D2KNL-I-logfile.db successfully opened -> close %D2KNL-I-Setting password as permanent. %D2KNL-I-Password was successfully set. |