Removing an inactive Replication Server

An inactive Replication Server is one that is not running. To take an inactive Replication Server out of service, follow these steps:

  1. Drop all routes to the Replication Server.

    To do this, execute the drop route command with the with nowait option on each Replication Server that has a route to the Replication Server. For example:

    drop route to OLD_RS with nowait
    

    This command also deletes information about subscriptions created at OLD_RS for data managed by this Replication Server.

  2. If the Replication Server you are removing is primary for any function-string classes or error classes other than the system defaults, rs_default_function_class and rs_sqlserver_error_class, create a replacement for each class at a new primary. To do this:

  3. On each Replication Server that has a route from the Replication Server, purge the Replication Server route.

    To purge a route, execute the sysadmin purge_route_at_replicate command on each Replication Server to which the Replication Server had a route. For example:

    sysadmin purge_route_at_replicate, OLD_RS
    

    This command also removes:

  4. Remove the Replication Server from the list maintained by the ID Server. To do this, execute the sysadmin droprs command on the ID Server:

    sysadmin droprs, replication_server
    

    See the Replication Server Reference Manual for more information on the sysadmin droprs command.

  5. Remove all databases managed by the Replication Server from the database list maintained by the ID Server. Include the RSSD. To remove databases, run the sysadmin dropdb command on the ID Server, for each database:

    sysadmin dropdb, data_server, database
    

See the Replication Server Reference Manual for more information on the sysadmin dropdb command.

This completes the removal of an inactive Replication Server from a replication system.

Keep in mind these three additional points: