IBM Support

Migrating schemas from Netezza to IIAS (Db2 Warehouse)

General Page

When you plan to migrate your data from Netezza to IIAS, there is one important difference that you need to consider. Db2 Warehouse has only one database, BLUDB, while on Netteza multiple databases can exist. When you move Netezza databases to Db2 Warehouse, the databases are created as schemas within the BLUDB database.
However, when your Netezza system is enabled for full schema support, you can have schemas with the same name in different databases. The migration process must then be adjusted accordingly. The following section presents how your data is migrated from Netezza to IIAS.

Migrating database schemas with multiple-schema support disabled

DB Migrate

If the source Netezza system is not enabled for full-schema support, then db_migrate maps every database on the source Netezza system to a schema on Db2 Warehouse system.
Cross-database access will be mapped to cross-schema access. The double dot “..” notation for cross-database access will be mapped to cross-schema access on Db2 Warehouse system.
Target schema name can be specified by -tSchema parameter.

Migrating database schemas with multiple-schema support enabled

By default, if the source Netezza system is enabled for multiple schemas, db_migrate maps every schema from the source 
Netezza system to a schema on Db2 Warehouse system, ignoring the database identifier.

DB Migrate

Note that if a schema with same name exists in another source database (duplicate schema names), then, by default, db_migrate will merge the duplicate schemas into one at the target (See duplicate schema name Sch_2)

DB Migrate


Two solutions are available when migrating such databases:

  • You can use a prefix for target schema names when migrating with db_migrate. 
    When you use the -prefixSchema yes parameter, the source database name is used as a prefix for target schema name.
DB Migrate



Tip: You can also use  -prefixSchema withPrefix <your_prefix> to add a customized prefix.
 

  • You can migrate each schema one by one and set a target schema name of your choice for each migrated schema, using the -sschema and -tschema options.
     
DB Migrate

Note: The target schema name is always saved in upper case, even if provided in mixed case: ‘MixedSchema’  -> MIXEDSCHEMA.

Formal information on these db_migrate options, see https://www.ibm.com/support/knowledgecenter/SS6NHC/com.ibm.swg.im.dashdb.apdv.porting.doc/doc/db_migrate_multi_schema.html

 

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHRBY","label":"IBM Integrated Analytics System"},"Component":"Migration","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 October 2019

UID

ibm10718973