8 Using Remote Journal
You must have an understanding of how to setup and use remote journaling on an DB2 for i system to use this feature with Oracle GoldenGate. There are no special software requirements for either Oracle GoldenGate or the DB2 for i systems to use remote journaling.
Topics:
Parent topic: Using Oracle GoldenGate for DB2 for i
Preparing to Use Remote Journals
Before establishing the remote journal environment, complete the following steps:
Parent topic: Using Remote Journal
Adding a Remote Journal
Adding a remote journal creates a remote journal on a target system or independent disk pool and associates that remote journal with the journal on the source system. This occurs if this is the first time the remote journal is being established for a journal. The journal on the source system can be either a local or remote journal.
If a remote journal environment has previously been established, adding a remote journal reassociates the remote journal on the target system with the journal on the source system.
You can establish and associate a remote journal on a target system with a journal on the source system by one of the following methods:
-
System i Navigator.
-
Add the Remote Journal (
QjoAddRemoteJournal
) API on the source system. -
Add the Remote Journal (
ADDRMTJRN
) command on the source system.
Parent topic: Using Remote Journal
What Happens During Add Remote Journal Processing?
The processing that takes place as part of adding a remote journal includes the following:
-
A check is performed on the target system to verify that the user profile adding the remote journal exists. A user profile with the same name as the user profile which is adding a remote journal must exist on the target system. If the profile does not exist on the target system, then an exception is signaled, and the processing ends.
-
A check is performed to verify that the target system has a library by the same name as the library for the journal on the source system. If the library does not exist on the target system, then an exception is signaled, and the processing ends.
-
A check is performed on the target system to determine if a journal by the same qualified name as the journal on the source system already exists. If a journal already exists, it can be used for the remainder of the add remote journal processing if it meets the following criteria:
-
It is a remote journal.
-
It was previously associated with this same source journal or part of the same remote journal network.
-
The type of the remote journal matches the specified remote journal type.
-
-
If a journal was found, but does not meet the preceding criteria, then an exception is signaled, and the processing ends. Otherwise, the remote journal is used for the rest of the add remote journal processing.
-
If no journal is found on the specified target system, then a remote journal is created on the target system. The new remote journal has the same configuration, authority, and audit characteristics of the source journal. The journal that is created has a journal type of
*REMOTE
.
When adding the remote journal, you must specify the type of remote journal to add. The remote journal type influences the library redirection rules and other operational characteristics for the journal.
Parent topic: Adding a Remote Journal
Guidelines For Adding a Remote Journal
You should observe the following guidelines for adding a remote journal:
-
You can only associate a remote journal with a single source journal.
Note: The same remote journal can then have additional remote journals that are associated with it that are located on other target systems. This is the cascade configuration that is shown in Network configurations for remote journals.
-
The remote journal will only have its attached receiver populated with journal entries that are replicated from the corresponding journal receiver on the source system. No journal entries can be directly deposited to a remote journal.
-
A maximum of 255 remote journals can be associated with a single journal on a source system. This can be any combination of asynchronously maintained or synchronously maintained remote journals.
To Add a Remote Journal
The following is an example using the physical file QGPL/TESTPF setup to have remote journaling enabled to a second system.
Parent topic: Adding a Remote Journal