Data Migrator supports the following target database, which may require prerequisite setup for data loading:
copy
command to execute bulk data loading operations. This process is pre-configured and requires no additional configuration.Microsoft SQL Server: For Microsoft SQL Server (MSSQL), Data Migrator provides three distinct bulk loading data mechanisms
BULK INSERT
statement for MSSQL. This mode requires the bulkadmin
server role, configurable via Microsoft SQL Server Management Studio.Configuration for Data Migrator is managed through two distinct .ini files, enhancing readability and organization:
Each .ini
file can define multiple steps, allowing for a structured and modular approach to Data Migrator tasks.
A step corresponds to a section in the .ini file.
Each section has an id as title. The id is a combination of a type
and a name
connected with a hyphen. (e.g.[type - name]
)
The section type
must be one of the following:
Notes
Data Migrator establishes connections to databases based on the parameters defined in the database configuration step.
The tool performs all enabled action steps specified:
sqlModel.json
table list if exists. Otherwise collected from SQL files.Under the designed data folder (dataFolder
), data files must be stored under the folder named as the table name.
The Data Migrator migration process ends with one of the following status codes:
Code | Description |
0 | Success |
1 | Failure |
2 | Configuration invalid |
3 | Database creation error |
4 | QDDS conversion error |
5 | Data migration error |
6 | Database post process error |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::toolbox-data-migrator"
]
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::toolbox-data-migrator/*"
]
}
]
}
Toolbox buckets are replicated on the us-east-1 and us-east-2 regions. To use these replicated buckets, append the region to the bucket name: e.g. s3://toolbox-data-migrator-us-east-1
. Make sure to adapt your user or role policy accordingly.
aws s3 cp --recursive s3://toolbox-data-migrator/latest LOCAL_PATH
LOCAL_PATH
.To launch the steps migration in command line, open your favorite shell and type:
BluageVelocityDataMigrator.exe -root [migrationProjectPath] -configurationIni [configurationFilePath];[stepsConfigurationFilePath]
Parameters
The relative paths in the command will be resolved to the specified reverse project.
Options
The following options can be used when launching the migration using the command line:
aws s3 cp --recursive s3://toolbox-data-migrator/latest LOCAL_PATH
LOCAL_PATH
Run the following commands to prepare the docker image:
Windows
xcopy lib .\data-migrator\lib\ /E /I copy BluageVelocityDataMigrator.jar .\data-migrator copy eula_velocity_february_2020.txt .\data-migrator
Linux/Mac
mkdir data-migrator cp -r lib ./data-migrator/lib cp BluageVelocityDataMigrator.jar ./data-migrator cp eula_velocity_february_2020.txt ./data-migrator
Run the command to build the Docker image:
docker build -t data-migrator .
To launch the steps migration with docker image, open your favorite shell and type:
docker run --rm -v [migrationProjectPath]:/home data-migrator -root /home -configurationIni [configurationFilePath];[stepsConfigurationFilePath]
Parameters