SQLines Data Tool - Database Migration from IBM DB2 to Oracle

SQLData is a scalable, high performance data transfer, schema conversion and validation tool for IBM DB2 to Oracle migration.

See also IBM DB2 to Oracle Migration Reference.

Why SQLines Data

SQLines Data benefits:

Migration Features

You can use SQLines SQL Converter tool to convert stored procedures, functions, triggers, views and other objects.

Scalability and High-Performance

Designed for DBAs and Enterprise-Class Migrations

SQLines Data in Command Line

You can use SQLines Data tool in command line. Just launch sqldata.exe on Windows with the specified options.

For information how to define DB2 and Oracle connections, see SQLines Data Connection String Formats.

Examples:

sqldata -t=emp -sd=db2,db2user/db2user_pwd@sample_db -td=oracle, ora_user/ora_pwd@server_host/sid

-t option defines the table name, -sd and -td options (source and target databases) specify the connection strings for DB2 and Oracle, respectively.

This command transfers table emp from DB2 sample_db database to Oracle database located on server_host/sid.

sqldata -t=emp -sd=db2,db2user/db2user_pwd@sample_db -td=oracle, ora_user/ora_pwd@server_host/sid
-smap=*:

The option -smap=*: specifies that the DB2 schema name is removed from all executed DDL statements in Oracle, so all objects will be created in the user schema.

For list of options, see Command Line Reference.

Troubleshooting SQLines Data

There are two main sources that can help you troubleshoot SQLines Data:

sqldata.log file contains the detailed information about DB2 to Oracle migration process.

By default, sqldata.log file is located in the current working directory. You can use -log command line option to change its location and file name.

sqldata_ddl.sql file contains information about all DDL statements executed in Oracle during migration.

In this file you can see the full SQL statements, the execution result (success or failure) and the execution time. In case of an error, you can find the error message returned by Oracle.

By default, sqldata_ddl.sql file is located in the current working directory. You can use -out command line option to change its location.

If there are any failed SQL statements, you can find them in sqldata_failed.sql file.