Set up Replication Server database objects

Replication Server requires a few database objects (procedures and tables) in the primary and standby databases, so that it can:

You need not set up Replication Server objects in the standby database, because when you materialize the standby database, Replication Server objects in the primary database are copied to the standby database.

For ASE only

To set up Replication Server objects in the primary database, use the Replication Server primary database installation script which is a SQL script named:

The primary database installation script resides in the Replication Server scripts directory (for example, %SYBASE%\REP-15_0\scripts on Microsoft Windows platforms).

StepsTo set up Replication Server objects in the primary database

  1. Open an operating system command prompt window on the primary data server host machine.

  2. At the operating system command prompt, invoke the isql utility to execute the primary database installation script in the primary database.

  3. Log in to the primary database with system administration privileges.

  4. Grant permissions on the Replication Server objects in the primary database:

    grant all on rs_lastcommit to ma_maint
    grant execute on rs_get_lastcommit to ma_maint
    grant execute on rs_update_lastcommit to public
    grant execute on rs_check_repl_stat to public
    grant execute on rs_marker to public
    

    where:

For Oracle only

To set up Replication Server objects in the primary database, use the Replication Server setup for replicate script for the database you are replicating to. The primary database installation script is a SQL script named as follows: $SYBASE/REP-15_0/scripts/hds_oracle_setup_for_replicate.sql

NoteThe scripts in the Replication Server directory have not been updated for this release. Instead, apply the following scripts from the Mirror Replication Agent installation: $SYBASE/MA-15_0/scripts\oracle\hds_oracle_new_setup_for_replicate.sql $SYBASE/MA-15_0/scripts\oracle \oracle_create_replicate_sequence_proc.sql