After Replication Server and Adaptive Server are installed on your system, you must enable a RepAgent for each database the Replication Server manages—if the database:
Contains primary data, or
Contains stored procedures marked for replication
In addition, if Replication Server is the source site for any route, you must enable RepAgent for the Replication Server RSSD.
There are three possible scenarios for setting up RepAgent. In some scenarios you use rs_init, in other scenarios you must use command line options.
If you install a new Replication Server or add a new database, use rs_init to set up RepAgent. This process enables RepAgent, set default parameters, and start RepAgent. See the Replication Server Configuration Guide for your platform for information about rs_init.
To change an existing replicate database to a primary database, you must use command line options.
Configuring RepAgent using command line options:
These are the basic steps for configuring RepAgent from the command line.
Define the local Adaptive Server using sp_addserver.
Enable the RepAgent feature on Adaptive Server using sp_configure.
Enable the RepAgent feature for each database using sp_config_rep_agent.
Enable log transfer on Replication Server using alter connection.
Start the RepAgent on Adaptive Server using sp_start_rep_agent.