DSC Configuration
Configure the following items:
- Setting application.properties: Configure the migration behavior of DSC, for example, whether to overwrite the files in the target folder and whether to format the SQL files.
- Setting Java Memory Allocation: Configure the memory that can be used by DSC. If the memory usage exceeds the threshold, DSC displays an error and exits.
Setting application.properties
The application.properties file contains the application parameters that are used to configure the behavior of DSC. They are general parameters and are applicable to Teradata, Oracle.
Perform the following steps to configure the parameters:
- Open the application.properties file in the config folder.
- Set parameters in the application.properties file as needed.
Table 1 describes the parameters in the application.properties file.
- Parameter values are case-insensitive.
- Do not modify any other parameter except the listed ones.
- Save the configuration and exit.
Parameter |
Description |
Value Range |
Default Value |
Example |
---|---|---|---|---|
|
If there are any changes in this configuration item, then the tool will not function as expected. |
|
true |
formatterrequired=true |
|
If there are any changes in this configuration item, then the tool will not function as expected. |
|
true |
prevalidationFlag=true |
|
If there are any changes in this configuration item, then the tool will not function as expected. |
|
true |
commentSeparatorFlag=true |
|
If there are any changes in this configuration item, then the tool will not function as expected. |
NA |
N/A |
queryDelimiter=; |
|
If there are any changes in this configuration item, then the tool will not function as expected. |
NA |
N/A |
blogicDelimiter=/ |
|
Tool migration timeout duration. If any changes in this configuration item, then the tool will not function as expected. |
- |
4 hours |
Timeout=4 |
|
Valid file extension separated by comma. If there are any modifications in this configuration item, then the tool will not function as expected.
NOTE:
The exported scripts must be with the following postfix such as:
and so on. |
|
SQL |
fileExtension=SQL |
Whether to use SQL Formatter to format the source SQL files. If this parameter is set to true, the copies of the input files are formatted and saved to the Output path/formattedSource directory. |
|
true |
formattedSourceRequired=true |
|
|
Specifies the operations to be performed on the output folder. Overwrite: overwrites the output folder. This option specifies whether the files in the output folder must be overwritten. Delete: deletes all files in the output folder. Cancel: cancels an operation on the output folder that contains files. |
|
overwrite |
target_files=overwrite |
|
Encoding format of input files. If this parameter is not set (or is commented out), DSC uses the default encoding format based on locale settings.
NOTE:
|
|
Default based on locale. |
encodingFormat=UTF8 |
|
Number of threads used for migration. |
Depending on available system resources |
3 |
NoOfThreads=3 |
|
Warning threshold for the input file size (unit: KB, MB, or GB). If an invalid value is specified, the default value is used. The following warning will be displayed if the specified source file size exceeds the threshold: ***************** [WARNING] : Migration of the following files(>100KB) will take more time: bigfile001.SQL bigfile008.SQL ***************** |
10 KB 1 GB |
10MB |
MaxFileSizeWarning=10MB |
|
Maximum size of the input file allowed. If crossing this limit, the file migration will be skipped. |
- |
20MB |
MaxFileSize=20MB |
|
Maximum size of a query to be migrated. If an invalid value is specified, DSC resets it to the default value and displays the following warning: The query length parameter (MaxSqlLen) value is out of range. Resetting to default value. If an input query exceeds the specified maximum length, the pre-validation of the query migration will fail. DSC skips this query and logs the following error: 2018-07-06 12:05:57,598 ERROR TeradataBulkHandler:195 Error occurred during processing of input in Bulk Migration. PreQueryValidation failed due to: Invalid termination; OR exclude keyword found in query; OR query exceeds maximum length (MaxSqlLen config parameter). filename.SQL for Query in position : xx |
1 to 52,428,800 bytes (1 byte to 50 MB) |
1048576 (1 MB) |
MaxSqlLen=1048576 |
|
Initial memory |
N/A |
256 MB |
initialJVMMemory=256MB This indicates, process will startup with 256 MB of memory |
|
Maximum memory |
N/A |
1024 MB |
maxJVMMemory=2048m This indicates, the process will use up to 2048 MB of memory. |
- If a parameter is set to an incorrect or invalid value, DSC uses the default value of the parameter.
- If the extensions (for example, .doc) are not supported, then it is recommended you add extension in fileExtension configuration parameter in application.properties file.
Setting Java Memory Allocation
DSC has preset settings for the memory allocation of the Java Virtual Machine (JVM).
If the memory usage exceeds the limit during migration, DSC displays the "java.lang.OutOfMemoryError: GC overhead limit exceeded" error and exit. In this case, you can increase the values of initialJVMMemory and maxJVMMemory in the application.properties file to allocate more memory.
The available system resources also determine the memory allocation.
Parameter |
Description |
Recommended Value |
---|---|---|
Xms |
Initial memory allocation (unit: MB) |
The minimum value is 256 MB. The maximum value depends on the available system resources. Default value: 256 |
Xmx |
Upper limit for memory allocation (unit: MB) |
The minimum value is 1024 MB. The maximum value depends on the available system resources. Default value: 1024 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot