Zero Downtime Installation Guide for IBM Db2

Zero Downtime Installation Guide for IBM Db2

Prepare the IBM Db2 Databases

Prepare the IBM Db2 Databases

Back up the IBM Db2 source database that contains the MDM Hub Store. Then copy and restore the backup on the target database. When you restore the database, the target database has the same tablespaces as the source database.
  1. Connect to the source Db2 database by running the following command:
    CONNECT TO <Source database> USER <Db2 administrator> USING <Password>
  2. Grant DBA privileges to the GoldenGate user on both the source and target systems by running the following command:
    GRANT DBADM ON DATABASE TO <GoldenGate user>
  3. To reset the connection, run the following command:
    CONNECT RESET
  4. Set the configuration parameters for the source database by running the following command:
    UPDATE DB CFG FOR <Source database> USING LOGRETAIN OFF
  5. To specify the directory in which Db2 stores the archive log files, run the following command:
    UPDATE DB CFG FOR <Source database> USING LOGARCHMETH1 <Directory path>
  6. To set the automatic maintenance database configuration parameters to OFF, run the following command:
    UPDATE DB CFG FOR <Target database> USING AUTO_MAINT OFF
  7. To backup the source database, run the following command:
    BACKUP DB <Source database> COMPRESS
  8. To stop the command-line processor, run the following command:
    QUIT
  9. To disconnect the database connection, run the following command:
    FORCE APPLICATIONS ALL

0 COMMENTS

We’d like to hear from you!