Adding the standby database maintenance user

If you plan to initialize the standby database using the dump and load commands, with or without the “dump marker” option, you must create the maintenance user login name for the standby database in both the standby and the active data servers. Do this before you add the standby database.

Both Sybase Central and rs_init automatically add the active database maintenance user in the active data server when you add the active database.

Making the server user’s IDs match

Within each data server, the server user’s ID (suid) for each login name must be the same in the syslogins table in the master database and the sysusers table in each user database. This must be true for the active and standby databases in a warm standby application. The server user’s ID and role settings must also be the same in the syslogins and sysloginroles tables in the master database.

Use one of these three methods to make the server user’s IDs match:

Adding the maintenance user

To add the maintenance user login name for the standby database to both the standby and the active data servers:

  1. In the standby data server, execute the sp_addlogin system procedure to create the maintenance user login name.

    Refer to the Adaptive Server Enterprise System Administration Guide for more information about using sp_addlogin.

  2. In the active data server, execute sp_addlogin to create the same maintenance user login name that you created in the standby data server.

    When you set up the standby database using the dump and load commands, the sysusers table is loaded into the standby database along with the other data from the active database.