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.
Connect to the source Db2 database by running the following command:
CONNECT TO <Source database> USER <Db2 administrator> USING <Password>
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>
To reset the connection, run the following command:
CONNECT RESET
Set the configuration parameters for the source database by running the following command:
UPDATE DB CFG FOR <Source database> USING LOGRETAIN OFF
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>
To set the automatic maintenance database configuration parameters to OFF, run the following command:
UPDATE DB CFG FOR <Target database> USING AUTO_MAINT OFF
To backup the source database, run the following command:
BACKUP DB <Source database> COMPRESS
To stop the command-line processor, run the following command:
QUIT
To disconnect the database connection, run the following command: