Add databases to Replication Server

You must create connections in the Replication Server for the primary and standby databases.

NoteYou must have “sa” permission in the Replication Server to perform this procedure.

StepsTo create database connections in Replication Server

  1. Log in to the Replication Server with a user login that has “sa” permission.

  2. Create the logical connection for the primary and standby databases:

    create logical connection to
       logical_ds.logical_db
    

    where:

    The logical data server name (logical_ds) and logical database name (logical_db) need not be the same as the actual names of the primary data server and primary database. See the Replication Server Administration Guide for more information about logical connections.

  3. Create a database connection for the primary database:

    create connection to pds.pdb
       set error class rs_sqlserver_error_class
       set function string class
          rs_sqlserver_function_class
       set username "mra_maint" 
       set password  "mra_maint_pwd"  
       with log transfer on
       as active for logical_ds.logical_db
    

    where:

  4. Create a database connection for the standby database:

    create connection to sds.sdb
       set error class rs_sqlserver_error_class
       set function string class
          rs_sqlserver_function_class
       set username "mra_maint" 
       set password  "mra_maint_pwd"
       with log transfer on
       as standby for logical_ds.logical_db
    

    where: