Wednesday, September 15, 2004

Migrating from AIX to Windows

There are the steps that i followed to migrate...

Haven't done the move on Prod DB. Will update with changes if any.

STEPS:

DB2 doesn’t support cross platform back-up and restore between AIX & Windows. Thus redirect restore cannot be used.

But DB2 UDB has tools to achieve this task.

  • db2move - Used for moving User tables (DATA)
  • db2look - Creates DDL to create the database objects in the new environment.
  • db2cfexp – Exports connectivity configuration to an export profile
  • db2cfimp – Import connectivity configuration information.

Steps for Moving from AIX to Windows

On AIX:

  1. Use db2move to export all table data to PC/IXF files
  2. Use db2look to generate DDL for all the database objects.
  3. Use db2cfexp to export the configuration information to a file.
  4. Transfer PC/IXF files & Configuration profile in Binary Mode.
  5. Transfer db2look.sql & db2move.lst in ASCII Mode.

On Windows:

  1. Make sure the version of DB2 is same with the appropriate Fixpack.
  2. Create an instance with the same name as it was in AIX. (optional)
  3. Create all the databases that you are moving.
  4. Set current schema name.
  5. Create required Buffer pools and Table Spaces for the DB.
  6. Run the script generated by db2look
  7. Import the configuration information using db2cfimp tool.
  8. Run db2move in load mode. (Takes a while for large DB’s)
  9. Update DB CFG to reflect the source DB.
  10. Do a Full DB/Table space Backup to take the table space out of backup pending state and check for the integrity of the Backup.
  11. Detect the tables that are in check pending state and bring it to normal state. (set integrity)
  12. Check other db objects to make sure they are in Normal State.
  13. All the configuration parameters need to be tuned according to the current hardware.

NOTE:

Don’t forget that default values for some parameters are different for windows & AIX


comments, suggestions, questions are welcome..


No comments: