This topic describes the OpenAPI provided by OceanBase Migration Service (OMS): DescribeProject.
Overview
You can call this API to query the details of a data migration, data synchronization, or data verification task.
API details
Constraints
This API applies to OMS V4.1.0 and later.
Request path
POST /api/v2?Action=DescribeProject
Request parameters
Parameter |
Type |
Description |
|---|---|---|
| id | string | The ID of the data migration, data synchronization, or data verification task. |
Response parameters
Parameter |
Type |
Description |
|---|---|---|
| success | boolean | Whether the call was successful. |
| errorDetail | object | Error details. |
| code | string | Error code. |
| message | string | Error description. |
| advice | string | Recommended. |
| requestId | string | Request ID. |
| pageNumber | integer | Page number, which takes effect during paginated queries. |
| pageSize | integer | Page size, which takes effect during pagination queries. |
| totalCount | integer | Total number, effective for paginated queries. |
| cost | string | Request time, in seconds. |
| data | string | Information related to the task. For details, see Data Structure. |
data data structure
ParameterTypeDescriptionid string The task ID. type string The task type, including MIGRATION(data migration),SYNC(data synchronization), andVERIFY(data verification).name string The task name, which cannot contain spaces. labels object [] The set of labels. ├─ id string The label ID. ├─ name string The label name. owner string The task owner. importance string The task alert level, including HIGH,MEDIUM,LOW, andIGNORE.status string The task status. gmtCreate string The task creation time, in the UTC+0 time zone format. gmtModified string The task update time, in the UTC+0 time zone format. gmtStart string The task start time. gmtFinish string The task end time. destConnId string The task connection information ID. isMerging boolean Whether the task is in the process of major compaction. isModifying boolean Whether the task is being modified. isSubProject boolean Whether it is a subtask. sourceEndpointType string The type of the source data source. sinkEndpointType string The type of the target data source. transferMapping object The transfer objects and their mapping relationships. ├─ mode string The mapping mode of the transfer objects, including SPECIFIC(specific objects) andWILDCARD(matching rules).├─ databases object [] The list of database objects. For details, see the databases/databasesBlackdata structure.├─ databasesBlack object [] The matching rule mode: the blocklist of database objects. For details, see the databases/databasesBlackdata structure.├─ tableAndViewWhiteList array The matching rule mode: the wildcard allowlist for tables and views. ├─ tableAndViewBlackList array The matching rule mode: the wildcard blocklist for tables and views. commonTransferConfig object The general transfer configuration. ├─ tableCategory string The type of table to be transferred. 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 Indicates whether it is a disaster recovery active-active scenario. This parameter is deprecated in OMS V4.3.1. ├─ mqSerializerType string The data serialization type for JSON when delivering to a message queue. Valid values: DEFAULT, CANAL, DATAWORKS_V2, SHAREPLEX, DEFAULT_WITH_SCHEMA, DEBEZIUM, DEBEZIUMFLATTEN, and DEBEZIUMSMT. ├─ mqPartitionMode string The partition routing method when delivering to a message queue. Valid values: ONE (deliver to a specified partition), HASH (deliver to a partition based on the primary key or sharding column value), and TABLE (deliver to a partition based on the database or table name). ├─ mqPartition integer When partitionModeisONE, this parameter indicates the position of the partition to be delivered under the current topic.├─ datahubTopicType string The type of Topic specified when delivering to a DataHub message queue. Valid values: TUPLEandBLOB.├─ rocketMqProducerGroup string The name of the producer group. This parameter takes effect only when the target is RocketMQ. Default value: OMS. ├─ rocketMqMsgTags string Sets the message tags (effective only when the target is RocketMQ). Default: default->default_tag, meaning if the value is default, a_tagsuffix is added by default.├─ rocketMqEnableMsgTrace boolean Whether to enable message tracing. This parameter takes effect only when the target is RocketMQ. ├─ rocketMqSendMsgTimeout long Sets the message delivery timeout. This parameter takes effect only when the target is RocketMQ. ├─ dataWorksBusinessName string The business system identifier. It identifies the source business system of the data for your subsequent custom processing. This parameter is supported only when the serialization method is set to DataWorks. The length must be 1 to 20 characters. ├─ sinkStoreFormat string The storage type of the target table object. Valid values: Default, Row Storage, Column Storage, and Hybrid Row-Column Storage.
This parameter takes effect when the target OceanBase Database is V4.3.0 or later, and the migration type is Schema Migration or Incremental Synchronization > DDL synchronization.├─ sourceStoreFormat string The storage type of the source table object. Valid values: Default, Row Storage, Column Storage, and Hybrid Row-Column Storage.
This parameter takes effect when the source OceanBase Database is V4.3.0 or later, and the migration type is Reverse Increment > DDL synchronization.├─ interactiveMode boolean Whether to manually advance the task execution via APIs. enableStructTransfer boolean Whether to allow schema transfer. structTransferConfig object The configuration for schema transfer. ├─ byteCharConvertStrategy string The byte/char conversion strategy, including IGNORE_BYTE_IF_BYTE_USED,FORCE_CHAR_IF_BYTE_USED,EXPAND_LEN_IF_BYTE_USED, andDO_NOTHING_IF_BYTE_USED(default).├─ deferIndexCreation boolean Whether to allow deferred index creation. Default value: not allowed. enableFullTransfer boolean Whether to enable full transfer. enableFullVerify boolean Whether to enable full verification. fullTransferConfig object The configuration for full transfer. ├─ nonePkUkTruncateDstTable boolean Whether to truncate the destination table when processing full migration of source tables without unique indexes. ├─ allowDestTableNotEmpty boolean The processing strategy when the target table has records. Valid values: Ignore and Stop Migration. - If set to true, OMS ignores data during full verification in IN mode when the target table contains data. That is, if a unique key conflict occurs at the target, the corresponding data from the source is ignored and the data at the target is retained.
Notice
If you select Ignore, full verification will pull data in IN mode, which cannot verify scenarios where the target has data not present in the source, and verification performance will be degraded to some extent.
- If set to false, OMS stops migration when full verification encounters data in the target table. In this case, an error is returned indicating that migration is not allowed. You must handle the data in the target table before continuing migration.
Notice
If you click Resume after an error occurs, OMS will ignore this configuration option and continue migrating table data. Proceed with caution.
├─ fullTransferSpeedMode string The speed for full migration. Valid values: STEADY,NORMAL,FAST, andCUSTOM.├─ fullTransferSpeedConfig string The full migration speed configuration. This parameter takes effect only when fullTransferSpeedModeis set toCUSTOM.├─├─ memory integer The memory limit, in GB. ├─├─ readerWorkerNum integer The number of concurrent readers. ├─├─ writerWorkerNum integer The number of concurrent writers. ├─ fullVerifySpeedMode string The speed for full verification. Valid values: STEADY,NORMAL,FAST, andCUSTOM.├─ fullVerifySpeedConfig string The full verification speed configuration. This parameter takes effect only when fullVerifySpeedModeis set toCUSTOM.├─├─ memory integer The memory limit, in GB. ├─├─ readerWorkerNum integer The number of concurrent readers. ├─├─ writerWorkerNum integer The number of concurrent writers. ├─ throttleRps integer The maximum transfer rate allowed during the full migration phase, in records per second. If you set this parameter to null, no RPS limit is imposed. ├─ throttleIOPS integer The maximum throughput allowed during the full migration phase, in bytes per second. If you set this parameter to null, no IOPS limit is imposed. ├─ fullImportTemplate object The parameter template for the Full-Import component. ├─├─ key string The name of the parameter. ├─├─ type string The type of the value. ├─├─ value string The value of the parameter. enableIncrTransfer boolean Whether to enable incremental synchronization. enableIncrVerify boolean Whether to enable incremental verification. enableReverseIncrTransfer boolean Whether to enable reverse incremental synchronization. incrTransferConfig object The configuration for incremental synchronization. ├─ startTimestamp string The starting point for incremental synchronization. You can set this parameter only when incremental synchronization is enabled but full migration is disabled. ├─ recordTypeWhiteList array The types of incremental data to be synchronized during incremental synchronization. ├─ storeLogKeptHour integer The retention period for logs. Unit: hours. Default: 7 days. Maximum: 365 days. This parameter takes effect when incremental synchronization is enabled and the incremental log pulling component is Store. ├─ enableSequencingWithinTxn boolean Whether to enable intra-transaction sequencing. This parameter takes effect when incremental synchronization is enabled and the incremental log pulling component is Store. ├─ incrSyncConcurrency integer The number of threads for incremental synchronization. Default value: 64. ├─ enableIncrSyncStatistics boolean Whether to enable statistics collection for incremental records (DML and DDL). ├─ incrOnlineDdlConfig array Indicates the Online DDL tool. Valid values: GH_OST, PT_OSC, and ALIYUN_DMS, which correspond to gh-ost, pt-osc, and Alibaba Cloud DMS respectively. - This parameter takes effect for forward incremental synchronization from a MySQL database to an OceanBase Database in MySQL-compatible mode.
- This parameter takes effect for backward incremental synchronization from an OceanBase Database in MySQL-compatible mode to a MySQL database.
├─ incrLogPullSpeedMode string The speed for pulling incremental logs. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom). ├─ incrLogPullSpeedConfig object The resource configuration for pulling incremental logs. This parameter takes effect only when incrLogPullSpeedModeis set toCUSTOM.├─├─ memory integer The memory limit for pulling incremental logs. ├─ incrLogSyncSpeedMode string The speed for writing incremental logs. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom). ├─ incrLogSyncSpeedConfig object The resource configuration for writing incremental logs. This parameter takes effect only when incrLogSyncSpeedModeis set toCUSTOM.├─├─ memory integer The memory limit for writing incremental logs. ├─├─ writerWorkerNum integer The number of concurrent writers for incremental logs. ├─ throttleRps integer The maximum transfer rate allowed during incremental synchronization, in records per second. If you set this parameter to null, no RPS limit is imposed. ├─ throttleIOPS integer The maximum throughput allowed during incremental synchronization, in bytes per second. If you set this parameter to null, no IOPS limit is imposed. ├─ supportDDLTypes array The supported DDL types. - CREATE_TABLE
- ALTER_TABLE
- DROP_TABLE
- RENAME_TABLE
- TRUNCATE_TABLE
- CREATE_INDEX
- DROP_INDEX
├─ storeTemplate object The parameter template for the Store component. ├─├─ key string The name of the parameter. ├─├─ type string The type of the value. ├─├─ value string The value of the parameter. ├─ incrSyncTemplate object The parameter template for the Incr-Sync component. ├─├─ key string The name of the parameter. ├─├─ type string The type of the value. ├─├─ value string The value of the parameter. reverseIncrTransferConfig object The configuration for reverse incremental synchronization. ├─ startTimestamp string The starting point for reverse incremental synchronization. You can set this parameter only when incremental synchronization is enabled but full migration is disabled. ├─ recordTypeWhiteList array The types of incremental data to be synchronized during reverse incremental synchronization. Valid values: HEARTBEAT, INSERT, UPDATE, DELETE, BEGIN, COMMIT, ROLLBACK, DDL, and ROW. ├─ storeLogKeptHour integer The retention period for logs. Unit: hours. Default: 7 days. Maximum: 365 days. This parameter takes effect when reverse incremental synchronization is enabled and the incremental log pulling component is Store. ├─ enableSequencingWithinTxn boolean Whether to enable in-sequence arrangement within transactions during reverse incremental synchronization when the incremental log pull component is Store. ├─ enableIncrSyncStatistics boolean Whether to enable statistics collection for reverse incremental records (DML and DDL). ├─ incrOnlineDdlConfig array Indicates the tool for adapting to Online DDL. Valid values: GH_OST, PT_OSC, and ALIYUN_DMS, corresponding to gh-ost, pt-osc, and Alibaba Cloud DMS respectively. - This parameter takes effect on forward incremental synchronization from a MySQL database to an OceanBase Database in MySQL-compatible mode.
- This parameter takes effect on reverse incremental synchronization from an OceanBase Database in MySQL-compatible mode to a MySQL database.
├─ incrSyncConcurrency integer The number of threads for reverse incremental synchronization. Default value: 64. ├─ incrLogPullSpeedMode string The speed for pulling reverse incremental logs. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom). ├─ incrLogPullSpeedConfig object The resource configuration for pulling reverse incremental logs. This parameter takes effect only when incrLogPullSpeedModeis set toCUSTOM.├─├─ memory integer The memory limit for pulling reverse incremental logs. ├─ incrLogSyncSpeedMode string The speed for writing reverse incremental data. Valid values: STEADY (low), NORMAL (medium), FAST (high), and CUSTOM (custom). ├─ incrLogSyncSpeedConfig object The resource configuration for writing reverse incremental data. This parameter takes effect only when incrLogSyncSpeedModeis set toCUSTOM.├─├─ memory integer The memory limit for writing reverse incremental logs. ├─├─ writerWorkerNum integer The number of concurrent writers for reverse incremental logs. ├─ throttleRps integer The maximum transmission rate allowed during reverse incremental synchronization, in records per second. If you set this parameter to null, no RPS limit is imposed. ├─ throttleIOPS integer The maximum throughput allowed during reverse incremental synchronization, in bytes per second. If you set this parameter to null, no IOPS limit is imposed. ├─ supportDDLTypes array The supported DDL types. - CREATE_TABLE
- ALTER_TABLE
- DROP_TABLE
- RENAME_TABLE
- TRUNCATE_TABLE
- CREATE_INDEX
- DROP_INDEX
├─ storeTemplate object The parameter template for the Store component. ├─├─ key string The name of the parameter. ├─├─ type string The type of the value. ├─├─ value string The value of the parameter. fullVerifyConfig object The configuration for full verification. When enableFullVerifyisfalse,fullVerifyConfigis null. You must configure the following subparameters whenenableFullVerifyistrue.├─ sourceThreads integer The number of concurrent threads at the source. Value range: [1,512]. ├─ sinkThreads integer The number of concurrent threads at the sink. Value range: [1,512]. ├─ mode string The verification mode. Valid values: AUTO(adaptive verification) andIN(IN-mode verification).├─ sourceThrottleBps integer The upper limit of the BPS at the source. Value range: [1,1024], in MiB/s. If you leave this parameter empty, no upper limit is imposed. ├─ sinkThrottleBps integer The upper limit of the BPS at the sink. Value range: [1,1024], in MiB/s. If you leave this parameter empty, no upper limit is imposed. ├─ enableHiddenColumnsAndIndex boolean Whether to add hidden columns and hidden indexes for tables without non-null unique keys. This parameter applies to the following five data verification tasks: Oracle -> OceanBase MySQL Mode, Oracle -> OceanBase Oracle Mode, OceanBase MySQL Mode -> OceanBase MySQL Mode, OceanBase Oracle Mode -> OceanBase Oracle Mode, and OceanBase Oracle Mode -> Oracle. ├─ verifySpeedMode string The memory configuration for full verification. Valid values: STEADY,NORMAL,FAST, andCUSTOM.├─ verifySpeedConfig string The memory configuration for full verification. This parameter takes effect only when verifySpeedModeisCUSTOM.├─ verifyTemplate object The parameter template for full verification. ├─├─ key string The name of the parameter. ├─├─ type string The type of the value. ├─├─ value string The value of the parameter. countVerifyConfig object The configuration for row count verification. When enableCountVerifyisfalse,countVerifyConfigis null. You must configure the following subparameters whenenableCountVerifyistrue.├─ sourceThreads integer The number of concurrent threads at the source. Value range: [1,512]. ├─ sinkThreads integer The number of concurrent threads at the sink. Value range: [1,512]. ├─ concurrencyTablesNumber integer The number of tables for concurrent verification. This parameter applies to both the source and sink. Value range: [1,100]. ├─ queryTimeout integer The query timeout period. This parameter applies to both the source and sink. Value range: [1,1440], in seconds. ├─ verifySpeedMode string The memory configuration for row count verification. Valid values: STEADY,NORMAL,FAST, andCUSTOM.├─ verifySpeedConfig string The memory configuration for row count verification. This parameter takes effect only when verifySpeedModeisCUSTOM.├─ verifyTemplate object The parameter template for row count verification. ├─├─ key string The name of the parameter. ├─├─ type string The type of the value. ├─├─ value string The value of the parameter. incrVerifyConfig object The configuration for incremental verification. When enableIncrVerifyisfalse,incrVerifyConfigis null. You must configure the following subparameters whenenableIncrVerifyistrue.├─ startCheckpoint string The starting point of incremental verification. Value range: [Now-7d,Now+7d], in timestamp format. ├─ endCheckpoint string The ending point of incremental verification. Value range: [startCheckpoint,+00), in timestamp format. If you do not specify this parameter, verification continues indefinitely. ├─ initialInspectionCooldownTimeout integer The cooldown period for hot data during the initial inspection. ├─ initialInspectionDelayTimeout integer The time before detecting inconsistent data during the initial inspection. ├─ reInspectionThreads integer The number of concurrent threads for re-inspection. Value range: [1,512]. ├─ reInspectionthrottleBps integer The throttling rate for re-inspection. Value range: [1,1024]. If you leave this parameter empty, no throttling is performed. Unit: MiB/s. ├─ reInspectiontolerateTimeout integer The maximum time for re-inspection, in minutes. ├─ reInspectionRounds integer The maximum number of re-inspection rounds. ├─ reInspectionDiffWaitMaxIntervalMs long The maximum waiting time for re-inspection. ├─ verifySpeedMode string The memory configuration for incremental verification, including STEADY,NORMAL,FAST, andCUSTOM.├─ verifySpeedConfig string The memory configuration for incremental verification, which takes effect only when verifySpeedModeisCUSTOM.├─ verifyTemplate object The parameter template for incremental verification. ├─├─ key string The parameter name. ├─├─ type string The value type. ├─├─ value string The parameter value. sourceConnectInfo object The connection information of the source node. ├─ id string The ID of the connection information. ├─ endpointName string The name of the destination node. ├─ endpointId string The ID of the destination node. ├─ endpointSide string The type of the destination node, including source(source) anddest(destination).├─ dbEngine string The database engine of the destination node. ├─ connectionInfo string The connection information of the destination node. ├─ username string The connection username. ├─ version string The database version. ├─ timezone string The database timezone. ├─ charset string The character encoding. ├─ nlsLengthSemantics string The nlsLengthSemantics attribute, applicable only to data sources of Oracle and OceanBase Database in Oracle compatible mode. ├─ operatingSystem string The operating system (this parameter is absent in OceanBase Database). ├─ region string The region. ├─ ocpName string The name of OCP. ├─ connExtraAttributes Object Additional connection attributes. For specific returned fields, see the content of the "Appendix" section. ├─ owner string Owner. ├─ host string IP address. ├─ port integer Port. sinkConnectInfo object The connection information of the destination node. ├─ id string The ID of the connection information. ├─ endpointName string The name of the destination node. ├─ endpointId string The ID of the destination node. ├─ endpointSide string The type of the destination node, including source(source) anddest(destination).├─ dbEngine string The database engine of the destination node. ├─ connectionInfo string The connection information of the destination node. ├─ username string The connection username. ├─ version string The database version. ├─ timezone string The database timezone. ├─ charset string The character encoding. ├─ nlsLengthSemantics string The nlsLengthSemantics attribute, applicable only to data sources of Oracle and OceanBase Database in Oracle compatible mode. ├─ operatingSystem string The operating system (this parameter is absent in OceanBase Database). ├─ region string The region. ├─ ocpName string The name of OCP. ├─ connExtraAttributes Object Additional connection attributes. For specific returned fields, see the content of the "Appendix" section. ├─ owner string Owner. ├─ host string IP address. ├─ port integer Port. steps object [] The list of steps. ├─ order integer The execution order of the steps. ├─ name string The name of the step. ├─ description string The description of the step. ├─ status string The running status of the step. ├─ extraInfo object Supplementary information. For details, see the extraInfodata structure.├─ startTime string The start time, in the UTC+0 time zone format. ├─ finishTime string The end time, in the UTC+0 time zone format. ├─ progress integer The running progress of the step. ├─ stepInfo object The running details of each step. For details, see the stepInfodata structure.extraInfo object Supplementary information such as error messages. ├─ runningStep string The step that is in the running state. ├─ runningProgress integer The running progress of the step that is in the running state. ├─ monitoringIncr boolean Whether to start monitoring increments. ├─ subtopics string The subtopics of the store associated with the task. ├─ reverseSubtopics string The subtopics of the reverse store associated with the task. ├─ logServiceStartCheckpoint integer The start checkpoint. ├─ sourceStoreKeptHour integer The retention period for logs. ├─ syncDelay integer The incremental synchronization delay. ├─ syncDelaySampleTimestamp integer The timestamp when the synchronization delay was sampled, in seconds. ├─ accessObSource boolean Whether a direct connection to the source OceanBase database is possible. ├─ overwriteConfig boolean Whether to allow overwriting the configuration during an update. ├─ ignoreUnsupportDdl boolean Whether to ignore unsupported DDL statements. ├─ subDbs map Records the table configurations for different downstream consumers, used for configuration merging when reusing a data synchronization task. ├─ subConds map The list of configuration objects. ├─ subIds map The IDs of the configuration objects. ├─ maxConnectorCount integer The maximum number of connectors. -1 indicates no limit. ├─ storeIncr boolean Whether to save increments. ├─ incrSyncTimestamp integer The current incremental synchronization checkpoint, in seconds. alarmStats object Alert statistics. ├─ target string The target of the alert. ├─ alarming boolean Whether the alert is currently triggered. ├─ recentlyTriggerCount integer The total number of recent alerts. ├─ ruleToRecentlyTriggerCount map The number of recent alerts triggered by each rule. ├─ alarmContent string The content of the most recent alert. - If set to true, OMS ignores data during full verification in IN mode when the target table contains data. That is, if a unique key conflict occurs at the target, the corresponding data from the source is ignored and the data at the target is retained.
databases/databasesBlack data structure
ParameterTypeDescriptionmappedName string The name of the destination database. name string The name of the source database. id string The ID of the database. tables array The configuration list of table objects to be transferred in the current database. When Mode is set to WILDCARD, this parameter indicates the configuration of a specific blocklist or allowlist, which is shared by tables and views. ├─ mappedName string The mapped name of the table. ├─ name string The name of the table. ├─ id string The ID of the table. ├─ whereClause string The WHERE clause in a standard SQL statement, used to configure row filtering. ├─ filterColumns array The set of filtered columns. ├─ shardColumns array The set of sharded columns. ├─ columns For details, see the "columns" data structure. views array The configuration list of view objects to be transferred in the current database. ├─ mappedName string The mapped name of the view. ├─ name string The name of the view. ├─ id string The ID of the view. ├─ whereClause string The WHERE clause in a standard SQL statement, used to configure row filtering. ├─ filterColumns array The set of filtered columns. ├─ shardColumns array The set of sharded columns. ├─ columns object [] The list of columns to be transferred. For details, see the "columns" data structure. specificTables array The configuration list of table objects. When mode is set to WILDCARD, this parameter indicates the renaming and row filtering configurations of specific table objects. ├─ mappedName string The mapped name of the table. ├─ name string The name of the table. ├─ id string The ID of the table. ├─ whereClause string The WHERE clause in a standard SQL statement, used to configure row filtering. ├─ filterColumns array The set of filtered columns. ├─ shardColumns array The set of sharded columns. ├─ columns object [] The list of columns to be transferred. For details, see the "columns" data structure. specificViews array The configuration list of view objects. When mode is set to WILDCARD, this parameter indicates the renaming configurations of specific view objects. ├─ mappedName string The mapped name of the view. ├─ name string The name of the view. ├─ id string The ID of the view. ├─ whereClause string The WHERE clause in a standard SQL statement, used to configure row filtering. ├─ filterColumns array The set of filtered columns. ├─ shardColumns array The set of sharded columns. ├─ columns object [] The list of columns to be transferred. For details, see the "columns" data structure. columns data structure
ParameterTypeDescriptioncolumnName string The name of the column. mappedName string The mapped name of the column. position integer The position of the column. columnType string The type of the column. recordFieldType string The extended type of the column. rawColumnType string The original string of the column type in a database record. columnKey string The type of the index. nullable boolean Whether the column can be null. defaultValue string The default value. dataLength integer The length of the column. dataPrecision integer The precision of the column. dataScale integer The number of decimal places. encoding string The character encoding of the column. columnComment string The comment of the column. isGenerateField boolean Whether it is a hidden column. extraInfo data structure
ParameterTypeDescriptionerrorDetails array The error details. errorCode string The error code. errorMsg string The error message. errorParam object The parameters related to the error. failedTime string The time when the error occurred. stepInfo data structure
The
stepInfoparameter returns different fields for different steps.TRANSFER_APP_SWITCH (Forward switchover)
ParameterTypeDescriptioncheckpointSampleTimestamp long The timestamp when the sample was collected. In seconds. INCR_TRANSFER (Incremental synchronization)
ParameterTypeDescriptionincrTimestampCheckpoint long The timestamp when the sample was collected. In seconds. checkpointSampleTimestamp long The timestamp when the sample was collected. In seconds. enableIncrStatistics boolean Whether to enable DML/DDL statistics collection. FULL_VERIFIER (Full verification) and FULL_TRANSFER (Full migration)
ParameterTypeDescriptionprocessedRecords long The number of migrated rows / Total number of rows. capacity long The estimated total number of rows. srcRps long The source read RPS, in records per second. srcRt string The source read RT, in milliseconds per record. srcIops long The source read throughput, in bytes per second. dstRps long The destination read/write RPS, in records per second. dstRt long The destination read/write RT, in milliseconds per record. dstIops long The destination read/write throughput, in bytes per second. srcRpsRef long The baseline value of the source RPS. dstRpsRef long The baseline value of the target RPS for read/write operations. dstRtRef long The baseline value of the target RTO for read/write operations.
Examples
Request example
{
"id":"np_4wh****"
}
Response example
{
"success":true,
"errorDetail":null,
"code":null,
"message":null,
"advice":null,
"requestId":"a7b57****",
"pageNumber":null,
"pageSize":null,
"totalCount":null,
"cost":"27 ms",
"data":[
{
"id":"np_4w****",
"type":"MIGRATION",
"name":"oms41_mig***",
"labels":null,
"owner":"oms_api_t***",
"importance":"MEDIUM",
"status":"RUNNING",
"gmtCreate":"2023-07-13T03:59:15",
"gmtModified":"2023-07-13T10:12:44",
"gmtStart":"2023-07-13T06:47:35",
"gmtFinish":null,
"destConnId":null,
"isMerging":false,
"isModifying":false,
"isSubProject":false,
"sourceEndpointType":"DB2_LUW",
"sinkEndpointType":"OB_MYSQL",
"transferMapping":{
"mode":"SPECIFIC",
"databases":[
{
"mappedName":"tion12***20obmysql2",
"name":"GRATION129****",
"id":null,
"tables":[
{
"mappedName":"TEST_MA***",
"name":"TEST_M***",
"id":null,
"whereClause":null,
"filterColumns":null,
"shardColumns":null,
"columns":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,
"interactiveMode":true
},
"enableStructTransfer":true,
"structTransferConfig":{
"byteCharConvertStrategy":"DO_NOTHING_IF_BYTE_USED",
"deferIndexCreation":true
},
"fullVerifyConfig": {
"mode": null,
"sourceThreads": null,
"sourceThrottleBps": null,
"sinkThreads": null,
"sinkThrottleBps": null,
"verifySpeedMode": "NORMAL",
"verifySpeedConfig": {
"readerWorkerNum": 8,
"writerWorkerNum": 8,
"memory": 8.0
},
"verifyTemplate": null
},
"countVerifyConfig": null,
"incrVerifyConfig": null,
"enableFullTransfer": true,
"enableFullVerify": false,
"fullTransferConfig":{
"nonePkUkTruncateDstTable":null,
"allowDestTableNotEmpty":true,
"fullTransferSpeedMode":"CUSTOM",
"fullTransferSpeedConfig":{
"memory":4,
"readerWorkerNum":1,
"writerWorkerNum":2
},
"fullVerifySpeedMode":"CUSTOM",
"fullVerifySpeedConfig":{
"memory":4,
"readerWorkerNum":1,
"writerWorkerNum":2
},
"writeWorkerNum": 64,
"readWorkerNum": 64,
"throttleRps": 1000,
"throttleIOPS": 1000,
"fullImportTemplate": [
{
"key": "sink. isMysqlReplaceMode",
"type": "BOOLEAN",
"value": "true"
}
]
},
"enableIncrTransfer":true,
"enableIncrVerify":false,
"enableReverseIncrTransfer":true,
"incrTransferConfig":{
"startTimestamp":1689201369,
"recordTypeWhiteList":[
"INSERT",
"DELETE",
"UPDATE"
],
"storeLogKeptHour":120,
"enableSequencingWithinTxn":null,
"incrSyncConcurrency":null,
"enableIncrSyncStatistics":null,
"incrLogPullSpeedMode":"NORMAL",
"incrLogPullSpeedConfig":{
"memory":4
},
"incrLogSyncSpeedMode":"CUSTOM",
"incrLogSyncSpeedConfig":{
"memory":4,
"writerWorkerNum":2
},
"throttleRps": 1000,
"throttleIOPS": 1000,
"incrOnlineDdlConfig":[
"GH_OST",
"PT_OSC",
"ALIYUN_DMS"
],
"storeTemplate": [
{
"key": "liboblog.max_log_file_count",
"type": "STRING",
"value": "10"
}
],
"incrSyncTemplate": [
{
"key": "coordinator.shuffleMaxBatchSize",
"type": "LONG",
"value": "48"
}
]
},
"sourceConnectInfo":{
"id":"c_4w1qs****",
"endpointName":"GRATION12948*****",
"endpointId":"e_4w1q****",
"endpointSide":null,
"dbEngine":"DB2_LUW_PUBLIC",
"connectionInfo":null,
"username":"db2i***",
"version":"11.5.0.0",
"timezone":"+08:00",
"charset":"UTF8",
"nlsLengthSemantics":null,
"operatingSystem":"Linux",
"region":"cn-anhui",
"ocpName":"",
"connExtraAttributes":null,
"owner":"oms_api_t***",
"host":"xxx.xxx.xxx.1",
"port":"2883"
},
"sinkConnectInfo":{
"id":"c_4w1qs***",
"endpointName":"tion1294820obmysq****",
"endpointId":"e_4w1qr2***",
"endpointSide":null,
"dbEngine":"OB_MYSQL_PUBLIC",
"connectionInfo":null,
"username":"oms2027obmysql@oms_***",
"version":"2.2.77",
"timezone":"+08:00",
"charset":"utf8mb4",
"nlsLengthSemantics":null,
"operatingSystem":null,
"region":"cn-anhui",
"ocpName":"107",
"connExtraAttributes":null,
"owner":"oms_api_t***",
"host":"xxx.xxx.xxx.4",
"port":"2883"
},
"steps":[
{
"order":1,
"name":"TRANSFER_PRECHECK",
"description":"Pre-check",
"status":"FINISHED",
"extraInfo":{
"errorDetails":null,
"errorCode":null,
"errorMsg":null,
"errorParam":null,
"failedTime":null
},
"startTime":"2023-07-12T22:33:42",
"finishTime":"2023-07-12T22:33:48",
"progress":100,
"stepInfo":null
},
{
"order":2,
"name":"STRUCT_TRANSFER",
"description":"Schema migration",
"status":"FINISHED",
"extraInfo":{
"errorDetails":null,
"errorCode":null,
"errorMsg":null,
"errorParam":null,
"failedTime":"2023-07-12T22:35:48.881"
},
"startTime":"2023-07-12T22:35:24",
"finishTime":"2023-07-12T22:36:04",
"progress":100,
"stepInfo":null
},
{
"order":6,
"name":"INCR_TRANSFER",
"description":"Incremental synchronization",
"status":"MONITORING",
"extraInfo":{
"errorDetails":null,
"errorCode":null,
"errorMsg":null,
"errorParam":null,
"failedTime":null
},
"startTime":"2023-07-12T22:41:20",
"finishTime":"2023-07-12T22:46:57",
"progress":99,
"stepInfo":{
"incrTimestampCheckpoint":1689213946,
"checkpointSampleTimestamp":1689214358,
"enableIncrStatistics":true
}
}
],
"extraInfo":null,
"alarmStats":{
"target":"np_4w1q****",
"alarming":false,
"recentlyTriggerCount":null,
"ruleToRecentlyTriggerCount":null,
"alarmContent":null
}
}
]
}
Appendixes
Kafka
{
"connExtraAttributes":{
"endpoint":"xxx.xxx.xxx.1:2883",
"username":null,
"enableSSL":null,
"enableSASL":null,
"saslMechanism":null,
"disableIdentificationAlgorithm":false
}
}
Parameter |
Type |
Description |
|---|---|---|
| endpoint | string | Service address. |
| username | string | Username. This parameter is required when you select the authentication method as PLAIN, SCRAM-SHA-256, or SCRAM-SHA-512. |
| enableSSL | boolean | Whether to enable SSL authentication. If enabled, you need to upload the trusted certificate. |
| enableSASL | boolean | Whether to enable SASL authentication. |
| saslMechanism | KafkaSaslMechanisnEnum | Encryption method, including PLAIN, SCRAM-SHA-256, SCRAM-SHA-512, and KERBEROS. |
| disableIdentificationAlgorithm | boolean | Whether to enable hostname verification during SSL encryption. |
When an Oracle data source serves as the source or target and incremental data is configured to be fetched via Kafka, the connExtraAttributes parameter includes the following response fields.
Parameter |
Type |
Description |
|---|---|---|
| kafkaId | string | After you select to obtain incremental data through Kafka, you need to bind the ID of the Kafka data source. |
| kafkaTopic | string | Topic of the bound Kafka data source. |
| cdcDataFormat | string | Incremental message formats currently supported:ogg_jsonandogg_json_row. |
| kafkaName | string | The name of the bound Kafka data source. |
Oracle data source as the source
{ "sourceConnectInfo": { "connExtraAttributes": { "kafkaId": "e_6m*****", "kafkaTopic": "test", "cdcDataFormat": "ogg_json", "kafkaName": "kafka-test" } } }Oracle data source as the target
{ "sinkConnectInfo": { "connExtraAttributes": { "kafkaId": "e_6m*****", "kafkaTopic": "test", "cdcDataFormat": "ogg_json", "kafkaName": "kafka-test" } } }
DataHub
{
"connExtraAttributes":{
"endpoint":"xxx.xxx.xxx.1:2883",
"project":"detx***"
}
}
Parameter |
Type |
Description |
|---|---|---|
| endpoint | string | Service address. |
| project | string | The task name. |
RocketMQ
{
"connExtraAttributes":{
"endpoint":"xxx.xxx.xxx.1:2883",
"endpointType":null,
"version":null
}
}
Parameter |
Type |
Description |
|---|---|---|
| endpoint | string | Service address. |
| endpointType | CloudRocketMQEndpoint.Type | Type of the service endpoint. |
| version | CloudRocketMQInst.Version | The version of RocketMQ. |
OceanBase
{
"connExtraAttributes":{
"cluster":"xgez***",
"tenant":"gexr**",
"isLogicSource":false,
"useLogProxy":true,
"drcUser":"tes***",
"configUrl":"http://xxx.xxx.xxx.1:2883/service****",
"logProxyIp":"xxx.xxx.xxx.2",
"logProxyPort":2883,
"noUserAuth":false
}
}
Parameter |
Type |
Description |
|---|---|---|
| cluster | string | The name of the cluster. |
| tenant | string | The name of the tenant. |
| isLogicSource | boolean | Whether it is a logical data source. |
| useLogProxy | boolean | Whether to use LogProxy. |
| drcUser | string | Configuration of the drc_user. |
| configUrl | string | Retrieves the real IP address of the underlying server in OceanBase Database. |
| logProxyIp | string | The IP address of the LogProxy service. |
| logProxyPort | integer | The port of the LogProxy service. |
| noUserAuth | boolean | For the interface that synchronizes data to DataWorks, the data source is automatically generated by OMS. If you do not have a user account and password, you cannot connect to your OceanBase database. |
TiDB
{
"connExtraAttributes":{
"kafkaId":"e_edz****",
"kafkaTopic":"test**",
"kafkaName":"denz***"
}
}
Parameter |
Type |
Description |
|---|---|---|
| kafkaId | string | The ID of the bound Kafka data source. |
| kafkaTopic | string | The name of the bound Kafka topic. |
| kafkaName | string | The name of the bound Kafka data source. |