Zero Downtime Installation Guide for IBM DB2

Zero Downtime Installation Guide for IBM DB2

Configure the Environment to Run Stored Procedures

Configure the Environment to Run Stored Procedures

To be able to run stored procedures through the Oracle GoldenGate user, configure the source database and the target database.
  1. On the source system, enter the IBM DB2 command interface.
    C: > db2
    In the following commands, replace the example values with your system values. See your planning document for values.
  2. Log in to the database as the Oracle GoldenGate user.
    db2 => DBLOGIN SOURCEDB
    SRCDB
    UERID
    GG
    PASSWORD
    password
  3. Set the schema to your schema name.
    db2 => set schema
    MDM_SAMPLE
  4. Update the PATH to include the schema.
    db2 => set PATH
    MDM_SAMPLE
    , current path
  5. Set the connection properties to the database.
    db2 => CALL CMXZDT.SET_GGCONN_PROPERTIES('
    SRCDB
    ','
    GG
    ','
    password
    ')
  6. Verify that you can run an Oracle GoldenGate command from DB2.
    db2 => CALL CMXZDT.GGSCI_EXEC(?,?,?,'START MGR',1)
    The command calls the Oracle GoldenGate Command Interpreter for DB2. The first three parameters stand in for the connection parameters that you specified in the previous command. The fourth parameter contains the command to start the Oracle GoldenGate Manager. The last parameter causes the Oracle GoldenGate Command Interpreter for DB2 to establish a connection to the database.
  7. Repeat all steps on the target system. Where you see SRCDB, substitute the name of the target database.

0 COMMENTS

We’d like to hear from you!