To a Relational Database
If the destination link of a job is one of them listed in Link to Relational Databases, configure the destination job parameters based on Table 1.
- DWS
- RDS for MySQL
- RDS for SQL Server
- RDS for PostgreSQL
- FusionInsight LibrA
- MySQL
|
Parameter |
Description |
Example Value |
|---|---|---|
|
Schema/Tablespace |
Name of the database to which data will be written. The schema can be automatically created. Click the icon next to the text box to select a schema or tablespace. |
schema |
|
Auto Table Creation |
This parameter is displayed only when both the migration source and destination are relational databases. The options are as follows:
Field Mapping in Automatic Table Creation on DWS describes the field mapping between the DWS tables created by CDM and source tables. |
Non-auto creation |
|
Table Name |
Name of the table to which data will be written. Click the icon next to the text box. The dialog box for selecting the table is displayed. This parameter can be configured as a macro variable of date and time and a path name can contain multiple macro variables. When the macro variable of date and time works with a scheduled job, the incremental data can be synchronized periodically. For details, see Incremental Synchronization Using the Macro Variables of Date and Time. |
table |
|
Compress Data |
Whether to compress data when data is imported to DWS and Auto creation is selected |
No |
|
Storage Mode |
When data is imported to DWS and Auto Creation is selected, you can specify the data storage mode:
|
Row-based |
|
Clear Data Before Import |
Whether to clear the data in the destination table before data import. The options are as follows:
|
Clear part of data |
|
WHERE Clause |
Used to specify the data to be deleted from the destination table before data import |
age > 18 and age <= 60 |
|
Import to Staging Table |
If you set this parameter to Yes, the transaction mode is enabled. CDM automatically creates a temporary table and imports data to the temporary table. After the data is imported successfully, it is migrated to the destination table in transaction mode. If the import fails, the destination table is rolled back to the state before the job starts. For details, see Migration in Transaction Mode. The default value is No, indicating that CDM directly imports the data to the destination table. In this case, if the job fails to be executed, the data that has been imported to the destination table will not be rolled back automatically.
NOTE:
If you set Clear Data Before Import to Yes, CDM does not roll back the deleted data even in transaction mode. |
No |
|
Extend Field Length |
When Auto creation is selected, the length of the character fields can be extended to three times the original length and then written to the destination table. If the encoding types of the source and destination databases are different, but the character fields in the source and destination tables are the same, errors may occur during data migration due to character length difference. When a character field containing Chinese characters is imported to DWS, the length of the character field must be automatically increased by three times. If a job fails to be executed and an error message similar to value too long for type character varying exists in the log when you import Chinese characters to DWS, you can enable this function to solve the problem.
NOTE:
When this function is enabled, some fields consume three times the storage space of the user. |
No |
|
Use NOT NULL Constraint |
If you choose to create a target table automatically and specify the NOT NULL constraint, keep the NOT NULL constraints of the source and target tables consistent. |
Yes |
Field Mapping in Automatic Table Creation on DWS
Figure 1 describes the field mapping between DWS tables created by CDM and source tables. For example, if you use CDM to migrate the Oracle database to DWS, CDM automatically creates a table on DWS and maps the NUMBER(3,0) field of the Oracle database to the SMALLINT field of DWS.
Last Article: To FTP/SFTP/NAS/SFS
Next Article: To DDS

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.