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
This message includes a `cdc_cursor` value. You must set `--defaultGTIDSet` this value when starting [`replication-only` mode](#replicate-changes-to-cockroachdb).
The following message contains the appropriate `--backfillFromSCN` and `--scn` values to use in [`replication-only` mode](#replicate-changes-to-cockroachdb):
81
+
The following message contains the appropriate `--backfillFromSCN` and `--scn` values to set when [starting`replication-only` mode](#replicate-changes-to-cockroachdb):
|`--defaultGTIDSet`|**Required.** Default GTID set for changefeed. |
14
+
|`--metricsAddr`| Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
15
+
|`--userscript`| Path to a userscript that enables table filtering from MySQL sources. Refer to [Table filter userscript](#table-filter-userscript). |
16
+
17
+
Replication from MySQL requires `--defaultGTIDSet`, which sets the starting GTID for replication. You can find this value in the `cdc_cursor` field of the `fetch complete` message after the [initial data load](#load-data-into-cockroachdb) completes.
|`--metricsAddr`| Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
32
26
|`--userscript`| Path to a userscript that enables table filtering from Oracle sources. Refer to [Table filter userscript](#table-filter-userscript). |
33
27
34
-
Replication from Oracle requires `--scn` and `--backfillFromSCN`, which specify the snapshot SCN and the earliest active transaction SCN, respectively. To find these values, refer to the message `replication-only mode should include the following replicator flags` in the [data load](#load-data-into-cockroachdb) output.
|`--stagingSchema`|**Required.** Staging schema name for the changefeed checkpoint table. |
41
-
|`--tlsCertificate`| Path to the server TLS certificate for the webhook sink. Refer to [Secure failback for changefeed](#secure-changefeed-for-failback). |
42
-
|`--tlsPrivateKey`| Path to the server TLS private key for the webhook sink. Refer to [Secure failback for changefeed](#secure-changefeed-for-failback). |
43
-
|`--metricsAddr`| Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
44
-
45
-
- Failback requires `--stagingSchema`, which specifies the staging schema name used as a checkpoint. MOLT Fetch [logs the staging schema name]({% link molt/migrate-data-load-replicate-only.md %}#replicate-changes-to-cockroachdb) when it starts replication:
- When configuring a [secure changefeed](#secure-changefeed-for-failback) for failback, you **must** include `--tlsCertificate` and `--tlsPrivateKey`, which specify the paths to the server certificate and private key for the webhook sink connection.
- Oracle migrations using `--table-filter` must also include `--userscript`. Refer to [Table filter userscript]({% link molt/migrate-data-load-replicate-only.md %}#table-filter-userscript).
28
+
Replication from Oracle requires `--scn` and `--backfillFromSCN`, which specify the snapshot SCN and the earliest active transaction SCN, respectively. You can find these values in the message `replication-only mode should include the following replicator flags` after the [initial data load](#load-data-into-cockroachdb) completes.
When using `--table-filter`, you must also include `--userscript`. Refer to [Table filter userscript]({% link molt/migrate-data-load-replicate-only.md %}?filters=mysql#table-filter-userscript).
Oracle migrations using `--table-filter`must also include `--userscript`. Refer to [Table filter userscript]({% link molt/migrate-data-load-replicate-only.md %}#table-filter-userscript).
52
+
When using `--table-filter`, you must also include `--userscript`. Refer to [Table filter userscript]({% link molt/migrate-data-load-replicate-only.md %}?filters=oracle#table-filter-userscript).
|`--stagingSchema`|**Required.** Staging schema name for the changefeed checkpoint table. |
78
+
|`--tlsCertificate`| Path to the server TLS certificate for the webhook sink. Refer to [Secure failback for changefeed](#secure-changefeed-for-failback). |
79
+
|`--tlsPrivateKey`| Path to the server TLS private key for the webhook sink. Refer to [Secure failback for changefeed](#secure-changefeed-for-failback). |
80
+
|`--metricsAddr`| Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
81
+
82
+
- Failback requires `--stagingSchema`, which specifies the staging schema name used as a checkpoint. MOLT Fetch [logs the staging schema name]({% link molt/migrate-data-load-replicate-only.md %}#replicate-changes-to-cockroachdb) when it starts replication:
- When configuring a [secure changefeed](#secure-changefeed-for-failback) for failback, you **must** include `--tlsCertificate` and `--tlsPrivateKey`, which specify the paths to the server certificate and private key for the webhook sink connection.
{% include molt/fetch-table-filter-userscript.md %}
24
+
</section>
21
25
22
-
When migrating only a subset of tables using `--table-filter`, you **must** supply a userscript that filters change events to those tables. For example, save the following as `table_filter.ts`:
23
-
24
-
~~~ts
25
-
import*asapifrom"replicator@v1";
26
-
27
-
// List the source tables (matching case) to include in replication
When migrating only a subset of tables using `--table-filter`, you **must** supply a userscript that filters change events to those tables. For example, save the following as `table_filter.ts`:
4
+
5
+
~~~ts
6
+
import*asapifrom"replicator@v1";
7
+
8
+
// List the source tables (matching source names) to include in replication
- Migrations must be performed from a single Oracle schema. You **must** include `--schema-filter` so that MOLT Fetch only loads data from the specified schema. Refer to [Schema and table filtering](#schema-and-table-filtering).
4
9
- Specifying `--table-filter` is also strongly recommended to ensure that only necessary tables are migrated from the Oracle schema. A userscript is required to use `--table-filter` with an Oracle source.
5
10
6
11
{% if page.name != "bulk-load.md" %}
7
12
- Replication will not work for tables or column names exceeding 30 characters. This is a [limitation of Oracle LogMiner](https://docs.oracle.com/en/database/oracle/oracle-database/21/sutil/oracle-logminer-utility.html#GUID-7594F0D7-0ACD-46E6-BD61-2751136ECDB4).
8
13
9
-
- Running DDL on the source or target while replication is in progress can cause replication failures.
10
-
11
14
- Oracle LogMiner does not support the following data types:
12
15
- User-defined types (UDTs)
13
16
- Nested tables
@@ -19,4 +22,5 @@
19
22
- If you are migrating LOB columns from Oracle 12c, use [AWS DMS Binary Reader](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.CDC) instead of LogMiner. Oracle LogMiner does not support LOB replication in 12c.
20
23
{% endif %}
21
24
22
-
- Oracle advises against `LONG RAW` columns and [recommends converting them to `BLOB`](https://www.orafaq.com/wiki/LONG_RAW#History). `LONG RAW` can only store binary values up to 2GB, and only one `LONG RAW` column per table is supported.
25
+
- Oracle advises against `LONG RAW` columns and [recommends converting them to `BLOB`](https://www.orafaq.com/wiki/LONG_RAW#History). `LONG RAW` can only store binary values up to 2GB, and only one `LONG RAW` column per table is supported.
Copy file name to clipboardExpand all lines: src/current/_includes/molt/molt-setup.md
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,3 @@
1
-
## Before you begin
2
-
3
-
- Create a CockroachDB [{{ site.data.products.cloud }}]({% link cockroachcloud/create-your-cluster.md %}) or [{{ site.data.products.core }}]({% link {{ site.current_cloud_version }}/install-cockroachdb-mac.md %}) cluster.
4
-
- Install the [MOLT (Migrate Off Legacy Technology)]({% link releases/molt.md %}#installation) tools.
5
-
- Review the MOLT Fetch [best practices]({% link molt/molt-fetch.md %}#best-practices).
6
-
- Review [Migration Strategy]({% link molt/migration-strategy.md %}).
{% include molt/oracle-migration-prerequisites.md %}
13
+
## Before you begin
20
14
21
-
{% include molt/molt-oracle-limitations.md %}
15
+
- Create a CockroachDB [{{ site.data.products.cloud }}]({% link cockroachcloud/create-your-cluster.md %}) or [{{ site.data.products.core }}]({% link {{ site.current_cloud_version }}/install-cockroachdb-mac.md %}) cluster.
16
+
- Install the [MOLT (Migrate Off Legacy Technology)]({% link releases/molt.md %}#installation) tools.
17
+
- Review the MOLT Fetch [best practices]({% link molt/molt-fetch.md %}#best-practices).
18
+
- Review [Migration Strategy]({% link molt/migration-strategy.md %}).
0 commit comments