Remove Repstance Objects from Database The “remove ” database objects command is used to remove Repstance database replication objects.
The successful result of using this command will be:
For the Source and Target Database, it will remove the Repstance Database Objects that were created by the “prepare ” command For MS SQL Server Database configured as a Source, it will also disable CDC on the tables used by Repstance. After successful completion of the command any remaining running Processes will fail.
CLI Syntax:
repcli remove database=source|target dbtype={oracle|mssql|redshift|postgresql|mysql|snowflake } \ [ Source or Target database connection parameters ] \ [ Source database specific parameters ]
The input parameters are:
database – Database type. The possible values are - source and target dbtype – RDBMS type. The valid values are oracle, mssql, redshift, mysql, postgresql and snowflake [Source or Target database connection parameters ] - set of the parameters to specify database connection setting[Source database specific parameters ] - set of the parameters to specify database connection settingThe details on the “Source database connection parameters” and “Source database specific parameters” are provided here:
The details on the “Target database connection parameters” are provided here:
REST API:
Endpoint : https://repstance_url/configure/databaseMethod : POSTHeader :Content-Type: application/jsonX-Token : tokenBody : { "command":"remove", "parameters":[ ["database","source|target"], ["dbtype","{oracle|mssql|redshift|postgresql|mysql|snowflake} "], { Source or Target database connection parameters} , { Source database specific parameters} ] }Server response:
HTTP Status – status of the command, possible codes are:200 – if no error occurs422 – if error occursBody : { "Status":"{Completed|Failed}", "Message":"The command execution details" }
Web UI Using Web UI you can only remove database objects that is used by Capture or Apply. To remove replication objects click “Cleanup Repstance Objects” on the “Database Settings” form: