OceanBase
English日本語简体中文
ドキュメントホーム
製品
エコシステム
リリース

データベース

OceanBase CloudOceanBaseデータベース

ツール

OceanBase Cloud PlatformOceanBase移行サービス(OMS)OceanBaseデベロッパーセンターOceanBase Admin Tool

データベース

OceanBase CloudOceanBaseデータベース

ツール

OceanBase Cloud PlatformOceanBase移行サービス(OMS)OceanBaseデベロッパーセンターOceanBase Admin Tool
OceanBase CloudOceanBaseデータベース

OceanBase移行サービス(OMS)

V4.3.3Enterprise Edition
  • OMSドキュメント
  • OMSの概要
    • OMSの概要
    • 用語解説
    • OMS高可用性(HA)の紹介
    • Storeの原理
    • Full-Import/Incr-Syncデータ転送の原理
    • データ検証の原理について
    • システムアーキテクチャ
      • アーキテクチャ概要
      • 機能アーキテクチャ
      • コンポーネントの基本原理
    • OMS Oracle 全量移行の設計原理と影響
    • 制限事項
  • クイックスタート
    • データ移行プロセス
    • データ同期プロセス
  • OMSのデプロイ
    • デプロイメントタイプ
    • システムとネットワーク要件
    • メモリとディスク要件
    • 環境の準備
    • シングルノードデプロイ
    • 単一リージョン・マルチノード構成
    • 複数リージョン・複数ノードへのデプロイ
    • スケールアウトデプロイメント
    • スケールインのデプロイ
    • デプロイ状態の確認
    • (オプション)時系列データベースのデプロイ
  • 管理コンソール
    • OMSコンソールへのログイン
    • マネジメントコンソールの紹介
    • 個人設定
      • 個人情報の設定
      • ログインパスワードの変更
      • ログアウト
  • データ移行
    • データ移行の概要
    • MySQLデータベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • OceanBaseデータベースのMySQL互換モードのデータをMySQLデータベースに移行する
    • OracleデータベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • OceanBaseデータベースのOracle互換モードのデータをOracleデータベースに移行する
    • OracleデータベースのデータをOceanBaseデータベースのOracle互換モードに移行する
    • DB2 LUWデータベースのデータをOceanBaseデータベースのOracle互換モードに移行する
    • OceanBaseデータベースのOracle互換モードのデータをDB2 LUWデータベースに移行する
    • DB2 LUWデータベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • OceanBaseデータベースのMySQL互換モードのデータをDB2 LUWデータベースに移行する
    • OceanBaseデータベース間のデータ移行
    • 双方向同期タスクの設定
    • TiDBデータベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • PostgreSQLデータベースのデータをOceanBaseデータベースのOracle互換モードに移行する
    • PostgreSQLデータベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • PolarDB-X 1.0データベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • MilvusデータベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • OBShardingデータベースのデータをOceanBaseデータベースのMySQL互換モードに移行する
    • OceanBaseデータベースのOracle互換モードからMySQLデータベースへの増分データ移行
    • データ移行タスクの管理
      • データ移行タスクの詳細を表示する
      • データ移行タスクの名前を変更する
      • 移行対象オブジェクトの表示と変更
      • タグを使用したデータ移行タスクの管理
      • データ移行タスクの一括操作
      • 移行対象オブジェクト設定のダウンロードとインポート
      • 移行パラメータ設定の確認と変更
      • 競合ログファイルのダウンロード
      • データ移行タスクの開始と一時停止
      • データ移行タスクの終了と削除
    • DDL同期のサポート範囲と制限事項
      • MySQLデータベースからOceanBaseデータベースのMySQL互換モードへのDDL同期
        • MySQLデータベースからOceanBaseデータベースのMySQL互換モードへのDDL同期の概要
        • テーブルの作成 CREATE TABLE
          • テーブルの作成
          • 列の作成
          • インデックスまたは制約の作成
          • パーティションの作成
        • データ型の変換
        • テーブルの変更 ALTER TABLE
          • テーブルの変更
          • フィールド操作
          • 制約とインデックスの操作
          • パーティション操作
        • テーブルの全行削除 TRUNCATE TABLE
        • テーブルの名前変更 RENAME TABLE
        • テーブルの削除 DROP TABLE
        • インデックスの作成 CREATE INDEX
        • インデックスの削除 DROP INDEX
        • MySQLデータベースとOceanBaseデータベースのMySQL互換モード間のDDLの非互換点
          • 非互換点の概要
          • CREATE TABLEの非互換点
            • CREATE TABLEの非互換点
            • インデックスまたは制約でサポートされるフィールドタイプ
          • ALTER TABLEの非互換点
            • ALTER TABLEの非互換点
            • 制約のある列の型の変更
            • 制約のない列の型の変更
            • 制約のある列の長さの変更
            • 制約のない列の長さの変更
            • 制約を持つ列の削除
          • インデックスの削除DROP INDEXの非互換点
      • OceanBaseデータベースのMySQL互換モードからMySQLデータベースへのDDL同期
      • OracleデータベースからOceanBaseデータベースのOracle互換モードへのDDL同期
        • OracleデータベースからOceanBaseデータベースのOracle互換モードへのDDL同期の概要
        • テーブルの作成 CREATE TABLE
          • テーブル作成の概要
          • リレーショナルテーブルの作成
            • リレーショナルテーブルの作成
            • リレーショナルテーブルの列定義
          • 仮想列
          • 通常列
          • パーティションの作成
            • パーティションの概要
            • パーティション
            • サブパーティション
            • 複合パーティション
            • カスタムパーティション
            • サブパーティションテンプレート
          • 制約
            • 制約の概要
            • 行内制約
            • 行外制約
        • インデックスの作成 CREATE INDEX
          • インデックス作成の概要
          • 通常のテーブルインデックス
        • テーブルの変更 ALTER TABLE
          • テーブル変更の概要
          • テーブル属性の変更、削除、追加
          • 列属性の管理
            • 列属性の変更、削除、追加
            • 列名の変更
            • 列と列属性の追加
            • 列属性の変更
            • 列の削除操作
          • 制約の変更、削除、追加
          • パーティションの管理
            • パーティションの変更、削除、追加
            • パーティションの削除
            • サブパーティションの削除
            • パーティションとサブパーティションの追加
            • パーティションの変更
            • パーティションデータの削除
        • テーブルの削除 DROP TABLE
        • 名前の変更 RENAME OBJECT
        • テーブルの全行削除 TRUNCATE TABLE
        • インデックスの削除 DROP INDEX
        • OracleデータベースとOceanBaseデータベースのOracle互換モード間のDDLの非互換点
          • 非互換点の概要
          • CREATE TABLEの非互換点
          • ALTER TABLEの非互換点
            • ALTER TABLEの非互換点
            • 制約のある列の型の変更
            • 制約のない列の型の変更
            • 制約のある列の長さの変更
            • 制約のない列の長さの変更
      • OceanBaseデータベースのOracle互換モードからOracleデータベースへのDDL同期
      • DB2 LUWデータベースからOceanBaseデータベースのOracle互換モードへのDDL同期
      • OceanBaseデータベースのOracle互換モードからDB2 LUWデータベースへのDDL同期
      • DB2 LUWデータベースからOceanBaseデータベースのMySQL互換モードへのDDL同期
      • OceanBaseデータベースのMySQL互換モードからDB2 LUWデータベースへのDDL同期
      • OceanBaseデータベースのMySQL互換モード間でのDDL同期
      • OceanBaseデータベースのOracle互換モード間でのDDL同期
      • PostgreSQLデータベースからOceanBaseデータベースのMySQL互換モードへのDDL同期
      • PostgreSQLデータベースからOceanBaseデータベースのOracle互換モードへのDDL同期
      • OBShardingデータベースからOceanBaseデータベースのMySQL互換モードへのDDL同期
  • データ同期
    • データ同期の概要
    • OceanBaseデータベースのデータをKafkaに同期する
    • OceanBaseデータベースのデータをRocketMQに同期する
    • OceanBaseデータベースのデータをDataHubに同期する
    • OceanBaseデータベースのデータをSwiftに同期する
    • ODPの論理テーブルデータをOceanBaseデータベースのMySQL互換モードの物理テーブルに同期する
    • ODPの論理テーブルデータをDataHubに同期する
    • IDBの論理テーブルデータをOceanBaseデータベースのMySQL互換モードに同期する
    • IDBの論理テーブルデータをDataHubに同期する
    • MySQLデータベースのデータをDataHubに同期する
    • OracleデータベースのデータをDataHubに同期する
    • OBShardingデータベースのデータをKafkaに同期する
    • データ同期タスクの管理
      • データ同期タスクの詳細を表示する
      • データ同期タスクの名前を変更する
      • 同期オブジェクトの表示と変更
      • タグを使用したデータ同期タスクの管理
      • データ同期タスクの一括操作
      • 同期対象設定のダウンロードとインポート
      • 同期パラメータ設定の確認と変更
      • データ同期タスクの開始と一時停止
      • データ同期タスクの終了と削除
  • データ検証
    • データ検証の概要
    • データ検証タスクの新規作成
    • データ検証タスクの管理
      • データ検証タスクの詳細を表示する
      • データ検証タスクの名前を変更する
      • 検証オブジェクトの表示と変更
      • 検証パラメータの確認と変更
      • タグを使用したデータ検証タスクの管理
      • 検証オブジェクトのインポート
      • データ検証タスクの開始、一時停止、および再開
      • データ検証タスクのクローン
      • データ検証タスクの削除
  • データソースの作成と管理
    • データソースの作成
      • OceanBaseデータソースの作成
        • OceanBase物理データソースの作成
        • ODPデータソースの作成
        • IDBデータソースの作成
        • OceanBaseパブリッククラウドデータソースの作成
        • OceanBase単一マシンデータソースの作成
      • MySQLデータソースの作成
      • Oracleデータソースの作成
      • TiDBデータソースの新規作成
      • Milvusデータソースの新規作成
      • Kafkaデータソースの作成
      • RocketMQデータソースの作成
      • DataHubデータソースの新規作成
      • Swiftデータソースの作成
      • DB2 LUWデータソースの作成
      • PostgreSQLデータソースの作成
      • PolarDB-X 1.0データソースの新規作成
      • OBShardingデータソースの作成
    • データソースの管理
      • データソース情報の表示
      • データソースのコピー
      • データソースの編集
      • データソースの削除
    • データベースユーザーの作成
    • ユーザー権限の説明
    • MySQLデータベースでBinlogを有効にする
    • ソース側Oracleデータベースの最小権限
  • 運用監視
    • 運用概要
    • 概要ページにアクセスする
    • マシン
      • マシン情報の表示
      • マシンの追加
      • マシンの削除
      • Quotaの更新
      • マシンのログを表示する
      • リソースグループの管理
    • コンポーネント
      • Store
        • Storeの追加
        • Storeコンポーネントの詳細を表示する
        • Storeコンポーネントの更新
        • Storeコンポーネントの起動と一時停止
        • Storeコンポーネントの削除
      • Incr-Sync
        • Incr-Syncコンポーネントの詳細を表示する
        • Incr-Syncコンポーネントの起動と一時停止
        • Incr-Syncコンポーネントの移行
        • Incr-Syncコンポーネントの更新
        • バッチ運用保守
        • Incr-Syncコンポーネントの削除
      • Full-Import
        • Full-Importコンポーネントの詳細を表示する
        • Full-Importコンポーネントの一時停止
        • Full-Importコンポーネントの再実行と再開
        • Full-Importコンポーネントの更新
        • Full-Importコンポーネントの削除
      • Full-Verification
        • Full-Verificationコンポーネントの詳細を表示する
        • Full-Verificationコンポーネントの一時停止
        • Full-Verificationコンポーネントの再実行と再開
        • Full-Verificationコンポーネントの更新
      • Incr-Verification
        • Incr-Verificationコンポーネントの詳細を表示する
        • Incr-Verificationコンポーネントの一時停止
        • Incr-Verificationコンポーネントの再実行と再開
        • Incr-Verificationコンポーネントの更新
      • Row-Verification
        • Row-Verificationコンポーネントの詳細を表示する
    • 運用管理タスク
      • オペレーションタスクの表示
      • タスクまたはサブタスクのスキップ
      • タスクまたはサブタスクの再試行
    • パラメータテンプレート
      • 概要
      • タスクテンプレート
        • タスクテンプレートの作成
        • タスクテンプレートの表示と編集
        • タスクテンプレートのコピーとエクスポート
        • タスクテンプレートの削除
      • コンポーネントテンプレート
        • コンポーネントテンプレートの作成
        • コンポーネントテンプレートの表示と編集
        • コンポーネントテンプレートのコピーとエクスポート
        • コンポーネントテンプレートの削除
      • コンポーネントパラメータの説明
        • Storeコンポーネントのパラメータ説明
        • Incr-Syncコンポーネントのパラメータ説明
        • Full-Importコンポーネントのパラメータ説明
        • Full-Verificationコンポーネントのパラメータ説明
        • Incr-Verificationコンポーネントのパラメータ説明
        • Row-Verificationコンポーネントのパラメータ説明
        • CMコンポーネントパラメータ説明
        • Supervisorコンポーネントのパラメータ説明
  • システム管理
    • 権限管理
      • 権限管理の概要
      • ユーザー管理
      • 部門管理
    • アラート管理
      • タスクのアラート情報を表示する
      • システムアラート情報の表示
      • アラート設定
    • OCPの関連付け
    • システムパラメータ
      • システムパラメータの変更
      • 高可用性機能の設定を変更する
      • oblogproxyパラメータの説明
    • キーの管理
    • 操作監査
  • トラブルシューティングガイド
    • OMSサービスの管理
    • OMSログのトラブルシューティング
    • コンポーネントの運用
      • Supervisorコンポーネントの運用
      • Connectorのコマンドライン操作インターフェース
      • Storeコンポーネントの運用
    • コンポーネントのチューニング
      • Incr-Sync/Full-Importのチューニング
      • Oracle Storeのチューニング
    • スロットリングとレート制限の設定方法
    • Storeコンポーネントのパフォーマンス診断について
  • リファレンスガイド
    • 機能紹介
      • DDL/DMLのカスタム設定
      • DDL同期範囲
      • データベース・テーブルの名前変更
      • SQL条件によるデータのフィルタリング
      • 増分同期の開始タイムスタンプの設定
      • 移行または同期オブジェクトのマッチングルールの設定
      • 検証対象のマッチングルールを設定する
      • ワイルドカード規則の説明
      • データ移行サービスの隠し列メカニズムについて
      • 構造移行操作の説明
      • ハートビートテーブルの作成と更新
      • Topicの変更
      • 列フィルタリングと列マッピング
      • データ形式の説明
    • APIリファレンス
      • 概要
      • タスクの作成
      • タスクの開始
      • タスクの一時停止
      • タスクの再開
      • タスクの解放
      • タスクの削除
      • タスクリストのページ単位の取得
      • タスクの詳細を照会する
      • タスクのステップの詳細を照会する
      • タスクのステップメトリクスの照会
      • タスクの進捗状況を照会する
      • タスクのコンポーネント情報を照会する
      • タスクの全量検証結果を照会する
      • 指定したラベルが付いた開始されていないすべてのタスクを開始する
      • 指定したラベルが付いた実行中のすべてのタスクを一時停止する
      • MySQLデータソースの作成
      • OceanBaseデータソースの作成
      • ODPデータソースの作成
      • PolarDB-X 1.0データソースの作成
      • Milvusデータソースの作成
      • データソースリストの取得
      • ラベルの作成
      • ラベルリストの取得
      • データソースの削除
      • 転送オブジェクトの変更
      • タスクの変更履歴を照会する
      • 変更操作の中止
      • 変更操作の再試行
      • 変更のキャンセル
      • タスクの事前チェック
      • 事前チェック結果の取得
      • タスク設定の更新
      • テーブル構造変換情報のダウンロード
      • 競合ログファイルのダウンロード
      • 競合ログファイルリストの取得
      • 正逆方向の増分同期の同期ポイントを変更する
      • タスクの実行を進める
      • リージョンリストの取得
      • ユーザーの作成
      • ユーザーの削除
      • ユーザー詳細の取得
      • 部門リストの取得
      • Kafka認証ファイルのアップロード
      • Kafkaデータソースの作成
      • DB2 LUWデータソースの作成
    • アラートリファレンス
      • oms_host_down OMSマシンダウンアラート
      • oms_host_down_migrate_resource OMSマシンダウン時の移行アラート
      • oms_host_threshold OMSマシンのしきい値アラート
      • oms_migration_failed 移行タスク失敗
      • oms_migration_delay 移行タスクの遅延
      • oms_sync_failed 同期タスクの失敗
      • oms_sync_status_inconsistent 同期タスクの状態が一致しない
      • oms_sync_delay 同期タスクの遅延
    • シングルサインオン
      • OMSにOIDCプロトコルを接続してシングルサインオンを実現する
      • OMSがSAML 2.0プロトコルに接続してシングルサインオンを実装する
      • OMS SAML 2.0によるMicrosoft Entra IDへのアクセス
    • OMSエラーコード
    • データベースオブジェクトのクエリ
    • トリガーの作成
    • PostgreSQLデータベースインスタンスのログレベルを変更する
    • Online DDLツールへの対応について
    • Oracleデータベースの補足ログに関する説明
    • Milvusトピックの設定
  • アップグレードガイド
    • 概要
    • シングルノードでのアップグレード
    • 複数ノードでのアップグレード
    • よくある質問
  • リリースノート
    • リリースノート
      • バージョン番号ルール
      • V4.3
        • OMS V4.3.3
        • OMS V4.3.2
        • OMS V4.3.1
        • OMS V4.3.0
      • V4.2
        • OMS V4.2.5
        • OMS V4.2.4
        • OMS V4.2.3
        • OMS V4.2.2
        • OMS V4.2.1
        • OMS V4.2.0
      • V4.1
        • OMS V4.1.0
      • V4.0
        • OMS V4.0.2
        • OMS V4.0.1
      • V3.4
        • OMS V3.4.0
      • V3.3
        • OMS V3.3.1
        • OMS V3.3.0
      • V3.2
        • OMS V3.2.2
        • OMS V3.2.1
      • V3.1
        • OMS V3.1.0
      • V2.1
        • OMS V2.1.2
        • OMS V2.1.0

PDF をダウンロード

このページには現在中国語/日本語版がなく、英語版を表示しています。
ドキュメントフィードバック
  1. ドキュメントセンター
  2. OceanBase移行サービス(OMS)
  3. V4.3.3

CreateProject

最終更新:2026-09-04 08:13:48

Purpose
Call description
Limitations
Request path
Request parameters
Response parameters
Examples
Request example
Response example

This topic describes the CreateProject API provided by OceanBase Migration Service (OMS): how to create a migration project.

Purpose

This interface is used to create a data migration or synchronization task.

Call description

Limitations

This interface applies only to OMS V4.1.0 and later.

Request path

POST /api/v2?Action=CreateProject

Request parameters

Parameter
Type
Description
name string The name of the task, which cannot contain spaces.
type string The type of the task. Valid values: MIGRATION (indicating a data migration task) and SYNC (indicating a data synchronization task).
labelIds array A collection of tag IDs. At most five tag IDs are supported.
sourceEndpointId string The ID of the source data source. To obtain the ID, call the ListDataSource interface. The ID is in the format of e_****.
sinkEndpointId string The ID of the destination data source. To obtain the ID, call the ListDataSource interface. The ID is in the format of e_****.
transferMapping object The mapping information about objects to be transferred.
├─ mode string The object mapping mode. Valid values: SPECIFIC (indicating specific objects) and WILDCARD (indicating matching rules).
├─ databases object [] A list of database objects. For more information about the specific fields, see "Parameters in databases/databasesBlack".
├─ databasesBlack object [] A list of blacklisted database objects in the matching rules mode. For more information about the specific fields, see "Parameters in databases/databasesBlack".
├─ tableAndViewWhiteList array The whitelist of tables and views in the matching rules mode.
├─ tableAndViewBlackList array The blacklist of tables and views in the matching rules mode.
commonTransferConfig object General transfer configurations.
├─ tableCategory string The supported table type. Valid values: ALL (all tables), WITH_UNIQUE_ROW_ID (tables with unique row identifiers), and WITHOUT_UNIQUE_ROW_ID (tables without unique row identifiers). Default value: ALL.
├─ activeActive boolean Specifies whether the scenario is a disaster recovery dual-active scenario.
├─ mqSerializerType string The JSON serialization type when data is delivered to a message queue. Valid values: DEFAULT, CANAL, DATAWORKS_V2, SHAREPLEX, DEFAULT_WITH_SCHEMA, DEBEZIUM, DEBEZIUMFLATTEN, and DEBEZIUMSMT.
├─ mqPartitionMode string The partition routing mode when data is delivered to a message queue. Valid values: ONE (specify the partition to deliver data to), HASH (hash partition data based on primary keys or shard column values), and TABLE (hash partition data based on database and table names).
├─ mqPartition integer When partitionMode is ONE, this parameter specifies the position of the partition in the current topic.
├─ datahubTopicType string The type of the topic to which data is delivered to a DataHub instance. Valid values: TUPLE and BLOB.
├─ rocketMqProducerGroup string The name of the producer group. This parameter is effective only when the destination data source is a RocketMQ data source. Default value: OMS.
├─ rocketMqMsgTags string The message tags. This parameter is effective only when the destination data source is a RocketMQ data source. Default value: default->default_tag. If the value of this parameter is default, _tag is appended as the suffix.
├─ rocketMqEnableMsgTrace boolean Specifies whether to enable message tracing. This parameter is effective only when the destination data source is a RocketMQ data source.
├─ rocketMqSendMsgTimeout long The timeout period for sending messages. This parameter is effective only when the destination data source is a RocketMQ data source.
├─ dataWorksBusinessName string The identifier of the business system. This parameter specifies the source of the business system for data. This parameter is supported only when the serializer is set to DataWorks. The value of this parameter must be 1 to 20 characters in length.
├─ sinkStoreFormat string The object storage type of the destination table. Valid values: Default, Row storage, Column storage, and Hybrid columnar storage.
This parameter is effective only when the destination OceanBase Database is V4.3.0 or later and the migration type is Schema Migration or Incremental Synchronization > DDL synchronization.
├─ sourceStoreFormat string The object storage type of the source table. Valid values: Default, Row storage, Column storage, and Hybrid columnar storage.
This parameter is effective only when the source OceanBase Database is V4.3.0 or later and the migration type is Reverse Increment > DDL synchronization.
enableStructTransfer boolean Specifies whether to allow schema transfer.
structTransferConfig object The configuration of schema transfer.
├─ byteCharConvertStrategy string The byte/char conversion strategy. Valid values: IGNORE_BYTE_IF_BYTE_USED, FORCE_CHAR_IF_BYTE_USED, EXPAND_LEN_IF_BYTE_USED, and DO_NOTHING_IF_BYTE_USED (default).
├─ deferIndexCreation boolean Specifies whether to allow index creation to be postponed. The default value is false.
enableFullTransfer boolean Specifies whether to enable full data transfer.
enableFullVerify boolean Specifies whether to enable full data verification.
fullTransferConfig object The configuration of full data transfer.
├─ nonePkUkTruncateDstTable boolean Specifies whether to truncate the destination table when performing full data migration for a source table without a unique index.
├─ allowDestTableNotEmpty boolean The processing strategy when the destination table contains records. Valid values: Ignore and Stop Migration.
  • If this parameter is set to true, the migration ignores the existing data in the destination table. When data is written to the destination table, conflicts with the original data are logged, and the original data is retained.

    Notice

    If you select Ignore, full verification will use the IN mode to pull data, which cannot verify cases where the destination table contains data that the source table does not have. The performance of full verification will also be degraded to some extent.

  • If this parameter is set to false, the migration is stopped when the destination table contains data. An error is returned, indicating that the migration is not allowed. You must clean up the data in the destination table before you continue the migration.

    Notice

    If you click Resume after an error occurs, the OMS console will ignore this parameter and continue to migrate table data. Proceed with caution.

├─ throttleRps integer The maximum allowed transfer rate in terms of the number of records per second during full data transfer. Set this parameter to null to indicate no restriction on RPS.
├─ throttleIOPS integer The maximum allowed transfer rate in terms of bytes per second during full data transfer. Set this parameter to null to indicate no restriction on IOPS.
enableIncrTransfer boolean Specifies whether to enable incremental synchronization.
enableReverseIncrTransfer boolean Specifies whether to enable reverse incremental synchronization.
incrTransferConfig object The configuration of incremental synchronization.
├─ startTimestamp string The starting timestamp for incremental synchronization. This parameter is supported only when incremental synchronization is enabled but full data transfer is not enabled.
├─ recordTypeWhiteList array The data types of incremental data to be synchronized in incremental synchronization mode. Valid values: HEARTBEAT, INSERT, UPDATE, DELETE, BEGIN, COMMIT, ROLLBACK, DDL, and ROW.
├─ storeLogKeptHour integer The log retention period in hours when the incremental log puller is a Store. The default value is 7, and the maximum value is 365.
├─ enableSequencingWithinTxn boolean Specifies whether to enable sequence number arrangement within a transaction when the incremental log puller is a Store.
├─ enableIncrSyncStatistics boolean Specifies whether to enable statistics collection for incremental records (DML and DDL).
├─ incrOnlineDdlConfig array The value of this parameter indicates the name of an Online DDL tool. Valid values: GH_OST, PT_OSC, and ALIYUN_DMS, which indicate gh-ost, pt-osc, and Alibaba Cloud DMS, respectively.
  • This parameter is effective only in the configuration of forward incremental synchronization for data migration from a MySQL database to a MySQL-compatible tenant of OceanBase Database.
  • This parameter is effective only in the configuration of reverse incremental synchronization for data migration from a MySQL-compatible tenant of OceanBase Database to a MySQL database.
├─ incrSyncConcurrency integer The number of threads for incremental synchronization. The default value is 64.
├─ incrLogPullSpeedMode string The incremental log pulling speed. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom).
├─ incrLogPullSpeedConfig object The incremental log pulling resource configuration. This parameter is effective only when incrLogPullSpeedMode is set to CUSTOM.
├─├─ memory integer The maximum memory size allowed for incremental log pulling.
├─ incrLogSyncSpeedMode string The incremental data writing speed. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom).
├─ incrLogSyncSpeedConfig object The incremental data writing resource configuration. This parameter is effective only when incrLogSyncSpeedMode is set to CUSTOM.
├─├─ memory integer The maximum memory size allowed for incremental log writing.
├─├─ writerWorkerNum integer The number of concurrent incremental log writers.
├─ throttleRps integer The maximum allowed transfer rate in terms of the number of records per second during incremental synchronization. Set this parameter to null to indicate no restriction on RPS.
├─ throttleIOPS integer The maximum allowed transfer rate in terms of bytes per second during incremental synchronization. Set this parameter to null to indicate no restriction on IOPS.
├─ supportDDLTypes array The supported DDL types.
  • CREATE_TABLE
  • ALTER_TABLE
  • DROP_TABLE
  • RENAME_TABLE
  • TRUNCATE_TABLE
  • CREATE_INDEX
  • DROP_INDEX
reverseIncrTransferConfig object The configuration of reverse incremental synchronization.
├─ startTimestamp string The starting timestamp for reverse incremental synchronization. This parameter is supported only when incremental synchronization is enabled but full data transfer is not enabled.
├─ recordTypeWhiteList array The data types of incremental data to be synchronized in reverse incremental synchronization mode. Valid values: HEARTBEAT, INSERT, UPDATE, DELETE, BEGIN, COMMIT, ROLLBACK, DDL, and ROW.
├─ storeLogKeptHour integer The log retention period in hours when the incremental log puller is a Store for reverse incremental synchronization. The default value is 7, and the maximum value is 365.
├─ enableSequencingWithinTxn boolean Specifies whether to enable sequence number arrangement within a transaction when the incremental log puller is a Store for reverse incremental synchronization.
├─ enableIncrSyncStatistics boolean Specifies whether to enable statistics collection for incremental records (DML and DDL) in reverse incremental synchronization.
├─ incrOnlineDdlConfig array The value of this parameter indicates the name of an Online DDL tool. Valid values: GH_OST, PT_OSC, and ALIYUN_DMS, which indicate gh-ost, pt-osc, and Alibaba Cloud DMS, respectively.
  • This parameter is effective only in the configuration of forward incremental synchronization for data migration from a MySQL database to a MySQL-compatible tenant of OceanBase Database.
  • This parameter is effective only in the configuration of reverse incremental synchronization for data migration from a MySQL-compatible tenant of OceanBase Database to a MySQL database.
├─ incrSyncConcurrency integer The number of threads for reverse incremental synchronization. The default value is 64.
├─ incrLogPullSpeedMode string The incremental log pulling speed. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom).
├─ incrLogPullSpeedConfig object The incremental log pulling resource configuration. This parameter is effective only when incrLogPullSpeedMode is set to CUSTOM.
├─├─ memory integer The maximum memory size allowed for incremental log pulling.
├─ incrLogSyncSpeedMode string The incremental data writing speed. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom).
├─ incrLogSyncSpeedConfig object The incremental data writing resource configuration. This parameter is effective only when incrLogSyncSpeedMode is set to CUSTOM.
├─├─ memory integer The maximum memory size allowed for incremental log writing.
├─├─ writerWorkerNum integer The number of concurrent incremental log writers.
├─ throttleRps integer The maximum allowed transfer rate in terms of the number of records per second during reverse incremental synchronization. Set this parameter to null to indicate no restriction on RPS.
├─ throttleIOPS integer The maximum allowed transfer rate in terms of bytes per second during reverse incremental synchronization. Set this parameter to null to indicate no restriction on IOPS.
├─ supportDDLTypes array The supported DDL types.
  • CREATE_TABLE
  • ALTER_TABLE
  • DROP_TABLE
  • RENAME_TABLE
  • TRUNCATE_TABLE
  • CREATE_INDEX
  • DROP_INDEX
  • Parameters in databases/databasesBlack

    Parameter
    Type
    Description
    mappedName string The name of the database in the target.
    name string The name of the database in the source.
    id string The ID of the database.
    tables array The configurations of table objects to be transferred in the current database. When mode is WILDCARD, this parameter specifies the configurations of blacklisted or whitelisted tables and views.
    ├─ mappedName string The mapped name of a table.
    ├─ name string The name of a table.
    ├─ id string The ID of a table.
    ├─ whereClause string A standard SQL WHERE clause for configuring row filtering.

    Notice

    When mode is WILDCARD, you cannot set whereClause.

    ├─ filterColumns array A collection of filtered columns.

    Notice

    When mode is WILDCARD, you cannot set filterColumns.

    ├─ shardColumns array A collection of sharding columns.

    Notice

    When mode is WILDCARD, you cannot set shardColumns.

    views array The configurations of view objects to be transferred in the current database.
    ├─ mappedName string The mapped name of a view.
    ├─ name string The name of a view.
    ├─ id string The ID of a view.
    ├─ whereClause string A standard SQL WHERE clause for configuring row filtering.

    Notice

    When mode is WILDCARD, you cannot set whereClause.

    ├─ filterColumns array A collection of filtered columns.

    Notice

    When mode is WILDCARD, you cannot set filterColumns.

    ├─ shardColumns array A collection of sharding columns.

    Notice

    When mode is WILDCARD, you cannot set shardColumns.

    specificTables array The configurations of specific table objects. When mode is WILDCARD, this parameter specifies the renaming and row filtering configurations for specific table objects.
    ├─ mappedName string The mapped name of a table.
    ├─ name string The name of a table.
    ├─ id string The ID of a table.
    ├─ whereClause string A standard SQL WHERE clause for configuring row filtering.

    Notice

    When mode is WILDCARD, you cannot set whereClause.

    ├─ filterColumns array A collection of filtered columns.

    Notice

    When mode is WILDCARD, you cannot set filterColumns.

    ├─ shardColumns array A collection of sharding columns.

    Notice

    When mode is WILDCARD, you cannot set shardColumns.

    specificViews array The configurations of specific view objects. When mode is WILDCARD, this parameter specifies the renaming configurations for specific view objects.
    ├─ mappedName string The mapped name of a view.
    ├─ name string The name of a view.
    ├─ id string The ID of a view.
    ├─ whereClause string A standard SQL WHERE clause for configuring row filtering.

    Notice

    When mode is WILDCARD, you cannot set whereClause.

    ├─ filterColumns array A collection of filtered columns.

    Notice

    When mode is WILDCARD, you cannot set filterColumns.

    ├─ shardColumns array A collection of sharding columns.

    Notice

    When mode is WILDCARD, you cannot set shardColumns.

Response parameters

Parameter
Type
Description
success boolean Specifies whether the call is successful.
errorDetail object Details about the error.
code string Error code.
message string Description.
advice string Suggestion.
requestId string Request ID.
pageNumber integer[int32] The page number. This parameter is effective only for paged queries.
pageSize integer[int32] The number of records per page. This parameter is effective only for paged queries.
totalCount integer[int64] The total number of records. This parameter is effective only for paged queries.
cost string The time consumed in the request, in seconds.
data string The ID of the task.

Examples

Request example

{
    "name":"test",
    "type":"MIGRATION",
    "labelIds":[
        "l_4w****wygjk"
    ],
    "sourceEndpointId":"e_4wg07f****",
    "sinkEndpointId":"e_4wfy2****",
    "transferMapping":{
        "mode":"SPECIFIC",
        "databases":[
            {
                "mappedName":"gez3***",
                "name":"ion1****bmysql",
                "id":null,
                "tables":[
                    {
                        "mappedName":"tion12***20obmysql2",
                        "name":"GRATION129****",
                        "id":null,
                        "whereClause":null,
                        "filterColumns":null,
                        "shardColumns":null,
                    }
                ],
                "views":null,
                "specificTables":null,
                "specificViews":null
            }
        ],
        "databasesBlack":null,
        "tableAndViewWhiteList":null,
        "tableAndViewBlackList":null
    },
    "commonTransferConfig":{
        "tableCategory":null,
        "activeActive":false,
        "mqSerializerType":null,
        "mqPartitionMode":null,
        "mqPartition":0,
        "datahubTopicType":null,
        "rocketMqProducerGroup":null,
        "rocketMqMsgTags":null,
        "rocketMqEnableMsgTrace":null,
        "rocketMqSendMsgTimeout":null,
        "dataWorksBusinessName":null
    },
    "enableStructTransfer":true,
    "structTransferConfig":{
        "byteCharConvertStrategy":"DO_NOTHING_IF_BYTE_USED",
        "deferIndexCreation":true
    },
    "enableFullTransfer":true,
    "enableFullVerify":true,
    "fullTransferConfig":{
        "nonePkUkTruncateDstTable":null,
        "allowDestTableNotEmpty":true,
        "throttleRps": 1000,
        "throttleIOPS": 1000,
        "fullTransferSpeedMode":"NORMAL",
        "fullVerifySpeedMode":"NORMAL"     
    },
    "enableIncrTransfer":true,
    "enableReverseIncrTransfer":true,
    "incrTransferConfig":{
        "startTimestamp":1689201369,
        "storeLogKeptHour":120,
        "recordTypeWhiteList":[
            "DELETE",
            "INSERT",
            "UPDATE"
        ],
        "enableSequencingWithinTxn":true,
        "incrSyncConcurrency":64,
        "incrLogPullSpeedMode":"NORMAL",
        "incrLogPullSpeedConfig":{
            "memory":4
            },
        "incrLogSyncSpeedMode":"CUSTOM",
        "incrLogSyncSpeedConfig":{
            "memory":4,
            "writerWorkerNum":2
            },
        "throttleRps": 1000,
        "throttleIOPS": 1000,
        "enableIncrSyncStatistics":true,
        "supportDDLTypes":[
            "CREATE_TABLE",
            "ALTER_TABLE"
        ],
        "incrOnlineDdlConfig":[
          "GH_OST",
          "PT_OSC",
          "ALIYUN_DMS"
        ]
    },
    "reverseIncrTransferConfig":{
        "startTimestamp":1689201369,
        "recordTypeWhiteList":[
            "DELETE",
            "INSERT",
            "UPDATE"
        ],
        "storeLogKeptHour":120,
        "incrSyncConcurrency":64,
        "incrLogPullSpeedMode":"NORMAL",
        "incrLogPullSpeedConfig":{
            "memory":4
            },
        "incrLogSyncSpeedMode":"CUSTOM",
        "incrLogSyncSpeedConfig":{
            "memory":4,
            "writerWorkerNum":2
            },
        "throttleRps": 1000,
        "throttleIOPS": 1000,
        "enableIncrSyncStatistics":true,
        "supportDDLTypes":[
            "CREATE_TABLE",
            "ALTER_TABLE"
        ]
    }
}

Response example

{
    "Success":true,
    "ErrorDetail":{
        "Code":"CM-RES***11",
        "Level":"WARN",
        "Message":"A system error occurred.",
        "Proposal":"Contact the administrator."
    },
    "Code":"INNER_ERROR",
    "Message":"A system error occurred.",
    "Advice":"Contact the administrator.",
    "RequestId":"XCVSADG****DSGDS",
    "PageNumber":1,
    "PageSize":1,
    "TotalCount":1,
    "Cost":"27 ms",
    "Data":"np_****"
}

次のトピック

OMSドキュメント
次へ
このページの内容
Purpose
Call description
Limitations
Request path
Request parameters
Response parameters
Examples
Request example
Response example