In a test environment, you may occasionally need to reset the replication environment. Instead of deleting and re-creating a new Replication Agent instance, use this procedure to facilitate resetting the environment.
Resetting the primary database for replication
Log in to the Replication Agent and issue:
suspend
go
Reset the locator stored in the Replication Agent:
ra_locator zero
go
Reset the locator stored in Replication Server:
isql -USAMPLE_RS_RSSD_prim -PSAMPLE_RS_RSSD_prim_ps -SSAMPLE_RS_ERSSD -DSAMPLE_RS_ERSSD
rs_zeroltm NY, NYudb9
go
This message appears:
Locator has been reset to zero.
(return status = 0)
Resume replication:
resume
go