Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
A Step by Step guide to carry out MFT Database Migration for IBM MQ version 9.0.5 and above
Paras Mamgain Published on 25/04/2018 / Updated on 30/07/2018
Introduction
When IBM MQ Managed File Transfer transfers files, it provides an additional facility using which we can keep track of all the transfer that has happened on the particular coordination queue manager. The database logger is an optional component of Managed File Transfer that you can use to copy this information into a database for analysis and auditing purposes. This Optional Component i.e. database Logger can be configured with Oracle Database and with IBM DB2 Database for storing the logs/information which is published under the topic(SYSTEM.FTE/#) on the coordination queue Manager. MFT ships a number of SQL scripts for both Oracle and DB2 databases to create required tables in these database.Administrators are required to execute these SQL Scripts on their database before MFT Logger is configured.
Recently, IBM MQ Managed File Transfer has upgraded its database Schema as a result some changes were made in the SQL Script file as well. IBM MQ Managed File Transfer ships some additional SQL Script file that enables the User/Database administrator to easily migrate from older database schema to the newer database schema *(Managed File transfer will be called as MFT henceforth)
Why Is It Important
Pre-Requisite This document is valid for following scenarios:
Important Note :Before Executing the following migration steps (mentioned for Oracle/ IBM DB2 Database).Take a Backup for your entire database and its relevant configuration. Seek help/guidance from your Database Administrator while taking back up and before carrying out the migration process.
Steps for migrating an Oracle database in current schema to new schema The Following steps are recommended to migrate a database from existing schema to the new schema. The steps below describe updating existing table schema by executing the sample SQL script file. Note : Take a backup for our database and its relevant configuration which involves migration process.
Steps for migrating an DB2 database in current schema to new schema The Following steps are recommended to migrate a database with existing schema to the new schema. The steps below describes updating existing table schema by executing the sample SQL script file. Note : Take a backup for our database and its relevant configuration which involves migration process.
Execute SQL script files using commands as illustrated below : a.db2 -tvmf db2_varchar_migration_step_1.sql b.db2 -tvmf db2_varchar_migration_step_2.sql c.db2 -tvmf db2_varchar_migration_step_3.sql d.db2 -tvmf db2_varchar_migration_step_4.sql