iqunload Utility

iqunload is a command line utility for SAP Sybase IQ 12.6 and 12.7 database migration. iqunload re-creates the legacy catalog on the new database catalog in the current installation.

iqunload does not change SAP Sybase IQ data and temp dbspaces. The utility preserves all legacy database options and applies them to the new database. SAP Sybase IQ ignores any legacy options that no longer apply to the current version of the software.
Note: If you are reloading a 12.6 or 12.7 database, remove any square brackets or back quotes in identifiers; otherwise, the reload fails.

Syntax

iqunloadoptions ]  directory [ @data ]
data:[ environment variable | file ]

Parameters

iqunload takes one or more parameters.

Examples

Usage

iqunload has two working modes: schema unload and migration.

Schema Unload Mode

iqunload requires an -n argument to start in schema unload mode. Schema unload mode unloads a 12.6 ESD #11 or 12.7 ESD #5 database schema, and generates a script (reload.sql) that can re-create the schema for a database in a current version of the software. A -c argument is required for connection parameters:

iqunload -n -c "UID=DBA;PWD=SQL;ENG=my_engine;DBN=my_dbname"

Schema unload mode re-creates the schema, but does not migrate data. To migrate data, extract the legacy data and load the new database.

Migration Mode

iqunload requires an -au argument to start in migration mode. iqunload migration mode interfaces with the 12.7 support engine (iqunlspt) and the current database server (iqsrv16):
  • Start the legacy database and generate the schema
  • Start the current SAP Sybase IQ server
  • Create a new database and apply the legacy schema
General Usage
  • Insufficient cache memory causes migration errors. iqunload uses default values for various cache sizes (catalog cache, main buffer cache, temp cache). If the legacy database requires higher cache values, use the –ch and -cl options as part of the START connection parameter to increase the cache size.

  • During database migration, the server creates a message file (*.iqmsg.R) as it reloads the generated schema. This file is normally deleted as part of a cleanup operation for successful migrations. If the migration fails during the reload stage, cleanup does not occur, and *.iqmsg.R remains in the unload directory. *.iqmsg.R may contain information that can help solve your migration problems.

  • iqunload writes some temporary files to the %IQTMP16% directory. If you set the %IQTMP16% environment variable, set it to a valid directory name.

  • Users with wide tables (large numbers of column/null values) should not decrease the catalog store page size for database migration.

  • If the legacy database contains invalid views, SAP Sybase IQ completes the migration but issues warnings. A warning may occur, for example, if the tables involved in a view are dropped.

  • If the legacy database is encrypted, use the DBKEY connection parameter to provide the encryption key. The migrated database uses the same encryption key.

Permissions

DBA

Related concepts
iqlsunload Utility
Support Processes