数据仓库服务 GaussDB(DWS)-迁移参数指导:参数说明

时间:2025-02-12 15:05:07

参数说明

表1 参数列表

全称

缩写

数据类型

说明

范围

默认值

示例

--source-db

-S

字符串

源数据库。

  • Teradata
  • MySQL

N/A

--source-db Teradata(or)

-S Teradata

--input-folder

-I

字符串

包含Teradata脚本的输入文件夹。

不适用

不适用

--input-folder /home/testmigration/Documentation/input

(or)

-I /home/testmigration/Documentation/input

--output-folder

-O

字符串

保持迁移后脚本的输出文件夹。

不适用

不适用

--output-folder /home/testmigration/Documentation/output(or)-O /home/testmigration/Documentation/output

--application-lang

-A

字符串

用于迁移的应用程序语言解析器。

SQL:迁移SQL文件中的SQL模式/脚本。

Perl:迁移Perl文件中的BTEQ/SQL_LANG脚本。

  • SQL
  • Perl

SQL

--application-lang Perl

-A Perl

--conversion-type

-M

字符串

迁移类型。用户需根据输入脚本指定该参数:

Bulk:迁移DML和DDL脚本。

BLogic:迁移业务逻辑,如过程和函数。

BLogic仅适用于Oracle PL/SQL。

  • Bulk
  • BLogic

Bulk

--conversion-type ddl

-M ddl

--log-folder

-L

字符串

日志文件路径。

不适用

不适用

--log-folder /home/testmigration/Documentation(or)-L /home/testmigration/Documentation

--version-number

-VN

字符串

Oracle必选参数

Oracle

不适用

--version-number

-V1R8_330

--target-db

-T

字符串

目标数据库

  • gaussdbA

gaussdbA

--target-db gaussdbA (或)

-T gaussdbA

support.huaweicloud.com/tg-dws/dws_16_0025.html