Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Bolo.

Table of Contents

Search

  1. Introducing Mass Ingestion
  2. Getting Started with Mass Ingestion
  3. Connectors and Connections
  4. Mass Ingestion Applications
  5. Mass Ingestion Databases
  6. Mass Ingestion Files
  7. Mass Ingestion Streaming
  8. Monitoring Mass Ingestion Jobs
  9. Asset Management
  10. Troubleshooting

Mass Ingestion

Mass Ingestion

Installing and configuring the stored procedure for Db2 for z/OS CDC

Installing and configuring the stored procedure for Db2 for z/OS CDC

To perform Db2 for z/OS CDC processing for incremental load jobs, Mass Ingestion Databases provides a stored procedure that runs on the z/OS source system. The stored procedure calls the Db2 Instrumentation Facility Interface (IFI) to collect change data from the Db2 logs.

z/OS system requirements

Before you begin, verify that the Db2 for z/OS source system meets the following requirements:

Install the Stored Procedure Libraries and Customize the JCL

On your client PC, perform the following steps:
  1. Verify that the Db2 for zOS Database Ingestion connector is available.
    The Db2 for zOS Database Ingestion connector package contains the Db2 for z/OS stored procedure libraries. When the connector is enabled for the Secure Agent Group (runtime environment), the connector package .zip file is downloaded to the downloads folder in the installation location. The package name has the format package-DB2ZMI.
    nnnnn
    , where
    nnnnn
    is an incremented package version number. If multiple package versions exist, use the latest one.
  2. Unzip the package-DB2ZMI.
    nnnnn
    .zip file. The stored procedure files are added to the Db2WLMStoredProcedure folder under the package name.
  3. Use FTP to transfer the #STPINST file in the Db2WLMStoredProcedure folder to a sequential file, PDS, or PDSE on the z/OS system.
    Notes:
    • Transfer the file without binary mode set.
    • Add a High Level Qualifier (HLQ) if needed to meet system requirements.
  4. Use FTP or another file transfer method to transfer the DBMI.ZOS.DBRMLIB.XMI file to a data set on the z/OS system.
    Notes:
    • Add or edit the High Level Qualifier (HLQ) if needed to meet system requirements.
    • Transfer the file in binary mode.
    • Ensure that the data set has the DCB attributes of LRECL=80, BLKSIZE=3120, and RECFM=FB.
      You might need to pre-allocate the data set to specify the required attribute values.
  5. Use FTP or another file transfer method to transfer the DBMI.ZOS.LOADLIB.XMI file to the z/OS system.
    Notes:
    • Add or edit the High Level Qualifier (HLQ) if needed to meet system requirements.
    • Transfer the file in binary mode.
    • Ensure that the data set has the DCB attributes of LRECL=80, BLKSIZE=3120, and RECFM=FB.
      You might need to pre-allocate the data set to specify the required attribute values.
On the z/OS system, use TSO to receive the transmit (XMI) files into an APF-authorized library and then edit the stored procedure JCL member:
  1. Receive the DBRMLIB transmit data set:
    RECEIVE INDATASET(DBMI.ZOS.DBRMLIB.XMI)
    Notes:
    • If you specified a HLQ when transferring the data set to z/OS, include the HLQ.
    • When you see message
      INMR906A Enter restore parameters or 'DELETE' or 'END' +
      , enter your APF-authorized library:
      DA(
      your.library_name
      ) UNIT(
      unit
      ) VOLUME(
      volume
      )
      The UNIT() and VOLUME() operands are optional. Include them if your installation does not put RECEIVE files on a work unit or volume by default.
  2. Receive the LOADLIB transmit data set:
    RECEIVE INDATASET(DBMI.ZOS.LOADLIB.XMI)
    Use the same guidelines as in Step 1.
  3. Customize the #STPINST file that contains the stored procedure JCL for your environment.
    The JCL creates the stored procedure and a global temporary table that holds the results of the requests to the Db2 IFI for data. It also binds the stored procedure package.
    Notes:
    • Based on the comments at the top of the JCL file, replace variables in the JCL with the values appropriate for your z/OS environment, including the Db2 subsystem name (!DSN!), stored procedure schema name (!SCHEMA!), stored procedure name (!STRPRC!), WLM environment name (!WLMENV!), and the name of the DBRMLIB transmit data set (!DBRMLIB! received in Step 1.
    • If you used a HLQ for the received data sets, include the HLQ in the JCL.
    • The WLM environment name is specified in the procedure APPLENV parameter or in the EXEC PARM of the WLM address space.
      In the procedure parameter:
      //STARTING EXEC DSNBWLMG,DB2SSN=DSNB,
      APPLENV='DSNBWLM_GENERAL'
      In the EXEC PARM:
      PARM='DSNB,40,
      DSNBWLM_GENERAL
      '
    • You can use the received LOADLIB library after it is APF-authorized, or copy the contents of the library to your own APF-authorized library.
    • The STEPLIB concatenation in the WLM address space must contain only APF-authorized libraries for the Db2 IFI to run.

Permissions Required for Executing the Stored Procedure on z/OS

Ensure that the following Db2 permissions are granted before you run the JCL job:
  • Ensure that the user who executes the stored procedure job has SYSADM authority, or ask the Db2 for z/OS DBA to run it.
  • For the stored procedure to run, you must grant the following Db2 permissions to the procedure schema name specified in the #STPINST JCL file:
    • SELECT authority on Db2 catalog tables:
      GRANT SELECT ON SYSIBM.* TO
      schema
      ;
    • EXECUTE authority on the package name specified in the JCL.
      GRANT EXECUTE ON PACKAGE
      package_name
      TO
      schema
      ;
Additionally, grant INSERT and DELETE authority on the schema and stored procedure name that are specified in the JCL for the global temporary table:
GRANT INSERT, DELETE ON
schema
.
stored_procedure_name
_RS_TBL TO
user

0 COMMENTS

We’d like to hear from you!