From 6541317489cb220c83e845361bdec081ada1ad49 Mon Sep 17 00:00:00 2001 From: travelliu Date: Fri, 26 Apr 2024 14:50:29 +0800 Subject: [PATCH 1/2] update(MTK): nchar/nvarchar col length --- product/en/docs-mtk/v2.0/faq/faqs.md | 7 +++++++ product/zh/docs-mtk/v2.0/faq/faqs.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/product/en/docs-mtk/v2.0/faq/faqs.md b/product/en/docs-mtk/v2.0/faq/faqs.md index 26addfd0..7cc2dba6 100644 --- a/product/en/docs-mtk/v2.0/faq/faqs.md +++ b/product/en/docs-mtk/v2.0/faq/faqs.md @@ -50,6 +50,10 @@ The following scenarios exist. |oracle |AL32UTF8 |CHAR(2 ) |CHAR(2)|openGauss|UTF8|A| |oracle |AL32UTF8 |CHAR(1 ) |CHAR(1)|openGauss|UTF8|PG/B| |oracle |AL32UTF8 |CHAR(2 ) |CHAR(2)|openGauss|UTF8|PG/B| +|oracle |ZHS16GBK |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(8)|openGauss|GBK/GB18030|A| +|oracle |ZHS16GBK |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(2)|openGauss|GBK/GB18030|PG/B| +|oracle |AL32UTF8 |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(6)|openGauss|UTF8|A| +|oracle |AL32UTF8 |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(2)|openGauss|UTF8|PG/B| |MySQL |GBK |VARCHAR(100 ) |VARCHAR(300)|openGauss|UTF8|A| |MySQL |GBK |VARCHAR(100 ) |VARCHAR(300)|openGauss|GBK|A| |MySQL |UTF8 |VARCHAR(100 ) |VARCHAR(300)|openGauss|UTF8|A| @@ -71,6 +75,9 @@ The following scenarios exist. |DB2 |AL32UTF8 |CHAR(1 ) |CHAR(1)|openGauss|UTF8|PG/B| |DB2 |AL32UTF8 |CHAR(2 ) |CHAR(2)|openGauss|UTF8|PG/B| +> Migrate Oracle ZHS16GBK NCHAR/NVARCHAR to MogDB GBK A mode length change \*4 starting from 2.9.8 +> Because some Chinese characters are encoded in GB18030-2022 and become 4 bytes. However, NCHAR/NVARCHAR will consider 1 character, and the original \*2 will cause the length to be insufficient. + ## Empty String and NULL conversions ? - Oracle `''` = `NULL` diff --git a/product/zh/docs-mtk/v2.0/faq/faqs.md b/product/zh/docs-mtk/v2.0/faq/faqs.md index 25a6ebd3..3fba12f5 100644 --- a/product/zh/docs-mtk/v2.0/faq/faqs.md +++ b/product/zh/docs-mtk/v2.0/faq/faqs.md @@ -44,6 +44,10 @@ Char类型数据需要注意. 如在Oracle里Char(1)迁移到openGauss/MogDB就 |oracle |ZHS16GBK |CHAR(2 ) |CHAR(3)|openGauss|UTF8|A| |oracle |ZHS16GBK |CHAR(1 ) |CHAR(1)|openGauss|UTF8|PG/B| |oracle |ZHS16GBK |CHAR(2 ) |CHAR(2)|openGauss|UTF8|PG/B| +|oracle |ZHS16GBK |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(8)|openGauss|GBK/GB18030|A| +|oracle |ZHS16GBK |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(2)|openGauss|GBK/GB18030|PG/B| +|oracle |AL32UTF8 |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(6)|openGauss|UTF8|A| +|oracle |AL32UTF8 |NCHAR/NVARCHAR2(2)|CHAR/VARCHAR(2)|openGauss|UTF8|PG/B| |oracle |AL32UTF8 |CHAR(1 ) |CHAR(1)|openGauss|UTF8|A| |oracle |AL32UTF8 |CHAR(2 ) |CHAR(2)|openGauss|UTF8|A| |oracle |AL32UTF8 |CHAR(1 ) |CHAR(1)|openGauss|UTF8|PG/B| @@ -69,6 +73,9 @@ Char类型数据需要注意. 如在Oracle里Char(1)迁移到openGauss/MogDB就 |DB2 |AL32UTF8 |CHAR(1 ) |CHAR(1)|openGauss|UTF8|PG/B| |DB2 |AL32UTF8 |CHAR(2 ) |CHAR(2)|openGauss|UTF8|PG/B| +> 迁移 Oracle ZHS16GBK NCHAR/NVARCHAR 到 MogDB GBK A模式从 2.9.8 开始长度变成\*4 +> 因为部分汉字在GB18030-2022编码变成4个字节. 但是在NCHAR/NVARCHAR会认为1个字符,原有\*2会导致长度不够 + ## 存在空字符串和NULL转换? - Oracle `''` = `NULL` -- Gitee From 2eadc8d94f43c1cab9c9a4d6fbd2156fe7a0df59 Mon Sep 17 00:00:00 2001 From: travelliu Date: Fri, 26 Apr 2024 15:53:59 +0800 Subject: [PATCH 2/2] update(MTK): Mig Oracle To MogDB --- product/en/docs-mtk/v2.0/config/mtk-dsn.md | 2 +- .../v2.0/faq/mtk-oracle-to-openGauss.md | 109 +++++++++++++++++ product/en/docs-mtk/v2.0/mtk-usage.md | 86 +------------- product/zh/docs-mtk/v2.0/config/mtk-dsn.md | 2 +- .../v2.0/faq/mtk-oracle-to-openGauss.md | 111 +++++++++++++++++- product/zh/docs-mtk/v2.0/mtk-usage.md | 89 +------------- 6 files changed, 233 insertions(+), 166 deletions(-) diff --git a/product/en/docs-mtk/v2.0/config/mtk-dsn.md b/product/en/docs-mtk/v2.0/config/mtk-dsn.md index 89e5183e..be8ab448 100644 --- a/product/en/docs-mtk/v2.0/config/mtk-dsn.md +++ b/product/en/docs-mtk/v2.0/config/mtk-dsn.md @@ -64,7 +64,7 @@ Other reference documents: [Go DRiver for Oracle User Guide](https://godror.github.io/godror/doc/connection.html) -[Oracle Database 19c Easy Connect Plus Configurable Database Connection Syntax](https://download.oracle.com/ocomdocs/global/Oracle-Net-19c-Easy-Connect-Plus.pdf) +[Net Services Administrator's Guide](https://docs.oracle.com/en/database/oracle/oracle-database/19/netag/database-net-services-administrators-guide.pdf) ```json { diff --git a/product/en/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md b/product/en/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md index 8f1389cb..db24d1b4 100644 --- a/product/en/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md +++ b/product/en/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md @@ -13,6 +13,115 @@ date: 2021-03-04 - 11.2+ - 12c+ +## How to + +1. Download And Install + + ```shell + tar -zxvf mtk__linux_.tar.gz + ``` + +2. Apply the license + + ```shell + cd mtk__linux_ + ./mtk license gen + License File Not Found (default license.json) + The License code is invalid, start applying + ? Email: xxxx@xxxx.com + >> please enter a valid email address + # copy mail file `license.json` to current dir + ``` + +3. Install [Oracle](./../mtk-usage.md#oracle) Client +4. Oracle Create User + + ```shell + sqlplus as sysdba + create user mtk_mig identified by "password"; + grant connect,resource to mtk_mig; + grant select any dictionary to mtk_mig; + grant select any table to mtk_mig; + grant select_catalog_role to mtk_mig; + ``` + +5. MogDB Create Database And User + + ```shell + gsql + create database db DBCOMPATIBILITY='A' ENCODING='UTF8' LC_COLLATE='C' LC_CTYPE='C'; + \c db + create user mtk_mig with password "mtkMigAbc123" sysadmin; + ``` + + > Pay attention to the character set collation. Create a database syntax reference[create database](https://docs.mogdb.io/zh/mogdb/latest/CREATE-DATABASE) + +6. Init project + + ```bash + ./mtk init-project -s oracle -t mogdb -n ora2mg + # will build a migration directory + ora2mg + ├── config + │   └── mtk.json + ├── data + ├── report + └── schema + ``` + + Edit the configuration file in advance. For details, see [Configuration File](./../config/mtk-config.md) + + ```bash + vi ora2mg/config/mtk.json + ``` + + 1. Edit `source` node to define the source database connection information. Configuration reference [source](./../config/mtk-config.md#source) + 2. Edit `target` node to define the target database connection information. Configuration reference [target](./../config/mtk-config.md#target) + + > Modify the connect and type information, and the parameter is adjusted according to the operation + + 3. Edit `object` node to define the migration object. Configuration reference [object](./../config/mtk-object.md#object) + + After editing, run [config-check](./../commands/mtk_config-check.md) + + ```shell + ./mtk config-check -c ora2mg/config/mtk.json + ``` + + The configuration file will output type information normally + + ```shell + use config : ora2mg/config/mtk.json + There is no error in the configuration file + ``` + +7. Run + + | Step |Desc| Command Desc | + |---------------------------------|---|------------------------------------------------| + | ./mtk mig-tab-pre -c ora2mg/config/mtk.json |Migration table| [mig-tab-pre](./../commands/mtk_mig-tab-pre.md) | + | ./mtk mig-tab-data -c ora2mg/config/mtk.json |Migration table data|| [mig-tab-data](./../commands/mtk_mig-tab-data.md) | + | ./mtk mig-tab-post -c ora2mg/config/mtk.json |Migration index/cons|| [mig-tab-post](./../commands/mtk_mig-tab-post.md) | + | ./mtk mig-tab-other -c ora2mg/config/mtk.json |Migration plsql|| [mig-tab-other](./../commands/mtk_mig-tab-other.md) | + +8. view Report + + Reports and run logs are generated in the `ora2og/report` directory. as follows + + ```bash + [2022-01-20 11:29:25.800978] INFO reportDir: ora2mg/report/report_20220120110125 function=GenReport line=412 file=mtk/cmd/mtk/services/cmd.go + [2022-01-20 11:29:26.426822] INFO the text report : ora2mg/report/report_20220120110125.txt function=PrintReport line=270 file=mtk/cmd/mtk/services/cmd.go + [2022-01-20 11:29:26.429545] INFO the warring report : ora2mg/report/report_20220120110125.warring function=PrintReport line=281 file=mtk/cmd/mtk/services/cmd.go + [2022-01-20 11:29:26.430118] INFO the error report : ora2mg/report/report_20220120110125.err file=mtk/cmd/mtk/services/cmd.go function=PrintReport line=292 + ``` + + | file name | description | + |---------------------------------------------|---------------------------------------------------| + | ora2mg/report/report_20220120110125 | html report | + | ora2mg/report/report_20220120110125.txt | text report | + | ora2mg/report/report_20220120110125.warring | A text report that contains only warning messages | + | ora2mg/report/report_20220120110125.err | A text report that contains only error messages | + ## Performance MTK uses Golang for development. There are the following options for connecting to the Oracle driver. diff --git a/product/en/docs-mtk/v2.0/mtk-usage.md b/product/en/docs-mtk/v2.0/mtk-usage.md index f42a2ca3..7c212b66 100644 --- a/product/en/docs-mtk/v2.0/mtk-usage.md +++ b/product/en/docs-mtk/v2.0/mtk-usage.md @@ -21,54 +21,7 @@ date: 2021-03-04 ./mtk license gen ``` -## Migrate Oracle To MogDB - -Migrating Oracle to MogDB FAQ reference [Oracle To MogDB](./faq/mtk-oracle-to-openGauss.md) - -### Install [Oracle](./mtk-env.md#oracle) Client - -### init project - -```bash -./mtk init-project -s oracle -t mogdb -n ora2mg -# will build a migration directory -ora2mg -├── config -│   └── mtk.json -├── data -├── report -└── schema -``` - -### edit the configuration file - -Edit the configuration file in advance. For details, see [Configuration File](./config/mtk-config.md) - -```bash -vi ora2mg/config/mtk.json -``` - -1. Edit `source` node to define the source database connection information. Configuration reference [source](config/mtk-config.md#source) -2. Edit `target` node to define the target database connection information. Configuration reference [target](config/mtk-config.md#target) - - > Modify the connect and type information, and the parameter is adjusted according to the operation - -3. Edit `object` node to define the migration object. Configuration reference [object](config/mtk-object.md#object) - -After editing, run [config-check](commands/mtk_config-check.md) - -```shell -./mtk config-check -c ora2mg/config/mtk.json -``` - -The configuration file will output type information normally - -```shell -use config : ora2mg/config/mtk.json -There is no error in the configuration file -``` - -### run +## Common Command ```bash ./mtk -c ora2mg/config/mtk.json @@ -78,45 +31,18 @@ There is no error in the configuration file ./mtk -c ora2mg/config/mtk.json --schemaOnly # Only Data is migrated ./mtk -c ora2mg/config/mtk.json --dataOnly -``` - -### view Report - -Reports and run logs are generated in the `ora2og/report` directory. as follows - -```bash -[2022-01-20 11:29:25.800978] INFO reportDir: ora2mg/report/report_20220120110125 function=GenReport line=412 file=mtk/cmd/mtk/services/cmd.go -[2022-01-20 11:29:26.426822] INFO the text report : ora2mg/report/report_20220120110125.txt function=PrintReport line=270 file=mtk/cmd/mtk/services/cmd.go -[2022-01-20 11:29:26.429545] INFO the warring report : ora2mg/report/report_20220120110125.warring function=PrintReport line=281 file=mtk/cmd/mtk/services/cmd.go -[2022-01-20 11:29:26.430118] INFO the error report : ora2mg/report/report_20220120110125.err file=mtk/cmd/mtk/services/cmd.go function=PrintReport line=292 -``` - -| file name | description | -|---------------------------------------------|---------------------------------------------------| -| ora2mg/report/report_20220120110125 | html report | -| ora2mg/report/report_20220120110125.txt | text report | -| ora2mg/report/report_20220120110125.warring | A text report that contains only warning messages | -| ora2mg/report/report_20220120110125.err | A text report that contains only error messages | - -### export as a file - -```bash +# export to file ./mtk -c ora2mg/config/mtk.json --file -# Only Schema is migrated -./mtk -c ora2mg/config/mtk.json --file --schemaOnly -# Only Data is migrated -./mtk -c ora2mg/config/mtk.json --file --dataOnly -``` - -### The command line specifies the migration object - -```bash # specify the table ./mtk -c ora2mg/config/mtk.json --tables schema1.table1,schema2.table2 # specify the schema ./mtk -c ora2mg/config/mtk.json --schemas schema1,schema2 ``` +## Migrate Oracle To MogDB + +Migrating Oracle to MogDB FAQ reference [Oracle To MogDB](./faq/mtk-oracle-to-openGauss.md) + ## Migrate MySQL to MogDB Migrating MySQL to MogDB FAQ reference [MySQL To MogDB](./faq/mtk-mysql-to-openGauss.md) diff --git a/product/zh/docs-mtk/v2.0/config/mtk-dsn.md b/product/zh/docs-mtk/v2.0/config/mtk-dsn.md index bac785a1..b70a7a73 100644 --- a/product/zh/docs-mtk/v2.0/config/mtk-dsn.md +++ b/product/zh/docs-mtk/v2.0/config/mtk-dsn.md @@ -62,7 +62,7 @@ or [Go DRiver for Oracle User Guide](https://godror.github.io/godror/doc/connection.html) -[Oracle Database 19c Easy Connect Plus Configurable Database Connection Syntax](https://download.oracle.com/ocomdocs/global/Oracle-Net-19c-Easy-Connect-Plus.pdf) +[Net Services Administrator's Guide](https://docs.oracle.com/en/database/oracle/oracle-database/19/netag/database-net-services-administrators-guide.pdf) ```json { diff --git a/product/zh/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md b/product/zh/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md index 07c11ab2..2c0dd7f6 100644 --- a/product/zh/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md +++ b/product/zh/docs-mtk/v2.0/faq/mtk-oracle-to-openGauss.md @@ -13,7 +13,116 @@ date: 2021-03-04 - 11.2+ - 12c+ -
+## How to + +1. 下载安装MTK + + ```shell + tar -zxvf mtk__linux_.tar.gz + ``` + +2. 申请授权 + + ```shell + cd mtk__linux_ + ./mtk license gen + License File Not Found (default license.json) + The License code is invalid, start applying + ? Email: xxxx@xxxx.com -- 填写邮箱信息 + >> please enter a valid email address + # 复制邮箱里的文件`license.json`到此目录 + ``` + +3. 安装Oracle驱动. 参考[Oracle](./../mtk-usage.md#oracle) +4. Oracle创建迁移用户 + + ```shell + sqlplus as sysdba + create user mtk_mig identified by "password"; + grant connect,resource to mtk_mig; + grant select any dictionary to mtk_mig; + grant select any table to mtk_mig; + grant select_catalog_role to mtk_mig; + ``` + +5. MogDB 创建数据库和用户 + + ```shell + gsql + create database db DBCOMPATIBILITY='A' ENCODING='UTF8' LC_COLLATE='C' LC_CTYPE='C'; + \c db + create user mtk_mig with password "mtkMigAbc123" sysadmin; + ``` + + > 注意字符集排序规则. 创建数据库语法参考[create database](https://docs.mogdb.io/zh/mogdb/latest/CREATE-DATABASE) + +6. 初始化项目 + + ```shell + ./mtk init-project -s oracle -t mogdb -n ora2mg + tree -f ora2mg/ + ora2mg + ├── ora2mg/config + │ └── ora2mg/config/mtk.json + ├── ora2mg/data + ├── ora2mg/report + └── ora2mg/schema + ``` + + 编辑配置文件. 具体查看[MTK配置说明](./../config/mtk-config.md)章 + + ```bash + vi ora2mg/config/mtk.json + ``` + + 1. 编辑`source`节点,定义源数据库连接信息. 配置参考[source](./../config/mtk-config.md#source) + 2. 编辑`target`节点,定义目标数据库连接信息. 配置参考[target](./../config/mtk-config.md#target) + + > 修改connect和type信息,parameter根据运行在进行调整 + + 3. 编辑`object`节点,定义迁移对象. 配置参考[object](./../config/mtk-object.md#object) + + 编辑完成后,运行[config-check](./../commands/mtk_config-check.md)检查配置文件是否正确 + + ```shell + ./mtk config-check -c ora2mg/config/mtk.json + ``` + + 配置文件配置正常会输出类型信息 + + ```shell + use config : ora2mg/config/mtk.json + There is no error in the configuration file + ``` + +7. 迁移 + + | 步骤 |描述| 命令 | + |---------------------------------|---|------------------------------------------------| + | ./mtk mig-tab-pre -c ora2mg/config/mtk.json |迁移表| [mig-tab-pre](./../commands/mtk_mig-tab-pre.md) | + | ./mtk mig-tab-data -c ora2mg/config/mtk.json |迁移表数据|| [mig-tab-data](./../commands/mtk_mig-tab-data.md) | + | ./mtk mig-tab-post -c ora2mg/config/mtk.json |迁移索引约束|| [mig-tab-post](./../commands/mtk_mig-tab-post.md) | + | ./mtk mig-tab-other -c ora2mg/config/mtk.json |迁移存储过程PLSQL相关|| [mig-tab-other](./../commands/mtk_mig-tab-other.md) | + +8. 查看报告 + + 报告和运行日志会生成在`ora2og/report`目录下. 如下 + + ```bash + [2022-01-20 11:29:25.800978] INFO reportDir: ora2mg/report/report_20220120110125 function=GenReport line=412 file=mtk/cmd/mtk/services/cmd.go + [2022-01-20 11:29:26.426822] INFO the text report : ora2mg/report/report_20220120110125.txt function=PrintReport line=270 file=mtk/cmd/mtk/services/cmd.go + [2022-01-20 11:29:26.429545] INFO the warring report : ora2mg/report/report_20220120110125.warring function=PrintReport line=281 file=mtk/cmd/mtk/services/cmd.go + [2022-01-20 11:29:26.430118] INFO the error report : ora2mg/report/report_20220120110125.err file=mtk/cmd/mtk/services/cmd.go function=PrintReport line=292 + ``` + + | 文件名 | 说明 | + |---------------------------------------------|--------------------------| + | ora2mg/report/report_20220120110125 | html报告 | + | ora2mg/report/report_20220120110125.txt | 文本报告 | + | ora2mg/report/report_20220120110125.warring | 只包含警告信息的文本报告 | + | ora2mg/report/report_20220120110125.err | 只包含错误信息的文本报告 | + +## Performance MTK 使用 Golang 进行开发. 连接Oracle的驱动有以下选择. diff --git a/product/zh/docs-mtk/v2.0/mtk-usage.md b/product/zh/docs-mtk/v2.0/mtk-usage.md index 0b9681aa..f83371a0 100644 --- a/product/zh/docs-mtk/v2.0/mtk-usage.md +++ b/product/zh/docs-mtk/v2.0/mtk-usage.md @@ -21,103 +21,26 @@ date: 2021-03-04 ./mtk license gen ``` -## 迁移Oracle到MogDB - -迁移Oracle到MogDB常见问题参考[Oracle To MogDB](./faq/mtk-oracle-to-openGauss.md) - -### 安装[Oracle](./mtk-env.md#oracle)客户端 - -### 初始化项目 - -```bash -## 迁移Oracle到MogDB -./mtk init-project -s oracle -t mogdb -n ora2mg -# will build a migration directory -ora2mg -├── config -│   └── mtk.json -├── data -├── report -└── schema -``` - -### 编辑配置文件 - -具体查看[MTK配置说明](./config/mtk-config.md)章 - -```bash -vi ora2mg/config/mtk.json -``` - -1. 编辑`source`节点,定义源数据库连接信息. 配置参考[source](config/mtk-config.md#source) -2. 编辑`target`节点,定义目标数据库连接信息. 配置参考[target](config/mtk-config.md#target) - - > 修改connect和type信息,parameter根据运行在进行调整 - -3. 编辑`object`节点,定义迁移对象. 配置参考[object](config/mtk-object.md#object) - -编辑完成后,运行[config-check](commands/mtk_config-check.md)检查配置文件是否正确 - -```shell -./mtk config-check -c my2mg/config/mtk.json -``` - -配置文件配置正常会输出类型信息 - -```shell -use config : ora2mg/config/mtk.json -There is no error in the configuration file -``` - -### 运行 - -```bash -./mtk -c ora2mg/config/mtk.json -# or debug -./mtk -c ora2mg/config/mtk.json --debug -# 只迁移Schema -./mtk -c ora2mg/config/mtk.json --schemaOnly -# 只迁移Data -./mtk -c ora2mg/config/mtk.json --dataOnly -``` - -### 查看报告 - -报告和运行日志会生成在`ora2og/report`目录下. 如下 - -```bash -[2022-01-20 11:29:25.800978] INFO reportDir: ora2mg/report/report_20220120110125 function=GenReport line=412 file=mtk/cmd/mtk/services/cmd.go -[2022-01-20 11:29:26.426822] INFO the text report : ora2mg/report/report_20220120110125.txt function=PrintReport line=270 file=mtk/cmd/mtk/services/cmd.go -[2022-01-20 11:29:26.429545] INFO the warring report : ora2mg/report/report_20220120110125.warring function=PrintReport line=281 file=mtk/cmd/mtk/services/cmd.go -[2022-01-20 11:29:26.430118] INFO the error report : ora2mg/report/report_20220120110125.err file=mtk/cmd/mtk/services/cmd.go function=PrintReport line=292 -``` - -| 文件名 | 说明 | -|---------------------------------------------|--------------------------| -| ora2mg/report/report_20220120110125 | html报告 | -| ora2mg/report/report_20220120110125.txt | 文本报告 | -| ora2mg/report/report_20220120110125.warring | 只包含警告信息的文本报告 | -| ora2mg/report/report_20220120110125.err | 只包含错误信息的文本报告 | - -### 导出成文件 +## 常用命令 ```bash +# 导出成文件 ./mtk -c ora2mg/config/mtk.json --file # 只迁移Schema ./mtk -c ora2mg/config/mtk.json --file --schemaOnly # 只迁移Data ./mtk -c ora2mg/config/mtk.json --file --dataOnly -``` - -### 命令行指定迁移对象 -```bash # 指定表 ./mtk -c ora2mg/config/mtk.json --tables schema1.table1,schema2.table2 # 指定Schema ./mtk -c ora2mg/config/mtk.json --schemas schema1,schema2 ``` +## 迁移Oracle到MogDB + +迁移Oracle到MogDB 参考[Oracle To MogDB](./faq/mtk-oracle-to-openGauss.md) + ## MySQL to MogDB 迁移MySQL到MogDB常见问题参考[MySQL To MogDB](./faq/mtk-mysql-to-openGauss.md) -- Gitee