Change of configuration and monitoring database password

If necessary, user may change the default password ("swx") of "dba" user in the databases of Sybase platforms (both the configuration and monitoring databases).
The application must be stopped before changing the password.

The password may be change in D2MC or directly by using kernel.exe, which will be started from the command line (user must have the administrator rights).

kernel.exe /CApplicationName /APoldPwd,newPwd

The application ApplicationName must be configured properly.

Example of dump after successful change of password of configuration and monitoring database.

%D2KNL-I-Application Name: a1
%D2KNL-I-Process was started to change database password and set 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 will be changed even if the monitoring database could not be opened, except the situation when opening of this database failed due to wrong password. This state can occur if the application uses both the configuration and monitoring database with the different passwords.

Example 1: The opening of monitoring database failed:

%D2KNL-I-Application Name: a1
%D2KNL-I-Process was started to change database password and make 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 2: The opening of monitoring database failed due to wrong password (oldPwd):

%D2KNL-I-Application Name: a1
%D2KNL-I-Process was started to change database password and make 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.

As regards the redundant application, all the application must have the same password. After setting the password (different from "swx"), the application must run with the same HW key as it was used when changing the password. If HW key is changed (or unplugged), the application will not be started.

The message occurs in KLN-SELF.LOG to inform the user:

%D2KNL-I-Application Name: a1
%D2KNL-I-Open Database a1.SYSCFG...
%D2KNL-E-Invalid Password
%D2KNL-E-Error when starting D2000 - Invalid Password.

In this situation, it is necessary re-initialize the password.
This may be done in the D2MC or directly by using kernel.exe, which will be started from the command line (user must have the administrator rights).

kernel.exe /CApplicationName /APpwd

The application ApplicationName must be configured properly.

Example of dump after successful re-initialization of password of configuration and monitoring database:

%D2KNL-I-Application Name: a1
%D2KNL-I-Process was started to set password as permanent.
%D2KNL-I-Checking password
%D2KNL-I-Opening syscfg.db ....
%D2KNL-I-syscfg.db successfully opened -> close
%D2KNL-I-Opening logfile.db ....
%D2KNL-I-logfile.db successfully opened -> close
%D2KNL-I-Setting password as permanent.
%D2KNL-I-Password was successfully set.

When using the predefined configuration or monitoring database (from Templates directory) into the application with the defined password, the password must be also re-initialized:

%D2KNL-I-Application Name: a1
%D2KNL-I-Process was started to set 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.
Napíšte komentár