Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

DSC Configuration

Updated on 2023-03-17 GMT+08:00

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:

  1. Open the application.properties file in the config folder.
  2. Set parameters in the application.properties file as needed.

    Table 1 describes the parameters in the application.properties file.
    NOTE:
    • Parameter values are case-insensitive.
    • Do not modify any other parameter except the listed ones.

  3. Save the configuration and exit.
Table 1 Parameters in the application.properties file

Parameter

Description

Value Range

Default Value

Example

  • formatterrequired

If there are any changes in this configuration item, then the tool will not function as expected.

  • true
  • false

true

formatterrequired=true

  • prevalidationFlag

If there are any changes in this configuration item, then the tool will not function as expected.

  • true
  • false

true

prevalidationFlag=true

  • commentSeparatorFlag

If there are any changes in this configuration item, then the tool will not function as expected.

  • true
  • false

true

commentSeparatorFlag=true

  • queryDelimiter

If there are any changes in this configuration item, then the tool will not function as expected.

NA

N/A

queryDelimiter=;

  • blogicDelimiter

If there are any changes in this configuration item, then the tool will not function as expected.

NA

N/A

blogicDelimiter=/

  • Timeout

Tool migration timeout duration.

If any changes in this configuration item, then the tool will not function as expected.

-

4 hours

Timeout=4

  • fileExtension

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:

  • .sql
  • .txt
  • .fnc
  • .proc
  • .tbl
  • .tbs
  • .pl

and so on.

  • csv
  • txt
  • SQL

SQL

fileExtension=SQL

  • formattedSourceRequired

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
  • false

true

formattedSourceRequired=true

  • target_files

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
  • delete
  • cancel

overwrite

target_files=overwrite

  • encodingFormat

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:
  • The auto detection of file encoding is inaccurate. To ensure that the correct encoding format is used, specify the format using this parameter.
  • UTF8
  • UTF16
  • UTF32
  • GB2312
  • ASCII, etc.

Default based on locale.

encodingFormat=UTF8

  • NoOfThreads

Number of threads used for migration.

Depending on available system resources

3

NoOfThreads=3

  • MaxFileSizeWarning

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

  • MaxFileSize

Maximum size of the input file allowed. If crossing this limit, the file migration will be skipped.

-

20MB

MaxFileSize=20MB

  • MaxSqlLen

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

  • initialJVMMemory

Initial memory

N/A

256 MB

initialJVMMemory=256MB

This indicates, process will startup with 256 MB of memory

  • maxJVMMemory

Maximum memory

N/A

1024 MB

maxJVMMemory=2048m

This indicates, the process will use up to 2048 MB of memory.

NOTE:
  • 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.

NOTE:

The available system resources also determine the memory allocation.

Table 2 Parameters for JVM 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

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback