|
||
SecureMyi.com Security and Systems Management Newsletter for the IBM i
July 10, 2013 - Vol 3, Issue 32
|
||
|
||
|
Feature Article
|
|
In This Issue
Quick Links
Our Newsletter Sponsors
Platinum Sponsor |
IBM i Security ResourcesIBM i Security Videos from SecureMyi.com SecureMyi Newsletter Home and Archives Search Security Site for IBM i and i5/OS IBM i Security Reference - IBM i 6.1 IBM i Security Reference - IBM i 7.1 QAUDJRN Audit Types By AUDLVL 6.1 QAUDJRN Entry Type Record Layout 6.1 RedBook - Security Guide for IBM i 6.1 Open Security Foundation - DataLoss DB PCI SSC Data Security Standards |
|
IBM i Security Calendar of Events
July Events
Live Hands-On - QAUDJRN Auditing and Forensic Analysis Workshop for IBM i
Live Hands-On - IBM i Security and Vulnerability Assessment Workshop for IBM i Get your FTP Server into Compliance
Live Hands-On - Expanded Security Workshop for IBM i An Introduction to PCI Compliance on IBM Power Systems August Events
Live Hands-On - Expanded Control Language Programming Workshop September Events
Live Hands-On - IBM i System Administration and Control Workshop
COMMON 2013 Fall Conference and Expo |
|
|
|
||
Security Shorts
By Dan Riehl - SecureMyi.com A while back, I was confronted with a task in which I needed to change the journaling characteristics of a physical file. The file was being journaled with *AFTER images only, and I needed to change the journaling option to capture *BOTH the before and after images of database record changes. I suspected I would need to end journaling of the file and then start journaling (STRJRNPF) with the *BOTH (before and after images) option. I didn't know all the ramifications that the stop and start would have, but I knew that I wanted to avoid it if possible. I was unaware of any way to do this. So I needed to check whether there was a way to change the journaling characteristics without ending the journaling of the file on a live system. I used the CL command GO CMDJRN to review commands that relate to journaling, and I found the Change Journaled Object (CHGJRNOBJ) command. I prompted the command (F4) and pressed F1 to review the command help text. It turns out that the command was exactly what I was looking for. The CHGJRNOBJ command was introduced by IBM back in OS/400 V5R3. Here's a snippet from the command online help text from IBM. The Change Journaled Object (CHGJRNOBJ) command changes the journaling attributes of a journaled object without the need to end and restart journaling for the object. The command can be used to change the Images (IMAGES) value for a database file (*FILE) or a data area (*DTAARA) object without the need to end and restart journaling for the object. The command can be used to change the Omit journal entry (OMTJRNE) value for a database file (*FILE), an integrated file system stream file (*STMF) or directory (*DIR) object without the need to end and restart journaling for the object. Only one journaling attribute can be changed at a time. Because I needed to change the IMAGES attribute from *AFTER to *BOTH, I used the command: CHGJRNOBJ OBJ((MYLIB/MYFILE *FILE)) ATR(*IMAGES) IMAGES(*BOTH)Then, in order to omit the Open and Close journal entries I used the command: CHGJRNOBJ OBJ((MYLIB/MYFILE *FILE)) ATR(*OMTJRNE) OMTJRNE(*OPNCLOSYN)As the help text says, you can change only one attribute per execution of the command--thus the need to run the command twice, once for each attribute to be changed. |
Sponsored Links
IBM i, iSeries and AS/400
|
|
|
||
|
||
Send your IBM i Security and Systems Management News and Events! Send your Questions, Comments, Tips and Stories Copyright 2013 - SecureMyi.com, all rights reserved SecureMyi.com | St Louis MO 63017 |