20.4 Troubleshooting the Multi-Data Center Setup

If you have identified inconsistencies or errors in your setup and want to revert the APS, follow this procedure.

  1. Disable replication on the Master (Supplier).

    curl -u weblogic:welcome1 -H 'Content-Type: application/json' -X PUT 'http://supplier.example.com:7001/oam/services/ rest/_replication/201311271226476658' -d '{"enabled":"false","replicaType":"SUPPLIER"}'

  2. Disable replication on the Clone (Consumer).

    curl -u weblogic:welcome1 -H 'Content-Type: application/json' -X PUT 'http://supplier.example.com:7001/oam/services/ rest/_replication/201311271226476658' -d '{"enabled":"false","replicaType":"CONSUMER"}'

  3. Delete the replication agreements on the Master and Clone using this command.

    curl -u weblogic:welcome1 -H 'Content-Type: application/json' -X DELETE 'http://supplier.example.com:7001/oam/services/ rest/_replication/201311271226476658'

    Note:

    The AM_REPLICATION_SETTINGS table in the OAM Schema defines the replication agreements so you can also delete the agreements by manual deletion using the following SQL statement.

    • Select * from FINALDC1_OAM.AM_REPLICATION_SETTINGS;

    • Select * from FINALDC2_OAM.AM_REPLICATION_SETTINGS;

    Alternately:

    • Delete from FINALDC1_OAM.AM_REPLICATION_SETTINGS;

    • Delete from FINALDC2_OAM.AM_REPLICATION_SETTINGS;

  4. commit;