You can run the runDSC.sh or runDSC.bat command to perform a migration task on Windows and Linux. For details, see Table 1.
Migration |
CLI Parameter |
---|---|
> ./runDSC.sh --source-db Teradata [--application-lang SQL] [ --input-folder <input-script-path> ] [--output-folder <output-script-path> ] [--log-folder <log-path>] [--target-db/-T][Optional] > runDSC.bat --source-db Teradata [--application-lang SQL] [ --input-folder <input-script-path> ] [--output-folder <output-script-path> ] [--log-folder <log-path>] [--target-db/-T][Optional] |
|
> ./runDSC.sh --source-db Teradata [--application-lang Perl] [--input-folder <input-script-path> ] [--output-folder <output-script-path> ] [--log-folder <log-path>] [--target-db/-T][Optional] > runDSC.bat --source-db Teradata [--application-lang Perl] [--input-folder <input-script-path> ] [--output-folder <output-script-path> ] [--log-folder <log-path>] [--target-db/-T][Optional] |
|
> ./runDSC.sh --source-db MySql [--application-lang SQL] [--input-folder <input-script-path>] [--output-folder <output-script-path>] [--log-folder <log-path>] [--conversion-type <conversion-Type-BulkOrBlogic>] [--target-db/-T] > runDSC.bat --source-db MySql [--application-lang SQL] [--input-folder <input-script-path>] [--output-folder <output-script-path>] [--log-folder <log-path>] [--conversion-type <conversion-Type-BulkOrBlogic>] [--target-db/-T] |
Bulk: migrates DML and DDL scripts.
BLogic: migrates service logic, such as stored procedures and functions.
Migration process start time indicates the migration start time and Migration process end time indicates the migration end time. Total process time indicates the total migration duration, in milliseconds. In addition, the total number of migrated files, total number of processors, number of used processors, log file path, and error log file path are also displayed on the console.
./runDSC.sh --source-db Teradata --input-folder D:\test\conversion\input --output-folder D:\test\conversion\output --log-folder D:\test\conversion\log --conversion-type ddl --targetdb gaussdbA
runDSC.bat --source-db Teradata --input-folder D:\test\conversion\input --output-folder D:\test\conversion\output --log-folder D:\test\conversion\log --conversion-type ddl --targetdb gaussdbA
Migration details are displayed on the console (including the progress and completion status):
********************** Schema Conversion Started ************************* DSC process start time : Mon Jan 20 17:24:49 IST 2020 Statement count progress 100% completed [FILE(1/1)] Schema Conversion Progress 100% completed ************************************************************************** Total number of files in input folder : 1 Total number of valid files in input folder : 1 ************************************************************************** Log file path :....../DSC/DSC/log/dsc.log Error Log file : DSC process end time : Mon Jan 20 17:24:49 IST 2020 DSC total process time : 0 seconds ********************* Schema Conversion Completed ************************