5 Installing Oracle GoldenGate for DB2 z/OS Databases
Topics:
- System Services
- Memory Requirements
- Disk Requirements for DB2 z/OS
- Operating System Privileges for DB2 z/OS
- Choosing an Installation Operating System
- Installing Extract Components on DB2 z/OS
Parent topic: Installing Oracle GoldenGate for Heterogeneous Databases
System Services
Activate UNIX System Services (USS) only if required to install the executables for the Extract support modules.
Oracle GoldenGate supports Sysplex data sharing.
Parent topic: Installing Oracle GoldenGate for DB2 z/OS Databases
Memory Requirements
Oracle GoldenGate requires the following memory resources on the local system.
- On the remote system
-
The amount of memory that is required for Oracle GoldenGate depends on the amount of data being processed, the number of Oracle GoldenGate processes running, the amount of RAM available to Oracle GoldenGate, and the amount of disk space that is available to Oracle GoldenGate for storing pages of RAM temporarily on disk when the operating system needs to free up RAM (typically when a low watermark is reached). This temporary storage of RAM to disk is commonly known as swapping or paging. Depending on the platform, the term swap space can be a swap partition, a swap file, or a shared memory segment (IBM i platforms).
Modern servers have sufficient RAM combined with sufficient swap space and memory management systems to run Oracle GoldenGate. However, increasing the amount of RAM available to Oracle GoldenGate may significantly improve its performance, as well as that of the system in general.
Typical Oracle GoldenGate installations provide RAM in multiples of gigabytes to prevent excessive swapping of RAM pages to disk. The more contention there is for RAM the more swap space that is used.
Excessive swapping to disk causes performance issues for the Extract process in particular, because it must store data from each open transaction until a commit record is received. If Oracle GoldenGate runs on the same system as the database, the amount of RAM that is available becomes critical to the performance of both.
RAM and swap usage are controlled by the operating system, not the Oracle GoldenGate processes. The Oracle GoldenGate cache manager takes advantage of the memory management functions of the operating system to ensure that the Oracle GoldenGate processes work in a sustained and efficient manner. In most cases, users need not change the default Oracle GoldenGate memory management configuration.
For more information about evaluating Oracle GoldenGate memory requirements, see the
CACHEMGR
parameter in the Reference for Oracle GoldenGate. - On the DB2 host system
-
Allocate approximately 10-50 MB of virtual memory for each Oracle GoldenGate log reader,
oggreadx
, that is invoked depending on the size of the log buffer. There is one invocation per Extract process on the remote system. To adjust the maximum log buffer size, use theTRANLOGOPTIONS BUFSIZE
parameter in the Extract parameter file.When setting up the Wotkload Manager (WLM) environment for the Extract log read components, it is recommended to set
NUMTCB
in the range of 10-40 depending on your environment. This is based on the IBM general guidelines available here:
Parent topic: Installing Oracle GoldenGate for DB2 z/OS Databases
Disk Requirements for DB2 z/OS
- On the DB2 host system
-
(Only applicable if you are installing stored procedures.) Assign a zFS (zSeries file systems) or hierarchical file system volume. To determine the size of the Oracle GoldenGate download file, examine the size of
zOSPrograms.zip
on the remote DB2 system after extracting the installation image.
Parent topic: Installing Oracle GoldenGate for DB2 z/OS Databases
Operating System Privileges for DB2 z/OS
The remote host requires privileges to use the chmod +rw
command on
the sub-directories in the Oracle GoldenGate product directory.
Table 5-1 shows the other required operating system privileges for Oracle GoldenGate:
Table 5-1 Operating System Privileges
DB2 z/OS User Privilege | Extract | Stored Procedures | Replicat |
---|---|---|---|
|
X |
X |
X |
Parent topic: Installing Oracle GoldenGate for DB2 z/OS Databases
Choosing an Installation Operating System
Oracle GoldenGate for DB2 for z/OS operates remotely on zLinux, AIX or Intel Linux systems. To capture data, a small component must be installed on the DB2 z/OS system that contains the DB2 instance that will allow Oracle GoldenGate to read the DB2 log data.
To install Oracle GoldenGate on a remote zLinux, AIX or Linux system, you have the following options for connecting to DB2 on the z/OS system:
-
DB2 Connect v10.5 or greater
-
IBM Data Server Driver for ODBC and CLI v10.5 or greater
-
IBM Data Server Client v10.5 or greater
-
IBM Data Server Runtime Client v10.5 or greater
Consider the following:
-
Extract uses Open Database Connectivity (ODBC) to connect to the DB2 subsystem on the z/OS system. If one of the other drivers is not already installed, the IBM Data Server Driver for ODBC and CLI is the most lightweight driver and is recommended for most configurations, although the other drivers are suitable also.
-
To capture DB2 log data, the log reader component must be installed in a Library (PDSE) on the z/OS system. Load Libraries (PDS) are not supported. The library must be authorized program facility (APF) helps your installation protect the system. APF-authorized programs can access system facility (APF) authorized. The log read component is called through SQL from the remote system and since it is APF authorized, an authorized Workload Manager (WLM) environment must also be used to run these programs since the default DB2 supplied WLM environment is not able to run authorized workload.
-
No special requirements beyond what capture already has are necessary for Oracle GoldenGate delivery. Because this Oracle GoldenGate release is a fully-remote distribution, the former Oracle GoldenGate DB2 Remote product is no longer shipped separately. However, Windows is not supported in Oracle GoldenGate for DB2 z/OS in this release. If you still require delivery to z/OS from Windows, then Oracle GoldenGate DB2 Remote 12.2 is still available.
-
UNIX System Services (USS) is no longer required (as in prior releases) except for a few installation procedures.
-
Windows only: To apply data to a DB2 target from Windows, Oracle GoldenGate DB2 Remote v12.2 must be used. Capture is not support in this scenario.
-
Install Oracle GoldenGate DB2 Remote on a remote system for remote delivery to the DB2 target system. In this configuration, Replicat connects to the target DB2 database by using the ODBC API that is supplied in DB2 Connect . This configuration requires DB2 LUW to be installed on the remote system.
Note:
All of the Oracle GoldenGate functionality that is supported for DB2 for z/OS is supported by DB2Connect. In addition, ASCII character data is converted to EBCDIC automatically by DB2 Connect.
-
Although it is possible to install Oracle GoldenGate on zLinux, AIX, and Intel based Linux, the best performance is seen with a system that has the lowest network latency to the z/OS system that you use. Although it is possible to run over a wide area network, the performance suffers due to the increased network latency. Oracle recommends using a zLinux partition on the same physical hardware as the z/OS system that is running DB2 using Hipersockets or a VLAN between the partitions. Otherwise, systems connected with OSA adapters in the same machine room, would be the next best choice. Alternatively, the fastest Ethernet connection between the systems that is available would be acceptable.
Using the Remote Delivery to the DB2 z/OS using DB2Connect
-
For the intermediary system, select any platform that Oracle GoldenGate supports for the DB2 for LUW database. This is the system on which Oracle GoldenGate is installed.
-
Install and run DB2 for LUW on the selected remote system so that the Replicat process can use the supplied DB2 Connect driver.
-
Catalog the DB2 target node in the DB2 for LUW database on the remote system by using the following DB2 command:
catalog tcpip node db2_node_name remote DNS_name server DB2_port-number
-
Add the target DB2 database to the DB2 for LUW catalog on the intermediary system by using the following DB2 command:
catalog db database_name as database_alias at node db_node_name
See the IBM DB2 LUW documentation for more information about these commands.
Parent topic: Installing Oracle GoldenGate for DB2 z/OS Databases
Installing Extract Components on DB2 z/OS
Note:
The oggifi0001
schema name is configurable using the TRANLOGOPTIONS REMOTESCHEMA schemaname
parameter. The procedure names are not configurable. The external name must match the program name of the object stored in the PDSE and remember to change the WLM environment to match the name of the WLM environment setup for the Oracle GoldenGate stored procedures.
Note:
The out buffer BLOB size should be sized so that it is not smaller than the value of TRANLOGOPTIONS BUFSIZE
. You may set the size of the buffer BLOB to be equal to the TRANLOGOPTIONS BUFSIZE
value to limit memory resources used on the z/OS system. The exact value of the buffer depends heavily on the workload being processed by the Extract so heavier loads may require a larger buffer to enable Extract to be able to keep up with the application.
Parent topic: Installing Oracle GoldenGate for DB2 z/OS Databases