Skip to content

Commit e52ffda

Browse files
Apply suggestions from code review
Co-authored-by: Florence Morris <[email protected]>
1 parent 1621ce3 commit e52ffda

14 files changed

+31
-31
lines changed

src/current/_includes/molt/fetch-data-load-output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
~~~
6969

7070
{% if page.name != "migrate-bulk-load.md" %}
71-
This message includes a `cdc_cursor` value. You must set `--defaultGTIDSet` to this value when starting [`replication-only` mode](#replicate-changes-to-cockroachdb):
71+
This message includes a `cdc_cursor` value. You must set the `--defaultGTIDSet` replication flag to this value when starting [`replication-only` mode](#replicate-changes-to-cockroachdb):
7272

7373
{% include_cached copy-clipboard.html %}
7474
~~~
@@ -85,7 +85,7 @@
8585

8686
{% if page.name == "migrate-data-load-replicate-only.md" %}
8787
<section class="filter-content" markdown="1" data-scope="oracle">
88-
The following message contains the appropriate `--backfillFromSCN` and `--scn` values to set when [starting`replication-only` mode](#replicate-changes-to-cockroachdb):
88+
The following message shows the appropriate values for the `--backfillFromSCN` and `--scn` replication flags to use when [starting`replication-only` mode](#replicate-changes-to-cockroachdb):
8989

9090
{% include_cached copy-clipboard.html %}
9191
~~~

src/current/_includes/molt/fetch-intermediate-file-storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MOLT Fetch can write intermediate files to either a cloud storage bucket or a lo
66
| Local file server | `--local-path`<br>`--local-path-listen-addr`<br>`--local-path-crdb-access-addr` | Write to `--local-path` on a local file server at `--local-path-listen-addr`; if the target CockroachDB cluster cannot reach this address, specify a publicly accessible address with `--local-path-crdb-access-addr`. No additional authentication is required. |
77

88
{{site.data.alerts.callout_success}}
9-
Cloud storage is often preferable to a local file server, which can require considerable disk space.
9+
Cloud storage is often preferred over a local file server, which may require significant disk space.
1010
{{site.data.alerts.end}}
1111

1212
#### Cloud storage authentication

src/current/_includes/molt/fetch-replicator-flags.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ Replication from Oracle requires `--scn` and `--backfillFromSCN`, which specify
3434
| `--stagingSchema` | **Required.** Staging schema name for the changefeed checkpoint table. |
3535
| `--metricsAddr` | Enable Prometheus metrics at a specified `{host}:{port}`. Metrics are served at `http://{host}:{port}/_/varz`. |
3636

37-
Resuming replication 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:
37+
Resuming replication 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) as the `staging database name` when it starts replication. For example:
3838

39-
~~~ shell
40-
staging database name: _replicator_1749699789613149000
39+
~~~ json
40+
{"level":"info","time":"2025-02-10T14:28:13-05:00","message":"staging database name: _replicator_1749699789613149000"}
4141
~~~
4242

4343
<section class="filter-content" markdown="1" data-scope="mysql">

src/current/_includes/molt/fetch-schema-table-filtering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MOLT Fetch can restrict which schemas (or users) and tables are migrated by using the `--schema-filter`, `--table-filter`, and `--table-exclusion-filter` flags:
1+
MOLT Fetch can restrict which schemas (or users) and tables are migrated by using the following filter flags:
22

33
| Filter type | Flag | Description |
44
|------------------------|----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|

src/current/_includes/molt/migration-create-sql-user.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ To create a user `crdb_user` in the default database (you will pass this usernam
44

55
{% include_cached copy-clipboard.html %}
66
~~~ sql
7-
CREATE USER crdb_user WITH PASSWORD '{password}';
7+
CREATE USER crdb_user WITH PASSWORD 'password';
88
~~~
99

10-
Grant the necessary permissions to run either [`IMPORT INTO`]({% link {{site.current_cloud_version}}/import-into.md %}#required-privileges) or [`COPY FROM`]({% link {{site.current_cloud_version}}/copy.md %}#required-privileges) on the target tables, depending on the MOLT Fetch [data load mode](#data-load-mode)) you will use.
10+
Grant the necessary privileges to run either [`IMPORT INTO`]({% link {{site.current_cloud_version}}/import-into.md %}#required-privileges) or [`COPY FROM`]({% link {{site.current_cloud_version}}/copy.md %}#required-privileges) on the target tables, depending on the MOLT Fetch [data load mode](#data-load-mode) you will use.
1111

1212
#### `IMPORT INTO` privileges
1313

src/current/_includes/molt/migration-prepare-database.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#### Create migration user on source database
22

3-
Create a dedicated migration user (e.g., `MIGRATION_USER`) on the source database. This user is responsible for reading data from source tables during the migration.
3+
Create a dedicated migration user (e.g., `MIGRATION_USER`) on the source database. This user is responsible for reading data from source tables during the migration. You will pass this username in the [source connection string](#source-connection-string).
44

55
<section class="filter-content" markdown="1" data-scope="postgres">
66
{% include_cached copy-clipboard.html %}
@@ -12,7 +12,7 @@ Grant the user privileges to connect, view schema objects, and select the tables
1212

1313
{% include_cached copy-clipboard.html %}
1414
~~~ sql
15-
GRANT CONNECT, RESOURCE ON DATABASE source_database TO MIGRATION_USER;
15+
GRANT CONNECT ON DATABASE source_database TO MIGRATION_USER;
1616
GRANT USAGE ON SCHEMA migration_schema TO MIGRATION_USER;
1717
GRANT SELECT ON ALL TABLES IN SCHEMA migration_schema TO MIGRATION_USER;
1818
ALTER DEFAULT PRIVILEGES IN SCHEMA migration_schema GRANT SELECT ON TABLES TO MIGRATION_USER;
@@ -37,7 +37,7 @@ FLUSH PRIVILEGES;
3737
<section class="filter-content" markdown="1" data-scope="oracle">
3838
{% include_cached copy-clipboard.html %}
3939
~~~ sql
40-
CREATE USER MIGRATION_USER IDENTIFIED BY '{password}';
40+
CREATE USER MIGRATION_USER IDENTIFIED BY 'password';
4141
~~~
4242

4343
{{site.data.alerts.callout_info}}
@@ -164,7 +164,7 @@ CREATE TABLE migration_schema."_replicator_sentinel" (
164164
);
165165
~~~
166166

167-
Grant permissions to modify the checkpoint table. In Oracle Multitenant, grant the permissions on the PDB:
167+
Grant privileges to modify the checkpoint table. In Oracle Multitenant, grant the privileges on the PDB:
168168

169169
{% include_cached copy-clipboard.html %}
170170
~~~ sql

src/current/_includes/molt/molt-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ When you run `molt fetch`, you can configure the following options for data load
4545
- [Intermediate file storage](#intermediate-file-storage): Export data to cloud storage or a local file server.
4646
- [Table handling mode](#table-handling-mode): Determine how existing target tables are initialized before load.
4747
- [Schema and table filtering](#schema-and-table-filtering): Specify schema and table names to migrate.
48-
- [Data load mode](#data-load-mode): Choose between `IMPORT INTO` or `COPY FROM`.
48+
- [Data load mode](#data-load-mode): Choose between `IMPORT INTO` and `COPY FROM`.
4949
- [Metrics](#metrics): Configure metrics collection during the load.
5050
{% if page.name != "migrate-bulk-load.md" %}
5151
- [Replication flags](#replication-flags): Configure the `replicator` process.

src/current/_includes/molt/molt-troubleshooting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
`molt fetch` exits early in the following cases, and will output a log with a corresponding `mismatch_tag` and `failable_mismatch` set to `true`:
66

77
- A source table is missing a primary key.
8-
- A source and table primary key have mismatching types.
8+
- A source primary key and target primary key have mismatching types.
99
- A [`STRING`]({% link {{site.current_cloud_version}}/string.md %}) primary key has a different [collation]({% link {{site.current_cloud_version}}/collate.md %}) on the source and target.
1010
- A source and target column have mismatching types that are not [allowable mappings]({% link molt/molt-fetch.md %}#type-mapping).
1111
- A target table is missing a column that is in the corresponding source table.
@@ -20,7 +20,7 @@
2020
<section class="filter-content" markdown="1" data-scope="oracle">
2121
##### ORA-01950: no privileges on tablespace
2222

23-
If you receive `ORA-01950: no privileges on tablespace 'USERS'`, the Oracle migration user does not have sufficient quota on the tablespace used to store its values (by default, this is `USERS`, but can vary). Grant a quota to the schema. For example:
23+
If you receive `ORA-01950: no privileges on tablespace 'USERS'`, it means the Oracle table owner (`migration_schema` in the preceding examples) does not have sufficient quota on the tablespace used to store its data. By default, this tablespace is `USERS`, but it can vary. To resolve this issue, grant a quota to the table owner. For example:
2424

2525
~~~ sql
2626
-- change UNLIMITED to a suitable limit for the table owner
@@ -62,15 +62,15 @@ If the `replicator` process is lagging significantly behind the current Oracle S
6262
If you shut down `molt` or `replicator` unexpectedly (e.g., with `kill -9` or a system crash), Oracle sessions opened by these tools may remain active.
6363

6464
- Check your operating system for any running `molt` or `replicator` processes and terminate them manually.
65-
- Once both processes are confirmed stopped, ask a DBA to check for lingering Oracle sessions with:
65+
- After confirming that both processes have stopped, ask a DBA to check for active Oracle sessions using:
6666

6767
~~~ sql
6868
SELECT sid, serial#, username, status, osuser, machine, program
6969
FROM v$session
70-
WHERE username = 'C##CDB_USER';
70+
WHERE username = 'C##MIGRATION_USER';
7171
~~~
7272

73-
Wait for any remaining sessions to show an `INACTIVE` status, then terminate them using:
73+
Wait until any remaining sessions display an `INACTIVE` status, then terminate them using:
7474

7575
~~~ sql
7676
ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;

src/current/_includes/molt/verify-output.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1. Issue the [MOLT Verify]({% link molt/molt-verify.md %}) command, specifying the source and target [connection strings](#connection-strings) and the tables to validate.
1+
1. Run the [MOLT Verify]({% link molt/molt-verify.md %}) command, specifying the source and target [connection strings](#connection-strings) and the tables to validate.
22

33
<section class="filter-content" markdown="1" data-scope="postgres">
44
{% include_cached copy-clipboard.html %}
@@ -30,7 +30,7 @@
3030
~~~
3131

3232
{{site.data.alerts.callout_info}}
33-
With Oracle Multitenant deployments, `--source-cdb` is **not** necessary for `verify`.
33+
With Oracle Multitenant deployments, while `--source-cdb` is required for `fetch`, it is **not** necessary for `verify`.
3434
{{site.data.alerts.end}}
3535
</section>
3636

src/current/molt/migrate-bulk-load.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Bulk Load Migration
3-
summary: Learn how to migrate data from a PostgreSQL or MySQL database into a CockroachDB cluster.
3+
summary: Learn how to migrate data from a source database (such as PostgreSQL, MySQL, or Oracle) into a CockroachDB cluster.
44
toc: true
55
docs_area: migrate
66
---
@@ -13,7 +13,7 @@ Use `data-load` mode to perform a one-time bulk load of source data into Cockroa
1313

1414
Perform the bulk load of the source data.
1515

16-
1. Issue the [MOLT Fetch]({% link molt/molt-fetch.md %}) command to move the source data to CockroachDB, specifying [`--mode data-load`]({% link molt/molt-fetch.md %}#fetch-mode) to perform a one-time data load. This example command passes the source and target connection strings [as environment variables](#secure-connections), writes [intermediate files](#intermediate-file-storage) to S3 storage, and uses the `truncate-if-exists` [table handling mode](#table-handling-mode) to truncate the target tables before loading data. It also limits the migration to a single schema and filters three specific tables to migrate. The [data load mode](#data-load-mode) defaults to `IMPORT INTO`.
16+
1. Run the [MOLT Fetch]({% link molt/molt-fetch.md %}) command to move the source data into CockroachDB, specifying [`--mode data-load`]({% link molt/molt-fetch.md %}#fetch-mode) to perform a one-time data load. This example command passes the source and target connection strings [as environment variables](#secure-connections), writes [intermediate files](#intermediate-file-storage) to S3 storage, and uses the `truncate-if-exists` [table handling mode](#table-handling-mode) to truncate the target tables before loading data. It limits the migration to a single schema and filters for three specific tables. The [data load mode](#data-load-mode) defaults to `IMPORT INTO`.
1717

1818
<section class="filter-content" markdown="1" data-scope="postgres">
1919
{% include_cached copy-clipboard.html %}

0 commit comments

Comments
 (0)