Clean up the test environment

Use the following procedure to clean up and remove the replication test environment that you created in the previous sections.

StepsTo clean up and remove the replication test environment

  1. Log in to the Mirror Replication Agent administration port using isql (or another query processor).

  2. Use the following command to quiesce the Mirror Replication Agent instance:

    quiesce
    
  3. Use the following command to remove the Mirror Replication Agent transaction log and unmark the test primary table (mrx_test) in the Oracle database:

    ra_deinit, force
    
  4. Log in to the standby Replication Server and execute the following:

    • $SYBASE/MA-15_1/scripts/sybase/rs_drop_test_db_sub.sql (to drop the test subscription).

      Edit the rs_drop_test_db_sub.sql script file so that the values for PDS.PDB on the with primary at clause match the PDS.PDB values that you used to create the connection from the primary data server and primary database. These values are initially {pds.pdb}. Also change the values for SDS.SDB on the with replicate at clause to match the SDS.SDB values that you used to create the connection to the standby data server and standby database. These values are initially {sds.sdb}.

    • $SYBASE/MA-15_1/scripts/sybase/rs_drop_test_db_repdef.sql (to drop the test replication definition)

    • $SYBASE/MA-15_1/scripts/oracle/ oracle_drop_rs_primary_connection.sql (to drop the test connection to the primary database)

  5. Log in to the standby data server and execute the $SYBASE/MA-15_1/scripts/sybase/ase_drop_test_replicate_table.sql script to drop the test replicate table.

  6. Use your Oracle database access tool (such as sqlplus) to log in to the Oracle data server and execute the $SYBASE/MA-15_1/scripts/oracle/oracle_drop_test_table.sql script to drop the test primary table.