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

Migrate data from DM Database to OceanBase Database in Oracle compatible mode

最終更新:2026-11-27 02:24:24

Background information
Prerequisites
Limitations
Considerations
Data type mappings
Procedure

This topic describes how to use OceanBase Migration Service (OMS) to migrate data from DM Database to OceanBase Database in Oracle compatible mode (including physical data sources, public cloud data sources, and standalone data sources).

Background information

Dameng Database (DM) is a domestic relational database. By creating a data migration task in the OMS console to migrate data from DM to OceanBase Database in Oracle compatible mode, you can seamlessly migrate existing business data and incremental data from the source database to OceanBase Database in Oracle compatible mode through schema migration, full migration, incremental synchronization, and reverse incremental migration.

In the OMS console, the data source type for Dameng Database is displayed as Dameng.

Prerequisites

  • You have created the corresponding Schema in the target OceanBase Database in Oracle compatible mode.

  • You have created dedicated database users for the data migration task in both the source DM database and the target OceanBase Database in Oracle compatible mode, and granted them the necessary privileges. For details, see Create a database user. For privilege requirements of DM database users in different migration scenarios, see User privileges.

    If the migration task involves reverse incremental migration, do not use system users of DM Database (such as SYS, SYSDBA, etc.) as the migration account, otherwise reverse incremental synchronization may fail.

  • You have created a DM data source and an OceanBase Database in Oracle compatible mode data source in OMS.

  • Archiving mode has been enabled for DM Database, and logical logs have been correctly configured.

    If you need to perform incremental synchronization, ensure the source has been configured as follows. If only schema migration or full migration is performed, skip the configuration changes and restart operations below.

    1. Check the instance's existing archiving configuration to confirm whether archiving is enabled and if there is an available archive destination.

      SELECT ARCH_MODE FROM V$DATABASE;
      SELECT GROUP_NAME, ARCH_NAME, ARCH_DEST, ARCH_SPACE_LIMIT FROM V$DM_ARCH_INI ORDER BY GROUP_NAME;
      

      If ARCH_MODE is Y and the archive destination is writable, start from Step 4 to verify the parameter values below; there is no need to re-enable archiving.

    2. Log in to DM Database as the SYSDBA user.

      disql SYSDBA/<password>@<host>:<port>
      
    3. Configure a writable archive destination based on the instance's deployment method.

      The archive destination configuration methods differ for standalone, DW (primary/standby clusters), and DSC (shared storage clusters). Specify the archive destination for the instance in dmarch.ini and confirm the target directory exists and is writable by the DM instance user. Complete this step before enabling ARCH_INI; otherwise, archived data cannot be written out after archiving mode is enabled.

    4. Set the archive switch parameter ARCH_INI to 1.

      SP_SET_PARA_VALUE(1, 'ARCH_INI', 1);
      
    5. Set the logical log parameter RLOG_APPEND_LOGIC to 2.

      SP_SET_PARA_VALUE(1, 'RLOG_APPEND_LOGIC', 2);
      
    6. Set the log recording scope parameter RLOG_IGNORE_TABLE_SET to 1 to globally record logical logs.

      SP_SET_PARA_VALUE(1, 'RLOG_IGNORE_TABLE_SET', 1);
      
    7. Confirm that the current architecture scope parameters DPC_MODE and MPP_INI are both 0. This link is not supported if the values do not match.

    8. Restart the DM database instance to apply the ARCH_INI parameter.

    9. Log in to the database again and switch it to the Mount state.

      ALTER DATABASE MOUNT;
      
    10. Enable archive mode.

      ALTER DATABASE ARCHIVELOG;
      
    11. Open the database.

      ALTER DATABASE OPEN;
      
    12. Confirm that archive mode and log parameters are configured correctly.

      SELECT ARCH_MODE FROM V$DATABASE;
      SELECT PARA_NAME, PARA_VALUE FROM V$DM_INI WHERE PARA_NAME IN ('ARCH_INI', 'RLOG_APPEND_LOGIC', 'RLOG_IGNORE_TABLE_SET', 'DPC_MODE', 'MPP_INI');
      

      If ARCH_MODE is Y, and ARCH_INI is 1, RLOG_APPEND_LOGIC is 2, RLOG_IGNORE_TABLE_SET is 1, DPC_MODE and MPP_INI are 0, the configuration is correct.

    13. Confirm that archiving is actually writing and continuously generating archive files.

      After performing a small number of changes or switching log files at the source, check if new archive files have been added to the archive destination directory and confirm that archiving continues to generate over time. Having ARCH_MODE set to Y and ARCH_INI set to 1 alone does not guarantee incremental collection is available; if archiving cannot write, incremental synchronization will still fail.

      The retention scope of archives must cover the time required for the incremental start point, task backlog, and fault recovery. For archive destinations and retention requirements, see "Archive and log configuration for incremental synchronization" in User permissions.

      Note

      After configuring parameters, you must confirm that the required logs have actually been generated. Configuration changes cannot make up for previously unrecorded logical logs.

  • Clock synchronization (for example, by configuring the NTP service) is required between the machine hosting the DM database and the OMS machine; otherwise, data risks may exist.

Limitations

  • Supported source database version is DM8.

  • Supported deployment modes for DM databases are standalone, DSC (Shared Storage Cluster), and DW (Primary/Standby Cluster).

  • Migration is not supported for TEXT and LONGVARCHAR fields larger than 512 MB.

  • Limitations on operations in the source database

    Do not perform DDL operations that modify database or table structures during schema migration or full migration; otherwise, the data migration task may be interrupted.

  • Incremental synchronization from a DM database to an OceanBase database in Oracle compatible mode supports only DML synchronization, not DDL synchronization.

  • Incremental synchronization does not support the following objects. Verify the table structure before selecting migration objects:

    • Tables with floating-point primary key columns (FLOAT, DOUBLE, etc.). Precision is lost for floating-point primary keys after migration.

    • Partitioned tables without a primary key where the partitioning key column is updated at the source.

    • Updates the value of a table's cluster index (non-unique) at the source.

  • Reverse incremental synchronization does not support partitioned tables with the partitioning key excluded in column selection. When you need to reflow such tables, please retain the partitioning key columns in Select Columns on the Settings tab.

  • Data verification supports Row Count Verification and Full Verification, but does not support Incremental Validation.

  • Data verification is supported for table object types including normal tables, heap tables, partitioned tables, and columnar storage tables. Tables without a non-null unique key are also supported for verification. Among these, heap tables without a unique non-null constraint do not support Full Verification because the rowid of such tables may change, making the verification results inaccurate. When selecting such a table as the verification object for Full Verification, a prompt is displayed on the page.

  • OMS does not support triggers (Triggers) at the target. If triggers exist, data migration may fail.

  • Data source identifiers and user accounts must be globally unique within the OMS system.

  • OMS only supports migrating objects whose database, table, and column names are ASCII-compliant and do not contain special characters (including line breaks, spaces, and .|"'`()=;/&\).

  • If OceanBase Database is used as the source for incremental synchronization or as the target for reverse incremental synchronization, and the database table object contains UDT columns, the incremental synchronization task may fail due to unsupported UDT columns.

Considerations

  • If the source character set is UTF-8, it is recommended to use a character set compatible with the source at the target (for example, UTF-8, UTF-16, etc.) to avoid garbled characters at the target caused by character set incompatibility.

  • When the character encoding configurations at the source and target are different, schema migration provides strategies for expanding field length definitions. For example, lengths may be expanded by 1.5 times, and the unit may change from BYTE to CHAR.

    After conversion, data from different character sets at the source can be successfully migrated to the target. However, during reverse incremental synchronization after cutover, data exceeding the maximum length may not be written back to the source.

  • Please confirm whether the migration precision for column types such as DECIMAL, FLOAT, or DOUBLE meets your expectations in OMS. If the precision of the target field type is less than that of the source field type, truncation may occur, leading to data inconsistency between the source and target.

  • If you modify a unique index at the target, you need to restart the incremental synchronization component; otherwise, data inconsistency may occur.

  • Clock desynchronization between nodes, or between the client and the server, can cause inaccurate latency measurements (for incremental synchronization/reverse incremental synchronization).

    For example, if a clock is ahead of standard time, the latency may appear negative. If a clock is behind standard time, it may cause latency.

  • If forward switchover is not enabled for the data migration task, delete the unique indexes and pseudo-columns corresponding to the target database. Failing to delete these will prevent data writing and cause re-generation of pseudo-columns during downstream data import, leading to conflicts with the source database's pseudo-columns.

    If forward switchover is enabled for the data migration task, OMS automatically deletes hidden columns and unique indexes based on the task type. For details, see Data Migration Service Hidden Column Mechanism Description.

  • If the source contains data types with time zone information (for example, TIMESTAMP WITH TIME ZONE), ensure the target database supports and has the corresponding time zone; otherwise, data inconsistency may occur during migration.

  • In database/table aggregation scenarios:

    • It is recommended to use matching rules to map the relationship between the source and target.

    • It is recommended to create the table structure at the target manually. If using OMS to create it, skip partially failed objects in the schema migration step.

  • If the table structures at the source and target are not identical, data inconsistency may occur. Known scenarios include:

    • When manually creating a table structure, implicit conversion issues may arise outside OMS's support range, causing inconsistent column types between the source and target.

    • If the data length at the target is shorter than at the source, data truncation may occur, leading to data inconsistency between the source and target.

  • If table objects differing only in case exist at the source or target, the data migration result may not meet expectations due to case-insensitivity at the source or target.

  • If you configure only Incremental Synchronization when creating a data migration task, OMS requires the source database's archive logs to be retained for more than 48 hours.

    ​If you configure Full Migration + Incremental Synchronization when creating a data migration task, OMS requires that the source database's archived logs be retained for at least 7 days. Otherwise, the data migration task may fail due to the inability to obtain incremental logs, potentially leading to data inconsistency between the source and target.

Data type mappings

The following table describes the data type mappings from DM Database to OceanBase Database in Oracle compatible mode.

DM Database Type
OceanBase Database Oracle Compatibility Mode Types
CHAR / CHARACTER CHAR
VARCHAR VARCHAR2
VARCHAR2 VARCHAR2
NVARCHAR NVARCHAR2
NVARCHAR2 NVARCHAR2
CLOB CLOB
TEXT CLOB
LONG LONG
BIGINT NUMBER
INT / INTEGER NUMBER
SMALLINT NUMBER
TINYINT NUMBER
NUMERIC / DECIMAL NUMBER
FLOAT FLOAT
DOUBLE / REAL BINARY_DOUBLE
BIT NUMBER
DATE DATE
TIME TIMESTAMP
DATETIME TIMESTAMP
TIMESTAMP TIMESTAMP
TIMESTAMP WITH TIME ZONE TIMESTAMP WITH TIME ZONE
TIMESTAMP WITH LOCAL TIME ZONE TIMESTAMP WITH LOCAL TIME ZONE
BLOB BLOB
IMAGE BLOB
BINARY RAW
VARBINARY RAW
RAW RAW
BFILE BFILE
INTERVAL YEAR TO MONTH INTERVAL YEAR TO MONTH
INTERVAL DAY TO SECOND INTERVAL DAY TO SECOND
BOOLEAN NUMBER (1 bit)

Procedure

  1. Create a data migration task.

    1. Log in to the OMS console.

    2. In the left-side navigation pane, click Data Migration.

    3. On the Data Migration page, click Create Task in the upper-right corner.

  2. On the Create Task page, customize the name of the migration task.

    We recommend that you use a combination of Chinese characters, numbers, and letters. The name must not contain spaces and cannot exceed 64 characters in length.

    Note

    The task name is a unique identifier within the OMS system. Please choose an appropriate name.

  3. In the Select Source and Target step, configure the parameters.

    Parameter
    Description
    Source If you have created a DM database data source, select it from the Dameng group in the drop-down list. If not, click New Data Source in the drop-down list to create one in the dialog box on the right.
    Destination If you have created an OceanBase Database Oracle mode data source (including physical, public cloud, or standalone data sources), select it from the OceanBase Oracle Mode group in the drop-down list. If not, click New Data Source in the drop-down list to create one in the dialog box on the right. For parameter details, see Create a physical OceanBase data source, Create a public cloud OceanBase data source, or Create a standalone OceanBase data source.
    Tag (Optional) Click the text box and select a target tag from the drop-down list. You can also click Manage Tags to create, modify, or delete tags. For details, see Manage data migration tasks by using tags.
  4. Click Next. In the Select Migration Type step, select the migration type for the current data migration task.

    The Migration Type includes Schema Migration, Full Migration, Incremental Synchronization, and Reverse Increment.

    Migration Type
    Description
    Schema Migration After a schema migration task starts, OMS migrates the data object definitions from the source database to the destination database and automatically filters temporary tables. The object types supported for migration in the current link include Tables, Views, Sequences, Types, Stored Procedures, Functions, Packages, Triggers, and Synonyms.
    Full Migration After a full migration task starts, OMS migrates the existing data from the source database tables to the corresponding tables in the destination database.
    Incremental Synchronization After an incremental synchronization task starts, OMS synchronizes the changed data (inserts, modifications, or deletions) from the source database to the corresponding tables in the destination database.
    The Incremental Synchronization from a DM database to an OceanBase Database Oracle mode database supports only DML synchronization by default, synchronizing insert, update, and delete. You can click **Customize Synchronization Scope` to select the DML types to synchronize. For details, see Configure DDL/DML synchronization.
    Reverse Increment After a reverse increment task starts, it can real-time flow back the change data generated in the destination database after the business switch to the source database.
    The DML synchronization configuration for reverse increment is the same as that for incremental synchronization. Typically, reverse increment reuses the incremental synchronization configuration, but you can also customize it based on actual needs. The following situations do not support selecting Reverse Increment:
    • Multiple tables are involved in data aggregation.
    • There is more than one schema-to-one mapping.
    • When selecting a partitioned table, the partitioning key column was excluded from the column selection.
  5. (Optional) Click Next.

    If you have selected Reverse Increment but the corresponding parameters are not configured for the destination OceanBase Database Oracle mode data source, the Add Data Source Information dialog box will pop up, reminding you to configure them. For parameter details, see Create a physical OceanBase data source, Create a public cloud OceanBase data source, or Create a standalone OceanBase data source.

    After completing the supplementary information, click Test connectivity. After the connection test succeeds, click Save.

    Note

    This step follows the documentation format used for Oracle to OceanBase Oracle mode. The DM link format is pending verification by the console.

  6. Click Next. In the Select Migration Objects step, select the objects to migrate for the current data migration task.

    You can select migration objects through the Specify Objects or Match by Rule entry. This topic describes how to select migration objects by using the Specify Objects method. For details on configuring matching rules, see Configure matching rules for migration or synchronization objects.

    Note

    • If a database or table name contains the character "$$", it will affect the creation of the data migration task.

    • OMS automatically filters out unsupported objects. For SQL statements used to query objects, see Query database objects.

    1. In the Select Migration Objects step, select Specify Objects.

    2. Expand the source schema in the left list and select the objects to migrate. You can search for objects in the format schema.table in the search box.

      After expanding a schema, the left list displays categories such as Table and View based on object type. The category names match the supported object types described in the table above.

    3. Click > to add it to the selected objects list on the right.

    OMS supports importing objects via text. You can also hover over a target object in the right list to perform operations such as renaming databases or tables, setting filter conditions, changing the database, and removing single or all migration objects.

    Note

    When selecting migration objects using the Matching rules method, the renaming capability is overridden by the matching rule syntax, and only setting filter conditions is supported at the operation site. For details, see Configure matching rules for migration or synchronization objects.

    Note

    The button names in the following table follow the documentation conventions from Oracle to OceanBase Oracle Mode. The actual button names for the DM link will be confirmed via the console.

    Operation
    Step
    Import objects
    1. In the right list, click Import Objects in the upper-right corner.
    2. In the dialog box, click OK.
      Note: The import will overwrite previous operation selections. Proceed with caution.
    3. In the Import migration objects dialog box, import the objects to migrate.
      You can rename databases or tables, set row filter conditions, and perform other operations by importing CSV files. For details, see Download and import migration object configurations.
    4. Click Validate.
    5. After passing the validation, click OK.
    Rename OMS supports renaming migration objects. For details, see Rename a database or table.
    Settings OMS supports configuring row filtering and columns to migrate for table objects.
    1. Hover the mouse over the target object in the right list.
    2. Click the displayed Settings.
    3. In the Settings dialog box, you can perform the following operations.
      • In the text box of the Row Filters section, enter a standard SQL WHERE clause to configure row filtering. For details, see Filter data with SQL conditions.
      • In the Select Columns section, select the columns to migrate. For details, see Column filtering and column mapping.
    Remove/Remove All OMS supports removing one or more temporarily selected objects to the target during data mapping.
    • Remove a single migration object
      Hover the mouse over the target object in the right list, and click the displayed Remove to remove that migration object.
    • Remove all migration objects
      Click Remove All in the upper-right corner of the right list. In the dialog box, click OK to remove all migration objects.
  7. Click Next. In the Migration Options step, configure the parameters.

    • Schema migration

      The following parameters are displayed only if you select Schema Migration in the Select Migration Type step.

      Parameter
      Description
      Automatically enter the next stage after completion When you select schema migration or any other migration type, you can set whether to automatically enter the next stage after schema migration is completed. The default value is Yes. You can also view and modify this setting on the Schema Migration tab of the data migration task details page.
      Normal index migration method Specifies how non-unique key indexes associated with a table object are migrated after the table object is migrated. Valid values: Do Not Migrate, Migrate with Schema, and Post-Full-Migration (this option is displayed only when Full Migration is selected).
    • Full migration

      The following parameters are displayed only if you select Full Migration in the Select Migration Type step.

      Parameter
      Description
      Full Migration Rate Limit You can decide whether to enable the full migration rate limit based on your actual needs. If enabled, set the RPS (the maximum number of data rows that can be migrated to the target per second during the full migration phase) and BPS (the maximum amount of data that can be migrated to the target per second during the full migration phase).

      Note

      The RPS and BPS set here are only for throttling. The actual achievable performance during full migration is limited by factors such as the source, target, and instance specifications.

      Full Migration Resource Configuration You can select the default read concurrency, write concurrency, and memory for Small, Medium, or Large. You can also choose Custom to configure the resources for full migration. By configuring the resources for the Full-Import component, you can limit the resource consumption of a task during the full migration phase.

      Notice

      For custom configuration, the minimum value is 1, and only integers are supported.

      Processing Strategy When Target Table Has Records The processing strategies include Ignore and Stop Migration. The default is Stop Migration:
      • If Ignore is selected, when the target table has data, if the original data conflicts with the data to be written, OMS logs the conflicting data and retains the original data unchanged.
      • If Stop Migration is selected, when the target table has data, an error is reported during full migration, indicating that migration is not allowed. You must handle the data in the target table before continuing the migration.

        Notice

        If you click Resume after an error occurs, OMS will ignore this configuration option and continue migrating table data. Proceed with caution.

    • Incremental Synchronization

      The following parameters are displayed only if you have selected Incremental Synchronization in the Select Migration Type step.

      Parameter
      Description
      Incremental Synchronization Rate Limit You can decide whether to enable the incremental synchronization rate limit based on your actual needs. If enabled, set the RPS (the maximum number of data rows that can be synchronized to the target per second during incremental synchronization) and BPS (the maximum amount of data that can be synchronized to the target per second during incremental synchronization).

      Note

      The RPS and BPS set here are only for throttling. The actual achievable performance during incremental synchronization is limited by factors such as the source, target, and instance specifications.

      Incremental Log Pull Resource Configuration You can select the default memory for Small, Medium, or Large. You can also choose Custom to configure the resources for incremental log pull. By configuring the resources for the Store component, you can limit the resource consumption for log pulling during the incremental synchronization phase.

      Notice

      Only memory is supported for incremental log pull. Read concurrency and write concurrency are displayed as Not Supported. For custom configuration, the minimum value is 1, and only integers are supported.

      Incremental Data Write Resource Configuration You can select the default write concurrency and memory for Small, Medium, or Large. You can also choose Custom to configure the resources for incremental data write. By configuring the resources for the Incr-Sync component, you can limit the resource consumption for data writing during the incremental synchronization phase.

      Notice

      For custom configuration, the minimum value is 1, and only integers are supported.

      Incremental Record Retention Time The duration for which incremental parsed files are cached in OMS, with a default of 120 hours. A longer configured retention time requires more disk space for the Store component.
      Incremental Synchronization Start Timestamp
      • If Full Migration was selected as the migration type, this parameter is not displayed.
      • If Full Migration was not selected but Incremental Synchronization was selected, please select a time or enter a second-level timestamp here to specify migrating data after a certain point in time. The default is the current system time. For details, see Set an incremental synchronization timestamp.
    • Reverse Incremental

      The parameters in this section are displayed only if you have selected Reverse Increment in the Select Migration Type step. The configuration parameters for reverse incremental are consistent with those for incremental synchronization. By default, the Reuse Incremental Synchronization Configuration option is selected in the upper-right corner. The incremental synchronization start timestamp for reverse incremental follows the forward switch and does not need to be configured.

    • Advanced Options

      Parameter
      Description
      Character Encoding and Length Definition Options Specifies the conversion behavior for fields with the data types CHAR, VARCHAR, or VARCHAR2 and a byte length when the schema is migrated to the target. You can customize the scope of application (CHAR, VARCHAR, or VARCHAR2. All are selected by default) and the implementation effect.
      • If the length unit of the source field is ignored during migration, it depends on the value of the NLS_LENGTH_SEMANTICS parameter in the target database. That is, N BYTE -> N (default).
      • Forces the conversion of the field length unit from BYTE to CHAR, that is, N BYTE -> N CHAR.
      • Automaticly increases the length of the target field, that is, N BYTE -> X*N BYTE.
      • No conversion is performed, that is, N BYTE -> N BYTE.
      Add Hidden Columns for Non-NULL Unique Key Tables When migrating data from a DM database to an OceanBase database in Oracle compatible mode, you need to configure whether to add hidden columns for non-NULL unique key tables. The default value is Yes. For more information, see Data Migration Service Hidden Column Mechanism Description.
      If you select No, for tables without a primary key or a non-NULL unique key, data duplication may occur after a task restart or other exceptions. It is recommended to configure a non-NULL unique key for all tables.
      Target Table Object Storage Type This parameter is displayed only if the target OceanBase Database in Oracle compatible mode is V4.3.0 or later, and Schema Migration is selected in the Select Migration Type step.
      The target table object storage types include Default, Row Storage, Column Storage, and Hybrid Row-Column Storage. This configuration determines the storage type of the target table object during schema migration. For more information, see default_table_store_format.

      Note

      The Parameter Configuration option adapts other options based on the target parameter configuration.

      Note

      The "Character Encoding and Length Definition Options" parameter is described as "Shown only when the source and target character sets are inconsistent" in the Oracle to OceanBase Oracle Mode documentation. The display conditions for this parameter in the DM link are pending confirmation by the R&D team.

    If the configuration parameters on the page do not meet your requirements, you can click Parameter Configuration at the bottom of the page for more specific configurations. If you have configured task templates or component templates, you can also reference them here.

  8. Click Precheck to have the system perform a precheck on the data migration task.

    During the Precheck step, OMS checks whether the read and write permissions of the database user and the network connection of the database meet the requirements. The data migration task can be started only after all check items pass. If an error is reported during the precheck:

    • You can troubleshoot and resolve the issue, then re-execute the precheck until it succeeds.

    • You can also click Skip in the Actions column of the failed precheck item. A dialog box will pop up explaining the specific impact of skipping this operation. After confirming you can skip it, click OK in the dialog box.

  9. Click Start Task. If you do not need to start the task immediately, click Save to go to the details page of the data migration task, where you can start it manually as needed.

    You can click Configure Validation Task in the upper-right corner of the data migration details page to compare the data differences between the source and target databases. This link supports Row Count Verification and Full Verification: Row count verification compares the record counts of the two tables, while full verification compares the content of the selected data. This link does not support Incremental Validation. Even if incremental synchronization is enabled for the migration task, you can only select the first two verification types. For the scope of supported verification objects, see the "Limitations" section above. For more information, see Create a Data Verification Task.

    OMS supports modifying migration objects during the execution of a data migration task. For more information, see View and modify migration objects. After a data migration task is started, it is executed in sequence according to the selected migration type. For more information, see the content in the "View migration details" section of View details of a data migration task.

次のトピック

OMSドキュメント
次へ
このページの内容
Background information
Prerequisites
Limitations
Considerations
Data type mappings
Procedure