forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
4.6 KiB
4.6 KiB
Preparations
Before the migration, create an input folder and an output folder, and copy all the SQL scripts to be migrated to the input folder. The following procedure describes how to prepare for the migration in Linux.
- Run the following commands to create an input folder and an output folder. You can create the folder anywhere based on your preferences. You can also use the default folders for input, output, provided as part of package.
mkdir input mkdir output
- Copy all SQL scripts to be migrated to the input folder.
- If the encoding format of source files is not UTF-8, perform the following steps:
- Open the application.properties file in the config folder.
- Change the value of encodingFormat in the application.properties file to the required encoding format.
DSC supports the UTF-8, ASCII, and GB2312 encoding formats. The values of encodingFormat are case-insensitive.
- To obtain the encoding format of a source file in Linux, run the following command on the server where the source file is located:
file -bi <Input file name>
- If the encoding format of source files is not UTF-8, perform the following steps:
Parent topic: Migration Process