Type | Edition |
Dameng DM | 7,8 |
select para_name, para_valuefrom v$dm_iniwhere para_name in ('ARCH_INI','RLOG_APPEND_LOGIC');
ARCH_INI = 1RLOG_APPEND_LOGIC = 1
[ARCHIVE_LOCAL1]ARCH_TYPE = LOCALARCH_DEST = d:\\dmdbms\\archARCH_FILE_SIZE = 128 #Unit: MBARCH_SPACE_LIMIT = 0 #Unit: MB, 0 means unlimited, range 1024~4294967294MARCH_INI and RLOG_APPEND_LOGIC
SET AUTO[COMMIT] <ON|OFF>
grant create session to my_user;grant select on all_users to my_user ;grant select on all_objects to my_user ;grant select on all_tab_cols to my_user ;grant select on all_indexes to my_user ;grant select on dba_objects to my_user ;grant select on V$LOGMNR_CONTENTS to my_user ;grant select on V$ARCHIVED_LOGS to my_user ;
Parameters | Description |
Data Source | Select Dameng DM Data Source. |
Database | Support selecting or manually entering the name of the required database. By default, the database bound to the data source is used as the default database. Other databases need to be manually entered. If the data source network is not connected and the database information cannot be fetched directly, you can manually enter the database name. Data synchronization can still be performed when the DataInLong network is connected. |
Schema | Support selecting or manually entering the available schema under the data source. |
Table | Support selecting or manually entering the table name to be read. In the case of sharding, multiple table names can be selected or entered in the Dameng DM source, and multiple tables must have the same structure. In the case of partitioned tables, you can configure the table index range. For example, 'table_[0-99]' indicates reading 'table_0','table_1','table_2' up to 'table_99'. If your table number suffix length is consistent, such as 'table_000','table_001','table_002' up to 'table_999', you can configure it as '"table": ["table_00[0-9]", "table_0[10-99]", "table_[100-999]"]'. If the data source network is not connected and the table information cannot be fetched directly, you can manually enter the table name. Data synchronization can still be performed when the DataInLong network is connected. |
Add Sharded Database/Table | Applicable to sharding scenarios. Click to configure multiple data sources, databases, and table information. In sharding scenarios, ensure all table structures are consistent. The task configuration will default to displaying and using the structure of the first table to obtain data. |
Table Primary Key | Select a field as the primary key for the target table. |
Read Mode | Full + Increment: Data synchronization is divided into full and increment phases. After the full phase is completed, the task enters the increment phase. The full phase will synchronize historical data in the database, and the incremental phase starts synchronizing from the binlog cdc location after the task starts. Increment Only: Only synchronize data from the binlog cdc position after the task starts. |
Parameter (optional) | You can configure parameters according to business needs. |
Parameters | Description |
Data Destination | Dameng DM Data Source to be written to. |
Database | Supports selection or manual input of the database name to write to By default, the database bound to the data source is used as the default database. Other databases need to be manually entered. If the data source network is not connected and the database information cannot be fetched directly, you can manually enter the database name. Data synchronization can still be performed when the DataInLong network is connected. |
Schema | Support selection or manual entry of the Dameng DM Data Mode to be written to. If the data source network is not connected and the Schema information cannot be fetched directly, you can manually enter the Schema name. Data synchronization can still be performed when the DataInLong network is connected. |
Table | Support selection or manual entry of the table name to be written to. If the data source network is not connected and the table information cannot be fetched directly, you can manually enter the table name. Data synchronization can still be performed when the DataInLong network is connected. |
Advanced Settings (Optional) | You can configure parameters according to business needs. |
DM Types | Internal Types | Remarks |
INT | INT | |
TINYINT | TINYINT | TINYINT(1) maps to BOOLEAN Add an option to support mapping TINYINT(1) to either bool or tinyint |
SMALLINT | SMALLINT | |
BIGINT | Long | |
REAL | DOUBLE | |
FLOAT | FLOAT | |
DOUBLE | DOUBLE | |
DECIMAL | DECIMAL | Using the actual precision of the user database p<=38 maps to DECIMAL, 38 < p <= 65 maps to String |
CHAR | STRING | |
VARCHAR | STRING | |
TEXT | STRING | |
DATE | DATE | |
TIMESTAMP | TIMESTAMP | |
Internal Types | DM Types |
INT | INT,NUMBER,INTEGER |
TINYINT | TINYINT(3) |
SMALLINT | SMALLINT |
BIGINT | BIGINT |
FLOAT | FLOAT |
DOUBLE | REAL,DOUBLE,DECIMAL,DOUBLE PRECISION |
BOOLEAN | BIT(1) |
CHAR | CHARACTER(1) |
VARCHAR | VARBINARY,BYTE,VARCHAR(8188),VARCHAR2(8188),LONGVARCHAR(2147483647) |
TEXT | CLOB,BINARY,TIME WITH TIME ZONE |
TINYTEXT | TIME |
DATE | DATE,DATETIME,DATETIME WITH TIME ZONE |
TIMESTAMP | TIMESTAMP,TIMESTAMP WITH LOCAL TIME ZONE |
BLOB | BLOB,IMAGE,LONGVARBINARY |
Was this page helpful?