Home > AS/400 Tips > iSeries administrator tips > The ins and outs of journaling -- Part II
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

The ins and outs of journaling -- Part II


Ron Turull
03.16.2005
Rating: -3.96- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Managing journal receivers


[IMAGE]
[IMAGE][IMAGE]
Ron Turull [IMAGE]
[IMAGE]

In the first installment of this series on journaling, we discussed the basics of journals and journaling. We discussed how to set up journals and journal receivers, then how to start journaling a file. Once the system starts journaling a file, it starts writing journal entries to the associated journal receiver. Eventually, journal receivers fill up. What do you do then? Let's take a look.

Good news, you can change journal receivers on the fly
Going back to our notebook analogy in Part I, eventually the pages get filled up with journal entries. The same is true with journal receivers -- eventually they will get too large. (You can set a size threshold when you create a journal receiver that, when reached, will cause the system to send you a message.) When the journal notebook is full, the filled pages can be removed and new pages can be put in. When a journal receiver is full, you can detach it from the journal and attach a new journal receiver to the journal. That can be done while the file is in use and even when the file is under commitment control.

More Information


[IMAGE]

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries administrator tips
Analyze the health of your IBM i server with iScore
Researching high availability for your System i shop
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition

iSeries disaster recovery and business continuity
System i backup not advised using network NETBACKUP
Restore a full system backup from the production partition to the test partition
Comparing AS/400 data to a backup tape
High availability planning and testing for iSeries: Notes, gloats, and moats
Performing full AS/400 backups
Guide to iSeries disaster recovery planning
Quiz: iSeries backup and recovery commands
iSeries backup and recovery
iSeries/System i Blunder Hall of Shame
System i/iSeries Backup and Recovery Learning Guide
iSeries disaster recovery and business continuity Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


et -->

You use the Change Journal (CHGJRN) command to attach a new journal receiver to a journal. The currently attached receiver is automatically detached at that point. Once a journal receiver has been detached, you can save it to tape (or other backup media).

System-managed journal receivers
You can also configure a journal so that the system manages the receivers. That is, when the attached receiver becomes full, the system will create a new receiver and attach it (thus, detaching the full receiver). You can also trigger this process manually before the receiver becomes full by using the following command:

The trick to using system-managed journal receivers is to already have a journal receiver attached to the journal. You must create this receiver and manually attach it. The system then uses this receiver as the blueprint for creating new receivers. That is, when the system generates a receiver, the currently attached receiver is used to set the attributes (e.g., the threshold [size], authority, ASP, etc.) of the new receiver. So, you must prime the process by creating and attaching an initial receiver.

Dual receivers
You can think of this as "journal mirroring." Each journal can have a maximum of two attached journal receivers at any given time. When two receivers are attached, the system records identical entries to both. That gives you maximum protection if one of the receivers should get damaged. However, since the system is writing out twice as many entries, this feature requires more overhead.

To attach dual receivers, use the CHGJRN command before and simply specify two journal receiver names in the provided spots. For example:

Note: IBM removed internal support for dual receivers in V4R5. You can still attach two receivers to a journal, but the second one is ignored. I have never seen any explanation as to why IBM did this.

-----------------------------------
About the author: Ron Turull is editor of Inside Version 5. He has more than 20 years' experience programming for and managing AS/400-iSeries systems.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts