Table of Contents

About Ispirer Systems

Ispirer Home Page Database Migration Application Conversion Downloads


Script Conversion

Using Ispirer Toolkit for Linux for script conversion will help you convert separate files containing SQL code.

Preparing Command Line

The command syntax is as follows:

SQLWays 
/D=Fixed 
/SOURCE=<source DB>
/TARGET=<target DB>
/DIR=<result_directory> 
{<objects to be converted>}
/INI=<ini_file_path>
[TRACE]


<objects to be converted>:
/F = <sql_file_to_convert> (recommended)
|  /FF <files_list_file> (recommended)
|  /PRJF=<project_file_path> (for experienced users; reserved for the future needs)

Note: SQLWays command line parameters are case insensitive and their order is of no importance.

Description of parameters

Required parameters:

The method for selecting SQL files must be specified. One of the following arguments must be used:

/* 1 file conversion */
/F=/home/bob/project1/file1.sql 

/* all SQL files by the path */
/F=/home/bob/project1/*.sql

/* all the files by the path */ 
/F=/home/bob/project1/*.* 
/home/bob/project1/file1.sql 
/home/bob/project1/file2.sql 
/home/bob/project1/file3.sql

Optional parameters:

More information about all supported command line options can be found in the Command Line Options section.

Command line sample:

SQLWays /D=FIXED /TARGET=PostgreSQL /SOURCE=Oracle /DIR=/home/bob/project1/Result /INI=/home/bob/project1/sqlways_app.ini /PRJF=/home/bob/project1/sqlways.xml

Running Command Line

Once the command line with the appropriate set of parameters is prepared, we need to run it in the terminal:

Generated Result Files

The following generated files can be found in the directory specified by the /DIR parameter:

The sql files contain code ready to be executed in the target database.