Creating the primary database user login name

Mirror Replication Agent requires client access to the primary database to acquire information about the database schema and database log devices, and to reserve the logscan context.

Use the following procedure to set up a user login name in the primary data server and the primary database for the Mirror Replication Agent instance.

NoteYou must have a System Administrator user role in the primary Adaptive Server to perform this procedure.

StepsTo create a primary database user login for Mirror Replication Agent

  1. Log in to the primary Adaptive Server with a System Administrator user role.

  2. Add the Mirror Replication Agent login name to the primary data server:

    use master
    sp_addlogin mra_pds_user, mra_pds_pwd, pdb
    

    where:

  3. Grant the Replication role to the Mirror Replication Agent login name:

    grant role replication_role to mra_pds_user
    

    where mra_pds_user is the Mirror Replication Agent user login name.

  4. Add the Mirror Replication Agent user login name to the primary database:

    use pdb
    sp_adduser mra_pds_user
    

    where:

After you set up the Mirror Replication Agent user login in the primary data server, verify that the new user login name is valid (it can log in to the primary data server and access the primary database).