Handling replicated tables during a schema-level restore of column-organized tables
During a schema-level restore of column-organized tables with row modification tracking, tables in the schema are dropped and recreated. You must take different steps depending on your settings for replicating DDL operations.
About this task
- If you specified Replicate create and drop tables when you created the replication set, all of the tables in the schema are recreated at the target so that they are identical to the source.
- If you did not specify Replicate create and drop tables, you need to remove the restored tables from the replication set and then add them back, with the initial load option. The reason is that without replication of CREATE TABLE and DROP TABLE, replication does not automatically ensure that the target table is refreshed to match the source after this type of restore operation at the source.
Procedure
Follow one of these procedures:
- Replicate create and drop tables is checked in the console
- Stop the replication set that contains the schema that you are about to restore. (Do not stop individual tables, only the entire replication set. Stopping the set only suspends replication so that you can resume it later without the need for a load phase. Stopping individual tables forces a reload, during which the tables are inaccessible.)
- Perform the restore operation.
- Start the replication set.
- Replicate create and drop tables is not checked in the console
- Edit the replication set to remove any tables that are part of the schema backup and restore. (You do not need to stop the replication set in this scenario.)
- Perform the restore operation.
- If any DDL changes were made to source tables in the schema since the last backup, drop the corresponding target tables.
- Edit the replication set to add back the affected tables. Make sure that Load all tables in the replication set when the set is started is checked.
- Do either of the following:
- Start any tables that were added back individually on the replication set details pages.
- Stop and then start the replication set.