Professional Documents
Culture Documents
System i
CDC Architecture
2
Information Management Software
Audit
Database
BI Appliance
TCP/IP
Message
Queue
3
Information Management Software
• Hardware Requirements
• Disk Space: 60 megabytes
• RAM: 64 megabytes of available pooled memory (512
megabytes recommended)
• Software Requirements
• Operating System: OS/400 V6R1 or greater
• For correct product operation, you may require Program
Temporary Fixes (PTFs). Contact IBM for PTF information for
your operating system.
4
Information Management Software
• Journal Requirements
• Journalling of *BOTH images
• Sufficient privileges to read journal
5
Information Management Software
Authority Requirements
• When implementing the authority requirements for configuring and
operating CDC, there are 2 types of user profiles to take into consideration:
• CDC operational user:
• Users who run CDC replication processes
• Typically users who are logged on through the Management Console or who start replication
processes from the command line/job scheduler.
• The CDC source jobs are run under the CDC operational user profile.
• Requires authorities to the replicated source tables, journals and journal receivers.
• CDC owner/product user:
• By default, the user profile D_MIRROR that is automatically created during installation.
• CDC requires this user profile to supervise replication operations for the CDC apply
processes.
• The CDC apply processes are run under the D_MIRROR user profile, hence the need for
this profile to have update rights to the target tables.
• The password for this user profile is intentionally set to *NONE. This prevents users from
signing on interactively and also prevents the password from expiring which will stop CDC
apply processes.
6
Information Management Software
Operational user *USE Needed to create and access objects in the product
library
7
Information Management Software
8
Information Management Software
Journal authorities
User Authority Level Comments
Product user None The CDC product user does not need authorities
(D_MIRROR or to the journal. A potential exception is when you
specified user wish to control replication through the
profile) D_MIRROR user profile (group profile, adopted
authority)
Operational user *OBJOPR, These authorities are required to start journaling
*OBJMGT, as part of mapping the tables, read the journal
*OBJEXIST, entries and the start the CDC subscription
*READ,
*ADD,
*UPDATE,
*EXECUTE
9
Information Management Software
10
Information Management Software
Product user *CHANGE, Apply processes are run under this user profile,
(D_MIRROR or *OBJMGT hence the need for this profile to have update
specified user rights to the target tables. Object management
profile) authority is required to clear the target table
using CLRPFM in the event of a refresh
Operational user None By default, all apply processes are run under the
D_MIRROR user profile; no rights are needed for
the CDC operational user.
By default, all apply processes are run under the D_MIRROR user profile.
11
Information Management Software
Listener – started
with the
subsystem
12
Information Management Software
DM*DESCRIB
programs are used
as part of the
describe process.
13
Information Management Software
14
Information Management Software
15
Information Management Software
16
Information Management Software
The DMSREFRESH
program is used as
part of the refresh
process.
17
Information Management Software
18
Information Management Software
The DMSSCRAPER is
responsible for
scraping the
replication log
(journals) for changes.
19
Information Management Software
20
Information Management Software
• OS/400 journals are used for the CDC replication log on the
System i platform.
• Efficient way to capture changes to DB2/System i databases.
• The journal is a secure database log, it cannot be modified.
• All database events are logged in a sequential manner with a
unique sequence number
• Each entry has a unique code and type
• Typical Codes: R = Record, F = File
• Typical Types: PT = Put/Add, DL = Delete
• Up to 10 journals per subscription are supported.
21
Information Management Software
Journal (*JRN)
e.g.. DMCJRN
Physical File (*FILE, PF)
On-line
On-line
1. R PT Add Attached = Current
2. R DL Delete
3. R PT Add On-line = Attached, not current
4. R PT Add Saved = As above, but saved
5. ….. Damaged = Error on chain
22
Information Management Software
23
Information Management Software
24
Information Management Software
25
Information Management Software
26
Information Management Software
Monitoring
Spool Files
27
Information Management Software
Monitoring
Message Queues
28
Information Management Software
• DMVWBKMK
• With the bookmark changes made in CDC users have lost the
ability to access the bookmark(s) via the DMFT504P.
• DMVWBKMK retrieves bookmark information from the
JRN_STATUS userspace in the CDC product library.
• This command can be invoked on a Target.
29
Information Management Software
Monitoring
Messages
30
Information Management Software
Monitoring
• NOTIFICATION (Alerts & Alarms)
31
Information Management Software
Monitoring
• Progress Messages
32
Operational considerations
Operational considerations
Commands
34
Information Management Software
Operational considerations
35
Information Management Software
Operational considerations
Back-ups
• DMIRROR, which contains the installation library and the
metadata, should be periodically backed-up.
• It is critical to perform back-ups after any additions or changes
have been made.
36
Information Management Software
Tuning
System level:
• Change the CDC subsystem to utilize shared pools.
• Table level:
• Use multiple journals - by journal splitting, there are more
processes and throughput is increased.
• Look at what and how you are journaling. Are you omitting
opens and closes?
• Create multiple subscriptions, which will create multiple
processes.
37
Information Management Software
Automation on System i
• When automating on System i, one can consider:
• Available commands
38
Information Management Software
39
Information Management Software
40
Information Management Software
Operational commands
Commands Functions
RTVDMJENT Retrieve Transformation Server Journal Entry
SETTSSYNC Set Synchronization Point
VFYTSJRN Verify Journal
SETJRNPOS Set Journal Position
CHGJRNDM Change DataMirror Journal Receiver
DMVWBKMK View Bookmark Position
Operational commands
Commands Functions
STRDMTCP Start TS TCP/IP Communications
ENDDMTCP End TS TCP/IP Communications
STRDMUDP Start DataMirror UDP Listener
ENDDMUDP End DataMirror UDP Listener
DMVFYTCP COMM Verifier for TCP/IP
42
Information Management Software
44
Information Management Software
45
Information Management Software
46
Information Management Software
47
Information Management Software
0003.00 CHGJRNDM
48
Information Management Software
49
Information Management Software
50
Information Management Software
Result of DMVWBKMK
Last Committed Position
The position of the last journal or log entry to be applied to the target table that is
confirmed. Confirmed indicates either that the commitment control group where
the journal or log entry belongs has been committed, or that the journal or log
entry was processed outside commitment control.
Earliest Open Position
The position marking the beginning of the oldest commitment control transaction
that is still uncommitted or being rolled back.
Last Applied Position
The position of the last journal or log entry applied to the target table.
Apply Time
The timestamp of the last journal or log entry applied to the target table (see Last
Applied Position above).
Log Time
The timestamp in the publication journal or log of the last journal or log entry
applied to the target table
51
Information Management Software
QUESTIONS?
53