How to modify the password of the user sa of the Sybase in a dual-server status?
1. On the active host, run dbpwdtoo in the /n2000/server/bin directory and change the password of the user sa (After this step, the passwords of the user sa in the database and imap.cfg is changed at the same time, and the password is stored in imap.cfg in an encrypted form)
2. On the active host, run /opt/watchman/server/conf/changepwd to change the password of the user sa that is used by watchman for database operation. The purpose of this step is to update the password of the user sa stored in watchman (The changed password is only saved in the watchman, without any operation to the database. The watchman uses this password to perform database operations through the user sa, such as closing the database.)
3. Since the change of the password is carried out when the dual-server system runs normally, after the completion of Step 1, the new password of the user sa is synchronized immediately on the other remote standby host. On the standby host, the imap.cfg file in /n2000/server is not updated, though the password of the user sa has been changed in the database. Thus you need to log in to the standby host and edit imap.cfg file in /n2000/server. You can copy the encrypted password following the equation mark of SuperUserPassword entry from the same file in active host Then save the change and exit.
4. Perform Step 2 on the standby host to modify the password of the user sa that is used by the watchman on the standby host to access data (You can also copy the /opt/watchman/server/conf/syspassword.cfg file from the active host to cover the corresponding file on the standby host.)
Now, the modification of the password of the user sa in watchman dual-server system is complete.