Common 2010 IMG REP/400 IMG Consulting s r.o. Michal Kudrna i5os Journals Working and Experience
Beginnings that brought us? - 2002 backups in terms LPARs V5R1M0-2006 - data replication - version 1 licence program - Own disaster recovery solution - Primary fully employ system functionality i5os - Solution fully under our SW control - Open solution - Easy solution - Integration reporting changes in user friendly format - Custom expansion users program - Moving applications to backup system - Break with original applications - One pack - clear price - independence of operating system version - Performance optimisation
Journals Type files, DTAQ, DTAARA - CRTJRNRCV/DLTJRNRCV Create/Delete Journal Receiver threshold value (min 10 MB) - CRTJRN/DLTJRN Create/Delete Journal Manage Receivers(*SYSTEM *USER) Delete Receivers(*YES *NO) Receiver size option(*rmvintent *MINFIXLEN *MAXOPT1 *MAXOPT2 *MAXOPT3) Fixed length data(*pgm *PGMLIB *SYSSEQ *RMTADR *THD *LUW *XID) - STRJRNPF/ENDJRNAP Start/End Journal Physical File - STRJRNAP/ENDJRNAP Start/End Journal Access Path - STRJRNOBJ/ENDJRNOBJ Start Journal Object *DTAARA *DTAQ - STRJRNLIB/ENDJRNLIB Start Journal Library (V6R1)
Journals Type Audit - CRTJRNRCV/DLTJRNRCV Create/Delete Journal Receiver threshold value (min 10 MB) - CRTJRN QSYS/QAUDJRN Create Journal Work With System Values - QAUDCTL Auditing control (*OBJAUD *AUDLVL *NOQTEMP) - QAUDENDACN Auditing end action (*NOTIFY *PWRDWNSYS) - QAUDFRCLVL Force auditing data (*SYS 1-100) - QAUDLVL Security auditing level (*CREATE *DELETE *OBJMGT *PGMADP *JOBDTA *SECCFG ) - QAUDLVL2 Security auditing level extension - QCRTOBJAUD Create object auditing
Journals Type IFS - STRJRN/ENDJRN Start/End Journal Objects type (*STMF *DIR *SYMLNK *DTAARA *DTAQ) Directory subtree (*ALL *NONE) New objects inherit journaling(*yes *NO) Images(*AFTER, *BOTH) Omit journal entry(*opnclosyn *NONE)
Remote Journals - WRKRDBDIRE Work with Relational Database Directory Entries - ADDRMTJRN/RMVRMTJRN Add/Remove Remote Journal Relational database Source journal/target journal Remote receiver library Remote journal type (*TYPE1 *TYPE2) Delete receivers (*YES *NO) - CHGRMTJRN Change Remote Journal Relational database Source journal/target journal Journal state (*ACTIVE *INACTIVE) Delivery (*ASYNC *SYNC) Sending task priority (1-99 *SYSDFT ) How to make inactive (*CNTRLD *IMMED )
Journals Commands - WRKJRN Work with Journals - WRKJRNA Work with Journal Attributes - DSPJRN Display Journal - DSPAUDJRNE Display Audit Journal Entries - SNDJRNE Send Journal Entry - WRKJRNRCV Work with Journal Receivers - RCVJRNE Receive Journal Entry - RTVJRNE Retrieve Journal Entry (CLP) - APYJRNCHG Apply Journaled Changes - APYJRNCHGX Apply Journaled Changes Extend - CHGJRN Change Journal - CHGJRNOBJ Change Journaled Object
Journal Codes Journal Code A B C D E F I J L M P Q R S T U Y System Accounting Entry Integrated File System Commitment Control Operation Database File Operation Data Area Operation Database File Member Operation Internal Operation Journal or Receiver Operation License Management Network Management Data Performance Tuning Entry Data Queue Operation Operation on Specific Record Distributed Mail Services Audit Trail Entry User-Generated Entry (QJOSJRNE) API Library Entry
Journals API - Service Program QJOURNAL - QjoAddRemoteJournal Add Remote Journal - QjoChangeJournalState Change Journal State - QjoRemoveRemoteJournal Remove Remote Journal - QjoRetrieveJournalInformation Retrieve Journal Information - QjoRtvJrnReceiverInformation Retrieve Journal Receiver Information - QjoRetrieveJournalEntries Retrieve Journal Entries - QjoDeletePointerHandle Delete Pointer Handle - QjoStartJournal Start Journal - QjoEndJournal End Journal - QjoReplayJournalEntry (V6R1) Replay Journal Entry Create data area E/EE Create data queue Q/QA
Retrieve Journals Entries - QjoRetrieveJournalEntries Formats : - RJNE0100 Format IMG REP/400 version 1 - RJNE0200 Format (=> V5R2) IMG REP/400 version 2 Pointers can be used only with the V4R4M0 or later versions of the following languages: - ILE COBOL - ILE RPG - ILE C if the TERASPACE Journal code R or F of tables or database files that include any fields of data type BLOB (binary large object), CLOB (character large object), or DBCLOB (double-byte character large object)
Record Operation Entry types Journal Code R Example Entry Types : - DL Record deleted in the physical file member - PT Record added to a physical file member - PX Record added directly by relative record number - UB Before-image of a record that is updated in the physical file member - UP After-image of a record that is updated in the physical file member
Record Operation - API - QUSCRTUS Create User Space - QUSDLTUS Delete User Space - QUSPTRUS Retrieve Pointer to User Space - QUSLRCD List Record Formats - QUSLMBR List Database File Members - QUSRMBRD Retrieve Member Description - QDBLDBR List Database Relations - QUSLFLD List Fields - QDBRTVFD Retrieve Database File Description FFILE UF A F32766 2000AIDISK ExtFile(QualFile) F UsrOpn ExtMbr(QualMbr)
DTAARA Operation Entry types Journal Code E Example Entry Types : - EB Update data area, before image - EA Update data area, after image - ED Data area deleted - EE Create data area (V6R1M0) - EK Change journaled object attribute - EL Data area restored - EM Data area moved - EQ Data area changes applied - ZA Change authority - ZB Change object attribute - ZO Ownership change
DTAARA Operation API - QUSLOBJ List Objects - QusMaterialize Context Materialize Context - QLIRNMO Rename Object - QUSROBJD Retrieve Object Description - QLICVTTP Convert Type - QLICOBJD Change Object Description - QGYOLOBJ Open List of Objects
DATA QUEUE Operation Entry types Journal Code Q Example Entry Types : - QA Create data queue (V6R1M0) - QC Data queue cleared, no key - QD Data queue deleted - QG Data queue attributes changed (V6R1M0) - QH Data queue changes applied - QJ Data queue cleared, has key - QK Send data queue entry, has key - QL Receive data queue entry, has key - QM Data queue moved - QN Data queue renamed - QR Receive data queue entry, no key - QS Send data queue entry, no key - QZ Data queue restored - ZA Change authority - ZB Change object attribute
DATA QUEUE Operation API - QCLRDTAQ Clear Data Queue - QRCVDTAQ Receive Data Queue - QMHQRDQD Retrieve Data Queue Description - QMHRDQM Retrieve Data Queue Message - QSNDDTAQ Send Data Queue
Replay Database Operation - QDBRPLAY API Journal Code D F D D D F D D D D D D F F F D D D D Entry Type AC CB CG CT DC DM DT FM FN GC GO GT MC MN RM RV TC TD TG Description Add Constraint Change Member Change File Create File Remove Constraint Remove Member Delete File Move File Rename File Change Constraint Change Owner Grant File Add Member Rename Member Reorganize Member Revoke File Add Trigger Remove Trigger Change Trigger
Object Operation Entry types - Audit Journal Code T Example Entry Types : - CO Create object - CA Changes to object authority - CP Create, change, restore user profiles - DO All delete operations on the system - OM Object management change - OR Object restored - ZC A change was made to object change access
IFS Operation Entry types Journal Code B Example Entry Types : - B1 Create summary - B2 Link to existing object - B3 Rename, move object - B4 Remove link (parent directory) - B5 Remove link (link) - B7 Created object authority information. - FA Integrated file system object attribute changed - FR Integrated file system object restored - OA Change object authority - OO Change object owner - RN Rename file identifier - WA Write, after-image
IFS Operation C++ function examples - QP0LLIB1 - Service Program - readdir() - Read Directory Entry - readlink() - Read Value of Symbolic Link - rewinddir()- Reset Directory Stream to Beginning - symlink() - Make Symbolic Link - unlink() - Remove Link to File - Qp0lGetPathFromFileID() -Get Path Name of Object from Its File ID - Qp0lRenameKeep() - Rename File or Directory, Keep "new" If It Exists - Qp0lRenameUnlink() - Rename File or Directory, Unlink "new" If It Existsmemset() - #pragma datamodel (p128) 128bit pointers - memcpy() - TS_malloc()
Common 2010 IMG REP/400 IMG Consulting s r.o. Michal Kudrna Product presentation IMG REP/400
Product IMG REP/400 - Hot - backup replication and save - Build on system remote journaling instruments - Free of DB2 iseries application - Change proceed on record level - Replication usage for reporting - 365x7x24 non-stop process - Backup to remote localities - Actual test environment - DB reporting of changes in databases - Replication up to 256 localities - Big monitoring OF exceptions and error handling - Object replication include change description - IFS replication include description
Scheme DB2 Data and IFS Replication Data Library Data Library Journal Journal Remote journal Application Aplication REP/400 REP/400 Directory Directory Primary system Remote Journal Remote Journal Data Library Data Library Directory Directory HOT BACKUP
Scheme Audit Object and IFS Replication Application REP/400 Primary mode Audit Journal Primary system Distribution QUEUE Data QUEUE Remote journal REPORTING DB Application REP/400 Backup mode Remote Journal HOT BACKUP
Scheme Data, Object and IFS Replication locally Audit Journal Libraries from Journal Directories from Application REP/400 Application REP/400 Libraries to Directories to
Product IMG REP/400 - Performance balance flexibility process application out from primary system - Remove read-only applications from primary system to backup system - Online backup (no user access limits on primary system) - Hold replication possibility - Fast access data in case of primary system down, Fast refresh actual data - Reporting of changes to Log database with possibility of user print based on primary system - Reporting takes CPU from backup system - Multiple instances proceed parallel - Usage REP/400 result data as base for any other applications - Object replication include change object description - IFS replication include change directory and files
Product IMG REP/400 - Terms - TOOL IMG REP/400 terms - One program instance replicates data from one or more data libraries using one journal to second data libraries - Unique keys for replicated database advantage - REP/400 generates fully keyed files, if there are no such keys possible on the system - Minimum OS/400 V5R2M0 - TCP/IP connection - Free of DB2 iseries application software - Multiple instances for more data library - Object replication work over audit journal accordance with enabled objects - IFS replication work over enabled directory and file type
Product IMG REP/400 - Service - Software installation - Maintenance new versions included - Disaster recovery, support for primary system with using backup system - Training - Transfer applications to backup system (query, print layouts ) - Possibility of build Test environment online from Production primary system usage replication data - Locality replication possibility - Local replication (copy database) - User changes, upgrades - Transfer application to 24x365 accessibility - Up to date development environment
Produkt IMG REP/400 - Licencování - Primary and backup systems (iseries processor number) - Licence accordance with maximal primary or backup system class - Possibility of multi licence - Maintenance - Disaster recovery hotline 24 hours system online after replacement primary HW - Support during application process - Base licence for two system primary and backup - Licence include data, object and IFS replication without restriction on primary and backup systems
Product IMG REP/400 Basic Menu IMG REP/400
Product IMG REP/400 Work with Instances - WRKINST IMG
Product IMG REP/400 Work with Instances - WRKINST IMG
Product IMG REP/400 Create instance CRTINST F6
Product IMG REP/400 Change instance CHGINST Option 1
Product IMG REP/400 Delete Instance DLTINST Option 4
Product IMG REP/400 Option 5 instance parameters IMG
Product IMG REP/400 WRKINST F10 object settings IMG
Product IMG REP/400 WRKINST Option 7 Display Log IMG
Product IMG REP/400 WRKINST Option U User Entry Program IMG
Product IMG REP/400 Option 1 Display File/Members Structure IMG
Product IMG REP/400 Display File/Members Option 1 IMG
Product IMG REP/400 Display Nickfield - Field Join IMG
Product IMG REP/400 Subsystem RCVRMTJRN - Jobs IMG
Product IMG REP/400 Reporting Command JRNREP IMG