Each primary database must have a Replication Agent that scans the database log and transfers data to the Replication Server for distribution to replicate databases. If you want to change an Adaptive Server database that is designated as replicate-only to be a source of replicated functions or to contain primary data, you must enable the RepAgent thread for the database.
create user ra_user_name set password {ra_password | null}
grant connect source to ra_user_name
If the Replication Server already manages a primary database, you can use the “RepAgent user” that already exists for the new primary database.
alter connection to data_server.database set log transfer to 'on'
sp_addserver lname, local
sp_configure 'enable rep agent threads'
sp_config_rep_agent dbname, 'enable', 'rs_name', 'rs_user_name', 'rs_password'
You can find the rs_marker stored procedure in the file rs_install_primary.sql or rsinssys.sql in the scripts directory of the Sybase release directory.
sp_start_rep_agent dbname