About Ispirer Systems
Ispirer Home Page Database Migration Application Conversion Downloads
Sqlways.ini File - Section [IBM DB2]
This article describes sqlways.ini file's [IBM DB2] section and the options it contains.
Option name | Description |
---|---|
BIN | Specifies the directory where IBM DB2 utilities like CLP, IMPORT and LOAD are located. |
DATABASE | Specifies the database name that is used in generated scripts for IBM DB2 utilities. |
USER | Specifies the user name that is used in generated scripts for IBM DB2 utilities. |
PWD | Specifies the user password that is used in generated scripts for IBM DB2 utilities. |
TARGET_VERSION | Specifies the target version of DB2 database. If this option is empty the latest DB2 database version will be used. Note: According to the version number conversion results may differ. |
USE_LOAD_COMMAND | If Yes is specified, IBM DB2 LOAD command is used to move data into the IBM DB2 database. Possible values - Yes, No. The default value is No, which means that IBM DB2 IMPORT command is used. |
LOAD_FROM_CLIENT | If Yes is specified, the CLIENT option is used in IBM DB2 LOAD command. This option specifies that data can reside on a remote client. Otherwise, data must be located on the IBM DB2 server. Possible values - Yes, No. The default value is No. The CLIENT option in LOAD command is available in IBM DB2 7.1 or later. |
LOAD_NONRECOVERABLE | If Yes is specified, the NONRECOVERABLE option is added to IBM DB2 LOAD command. This option specifies that the load transaction is to be marked as non-recoverable and that it will not be possible to recover it by a subsequent roll forward action. With this option, when the database is configured to support online backups, table spaces are not put in backup pending state following the load operation. Possible values - Yes, No. The default value is No. |
IMPORT_OPTION | Specifies a mode, under which the import utility will be executed. Possible values are INSERT (Adds the imported data to the table without changing the existing table data), INSERT_UPDATE (Adds rows of imported data to the target table or updates existing rows of the target table with matching primary keys) and REPLACE (Deletes all existing data from the table by truncating the data object and inserts the imported data. The table definition and the index definitions are not changed). The default mode is INSERT. |
LOAD_OPTION | Specifies a mode, under which the load utility will be executed. Possible values are INSERT (Adds the loaded data to the table without changing the existing table data) and REPLACE (Deletes all existing data from the table and inserts the loaded data. The table definition and index definitions are not changed). The default mode is INSERT. |
MODIFIEDBY_OPTIONS | Specifies additional options that are added to the modified by option of IBM DB2 IMPORT and LOAD utilities. Some options like character, column delimiters and others are added to IBM DB2 IMPORT/LOAD scripts by SQLWays. You can use this option if you need other options to be added to the modified by option. For example, set modifiedby_options=usedefaults delprioritychar and these options will be added to the modified by option in each script for IBM DB2 IMPORT/LOAD utilities. |
TIMESTAMP_FORMAT | This option specifies the format of the timestamp columns in the text file when the target database is IBM DB2. Possible values - IBM DB2, ISO. The default value is IBM DB2 that means using the IBM DB2 native format of timestamps. The IBM DB2 native format is YYYY-MM-DD-HH.MI.SS.FFFFFF. The IBM DB2 IMPORT command requires this format to import text files containing timestamps not enclosed by double quotes (TAB delimited output format e.g.). When ISO is specified, the ISO format of timestamps will be used. The ISO format is YYYY-MM-DD HH:MI:SS.FFFFFF. IBM DB2 IMPORT command can import timestamp values in the ISO format when they are enclosed by double quotes (CSV output format e.g.). Note. This option is ignored when any value is specified in the option DATETIME_FORMAT (see earlier in the [DATA] subsection). For example, when DATETIME_DATATYPE=DATE is specified, the datetime datatypes will be converted to DATE in IBM DB2. |
TABLESPACE | Specifies the table space in which the tables will be created. The table space must exist and be a REGULAR table space. If no other table space is specified, all table parts will be stored in this table space. The default value is USERSPACE1. |
TABLESPACE_DATABASE_NAME | This option will add IN [database_name] clause to the converted table definition that controls in which database this table should be created. By default this option is empty. |
INDEX_TABLESPACE | Specifies the table space in which any indexes on the tables will be created. The specified table space must exist, be a REGULAR DMS table space. |
LONG_TABLESPACE | Specifies the table space in which the values of any long columns (LONG VARCHAR, LONG VARGRAPHIC, LOB data types) will be stored. The table space must exist and be a LONG DMS table space. |
WLM | Specifies the WLM environment value when generating external functions in DB2. Default value - Empty. |
DOUBLE_SIZE_CHARACTERS_DATA_TYPES | If this option is set to “Yes”, SQLWays Wizard will double the size of the character columns in the converted tables. Possible values - “Yes”, “No” or Empty. Default value - “No” or Empty. |
IXF_SB_CODE_PAGE | This option specifies Single-Byte codepage, that will be used in the .IXF file generated during the conversion step. |
IXF_DB_CODE_PAGE | This option specifies Double-Byte codepage, that will be used in the .IXF file generated during the conversion step. |
USE_SOURCE_TABLESPACE_NAMES | This option specifies whether to use the original tablespace names in the converted objects. Possible values - “Yes”, “No” or Empty. Default value - “No” or Empty. |
DB2CMD_FULL_PATH | If this option is set to “Yes”, SQLWays Wizard will generate command to the native db2.exe utility using the full path to this utility. Possible values - “Yes”, “No” or Empty. Default value - “No” or Empty. |
PREFETCH_SIZE | This option identifies the number of rows you want to read from the datafile before data save for Direct path loads. The default is to read all the rows and save data at the end of the load. |