You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--slotName`|**Required.** PostgreSQL replication slot name. Must match the slot name specified with `--pglogical-replication-slot-name` in the [MOLT Fetch command](#start-fetch). |
8
-
|`--targetSchema`|**Required.** Target schema name on CockroachDB where tables will be replicated. |
8
+
|`--targetSchema`|**Required.** Target schema name on CockroachDB where tables will be replicated. Schema name must be fully qualified in the format `database.schema`.|
9
9
|`--stagingSchema`|**Required.** Staging schema name for replication metadata and checkpoints. |
10
10
|`--stagingCreateSchema`|**Required.** Automatically create the staging schema if it does not exist. Include this flag when starting replication for the first time. |
11
11
|`--metricsAddr`| Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
@@ -14,7 +14,7 @@ The following [MOLT Replicator]({% link molt/molt-replicator.md %}) flags are **
|`--targetSchema`|**Required.** Target schema name on CockroachDB where tables will be replicated. |
17
+
|`--targetSchema`|**Required.** Target schema name on CockroachDB where tables will be replicated. Schema name must be fully qualified in the format `database.schema`.|
18
18
|`--defaultGTIDSet`|**Required.** Default GTID set for changefeed. |
19
19
|`--stagingSchema`|**Required.** Staging schema name for replication metadata and checkpoints. |
20
20
|`--stagingCreateSchema`|**Required.** Automatically create the staging schema if it does not exist. Include this flag when starting replication for the first time. |
@@ -26,16 +26,16 @@ You can find the starting GTID in the `cdc_cursor` field of the `fetch complete`
|`--sourceSchema`|**Required.** Source schema name on Oracle where tables will be replicated from. |
32
-
|`--targetSchema`|**Required.** Target schema name on CockroachDB where tables will be replicated. |
33
-
|`--scn`|**Required.** Snapshot System Change Number (SCN) for the initial changefeed starting point. |
34
-
|`--backfillFromSCN`|**Required.** SCN of the earliest active transaction at the time of the snapshot. Ensures no transactions are skipped. |
35
-
|`--stagingSchema`|**Required.** Staging schema name for replication metadata and checkpoints. |
36
-
|`--stagingCreateSchema`|**Required.** Automatically create the staging schema if it does not exist. Include this flag when starting replication for the first time. |
37
-
|`--metricsAddr`| Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
38
-
|`--userscript`| Path to a userscript that enables table filtering from Oracle sources. Refer to [Table filter userscript](#table-filter-userscript). |
|`--sourceSchema`|**Required.** Source schema name on Oracle where tables will be replicated from. |
32
+
|`--targetSchema`|**Required.** Target schema name on CockroachDB where tables will be replicated. Schema name must be fully qualified in the format `database.schema`.|
33
+
|`--scn`|**Required.** Snapshot System Change Number (SCN) for the initial changefeed starting point. |
34
+
|`--backfillFromSCN`|**Required.** SCN of the earliest active transaction at the time of the snapshot. Ensures no transactions are skipped. |
35
+
|`--stagingSchema`|**Required.** Staging schema name for replication metadata and checkpoints. |
36
+
|`--stagingCreateSchema`|**Required.** Automatically create the staging schema if it does not exist. Include this flag when starting replication for the first time. |
37
+
|`--metricsAddr`| Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
38
+
|`--userscript`| Path to a userscript that enables table filtering from Oracle sources. Refer to [Table filter userscript](#table-filter-userscript). |
39
39
40
40
You can find the SCN values in the message `replication-only mode should include the following replicator flags` after the [initial data load](#start-fetch) completes.
Copy file name to clipboardExpand all lines: src/current/_includes/molt/replicator-flags.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@
39
39
|`--targetJitterTime`|`DURATION`| The time over which to jitter database pool disconnections.<br><br>**Default:**`15s`|
40
40
|`--targetMaxLifetime`|`DURATION`| The maximum lifetime of a database connection.<br><br>**Default:**`5m0s`|
41
41
|`--targetMaxPoolSize`|`INT`| The maximum number of target database connections.<br><br>**Default:**`128`|
42
-
|`--targetSchema`|`STRING`| The SQL database schema in the target cluster to update. |
42
+
|`--targetSchema`|`STRING`| The SQL database schema in the target cluster to update. CockroachDB schema names must be fully qualified in the format `database.schema`.|
43
43
|`--targetStatementCacheSize`|`INT`| The maximum number of prepared statements to retain.<br><br>**Default:**`128`|
44
44
|`--taskGracePeriod`|`DURATION`| How long to allow for task cleanup when recovering from errors.<br><br>**Default:**`1m0s`|
45
45
|`--timestampLimit`|`INT`| The maximum number of source timestamps to coalesce into a target transaction.<br><br>**Default:**`1000`|
For failback, MOLT Replicator uses `--targetConn` to specify the destination database where you want to replicate CockroachDB changes, and `--stagingConn` for the CockroachDB staging database.
@@ -225,11 +231,19 @@ Create a CockroachDB changefeed to send changes to MOLT Replicator.
225
231
226
232
1. Create the CockroachDB changefeed pointing to the MOLT Replicator webhook endpoint. Use `cursor` to specify the logical timestamp from the preceding step.
227
233
228
-
{{site.data.alerts.callout_info}}
229
-
Ensure that only **one** changefeed points to MOLT Replicator at a timeto avoid mixing streams of incoming data.
The target schema is specified in the webhook URL path in the fully-qualified format `/database/schema`. For example, `/migration_schema/public` routes changes to the `public` schema in the `migration_schema` database.
@@ -504,8 +513,9 @@ For detailed steps, refer to [Load and replicate]({% link molt/migrate-load-repl
504
513
replicator oraclelogminer \
505
514
--sourceConn $SOURCE \
506
515
--sourcePDBConn $SOURCE_PDB \
507
-
--sourceSchema migration_schema \
508
516
--targetConn $TARGET \
517
+
--sourceSchema migration_schema \
518
+
--targetSchema defaultdb.public \
509
519
--scn 26685786 \
510
520
--backfillFromSCN 26685444 \
511
521
--stagingSchema _replicator \
@@ -626,7 +636,11 @@ replicator start \
626
636
--tlsPrivateKey ./certs/server.key
627
637
~~~
628
638
629
-
For detailed steps, refer to [Migration failback]({% link molt/migrate-failback.md %}).
639
+
After starting `replicator`, create a CockroachDB changefeed to send changes to MOLT Replicator. For detailed steps, refer to [Migration failback]({% link molt/migrate-failback.md %}).
640
+
641
+
{{site.data.alerts.callout_info}}
642
+
When [creating the CockroachDB changefeed]({% link molt/migrate-failback.md %}#create-the-cockroachdb-changefeed) , you specify the target schema in the webhook URL path. For PostgreSQL targets, use the fully-qualified format `/database/schema` (for example, `/migration_schema/public`). For MySQL and Oracle targets, use just the schema name (for example, `/migration_schema`).
0 commit comments