| United States-English |
|
|
|
![]() |
HP OpenVMS Systems Documentation |
RMS Journaling for OpenVMS ManualOrder Number: AA--JG41C--TE
July 1993
This manual describes the use of RMS Journaling for OpenVMS. Revision/Update Information: This manual supersedes the RMS Journaling for OpenVMS Manual, Version 5.5.
Operating System and Version:
OpenVMS VAX Version 6.0 or later
Software Version:
RMS Journaling for OpenVMS VAX, Version 6.0
July 1993 The information in this document is subject to change without notice and should be construed as a commitment by Digital Equipment Corporation. Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document. The software described in this document is furnished under a license and may be used or copied only in accordance with the terms of such license. No responsibility is assumed for the use or reliability of software on equipment that is not supplied by Digital Equipment Corporation or its affiliated companies. © Digital Equipment Corporation 1993. All rights reserved. The postpaid Reader's Comments forms at the end of this document request your critical evaluation to assist in preparing future documentation. The following are trademarks of Digital Equipment Corporation: AXP, Bookreader, DEC C, DEC COBOL, DECdtm, DEC Rdb, DECwindows, Digital, OpenVMS, OpenVMS RMS, VAX, VAXcluster, VAX DBMS, VAX DOCUMENT, VAX MACRO, VMS, VMScluster, the AXP logo, and the DIGITAL logo. The following is a third-party trademark: PostScript is a registered trademark of Adobe Systems Incorporated. All other trademarks and registered trademarks are the property of their respective holders.
ZK4454 This document was prepared using VAX DOCUMENT, Version V3.2n.
PrefaceIntroductionThis manual describes RMS Journaling for OpenVMS and how to use it. It also includes information about other OpenVMS components that support RMS Journaling. Who should use this manualThis manual is intended for application programmers and designers who want to use RMS Journaling in their applications and system managers who have RMS Journaling installed on their systems. How this manual is organizedThis manual has nine chapters and four appendixes:
Associated documentsUse this manual with the OpenVMS documentation set and the documentation for your programming language and application development tools. In addition:
Conventions used in this manualIn this manual, every use of OpenVMS means both the OpenVMS AXP operating system and the OpenVMS VAX operating system. The following conventions are also used in this manual:
Chapter 1
|
The ANALYZE/RMS_FILE command does not provide the journal file names for remote files. |
The following example shows the partial output for this command for a file that is marked for both after-image and before-image journaling:
$ ANALYZE/RMS_FILE [PAYROLL]WEEKLY.DAT
Check RMS File Integrity 15-JUN-1990 08:08:27.80 Page 1
FINANCE_DISK:[PAYROLL]WEEKLY.DAT;1
FILE HEADER
.
.
.
Journaling Enabled: After-Image, Before-Image
RMS FILE ATTRIBUTES
.
.
.
After-Image Journaling
Journal Name: JOURNAL_DISK:[FINANCE]PAYROLL.RMS$JOURNAL;1 (1)
Journal Creation Date: 10-JUN-1990 12:05:33.95
Journal Stream Index: 1 (2)
Before-Image Journaling
Journal Name: JOURNAL_DISK:[FINANCE]PAYROLL.RMS$JOURNAL;1 (1)
Journal Creation Date: 10-JUN-1990 12:05:33.95
Journal Stream Index: 2 (2)
The analysis uncovered NO errors.
|
This example shows that after-image journaling and before-image
journaling are using the same journal ((1)). Note that
after-image journaling and before-image journaling use different record
stream identifiers ((2)), allowing RMS Journaling to
distinguish the updates that are journaled.
2.3.2 Using the /RU_JOURNAL qualifier
The /RU_JOURNAL qualifier provides information about recovery unit journaling for the file that you analyze. If a file is unavailable because it is part of an unresolved transaction (for example, because a recovery unit journal or a data file that was included in the transaction is unavailable), you can use the ANALYZE/RMS_FILE/RU_JOURNAL command to identify the recovery unit journal and all data files involved in the transaction. This command is the only means of access to the RMS file until the transaction is resolved.
The ANALYZE/RMS_FILE/RU_JOURNAL command provides information about the status of RMS recovery units, not DECdtm transactions. However, each recovery unit is begun in the context of a transaction and remains active until that transaction is completed. |
Your process must have both CMEXEC privilege and access to the [SYSJNL]
directory (either SYSPRV [system privilege] privilege, or access for
UIC [1,4]) to use the ANALYZE/RMS_FILE/RU_JOURNAL command.
2.3.3 Example
Suppose that a system crash occurred during execution of an application that used files marked for recovery unit journaling, and that you are unable to open the file CHECKING.DAT. The following example shows the output of the ANALYZE/RMS_FILE/RU_JOURNAL command for the file CHECKING.DAT:
$ ANALYZE/RMS_FILE/RU_JOURNAL CHECKING.DAT
Check RMS File Integrity 30-MAY-1990 09:33:14.35
DISK$WORK:[ACCOUNTING]CHECKING.DAT;1
FILE HEADER
.
.
.
Journaling Enabled: Recovery Unit
RMS FILE ATTRIBUTES
.
.
.
Recovery Unit Journaling
Default RU Journal Volume: none specified
ACTIVE RMS RECOVERY UNITS (1)
Journal Spec: DISK$WORK:[SYSJNL]RMS$79400083.RMS$JOURNAL;1 (2)
Journal Creation Date: 30-MAY-1990 08:21:05.83
Transaction ID: (hex) 8144F8A0 00934716 4C74A6CA 00000000
Recovery Unit Start Time: 30-MAY-1990 09:14:03.68
Recovery Unit PID: 79400083
File(s) involved in this Recovery Unit: (3)
File Spec: DISK$WORK:[ACCOUNTING]CHECKING.DAT;1 (4)
Volume name: WORK
File ID: (974,40,0)
Creation Date: 22-MAR-1990 09:30:36.82
Status: Normal
Recovery Unit State: Started (5)
The analysis uncovered NO errors.
|
The following table explains the numbered items in the example.
2.3.4 Recovery unit states
If there are active recovery units on the file, then the active
recovery units will be in one of the following states, as indicated in
the Recovery Unit State field:
You can use the DIRECTORY/FULL command to:
$ DIRECTORY/FULL SALES.DAT
Directory DISK1:[FINANCE]
SALES.DAT;1 File ID: (332,10,0)
Size: 265/265 Owner: [335,310]
Created: 27-MAR-1990 10:15 Revised: 12-APR-1990 07:30 (9)
Expires: <None specified> Backup: 13-APR-1990 00:16
File organization: Indexed, Prolog: 3, Using 1 key
File attributes: Allocation: 6, Extend: 0, Maximum bucket size: 2,
Global buffer count: 0, No version limit
Record format: Fixed length 18 byte records
Record attributes: Carriage return carriage control
Journaling enabled: AI, BI, RU
AI journal: JOURNAL_DISK:[FINANCE]NEW_SALES.RMS$JOURNAL;1
BI journal: JOURNAL_DISK:[FINANCE]SALES.RMS$JOURNAL;1
File protection: System:RWED, Owner:RWED, Group:RE, World:
Total of 1 file, 265/265 blocks.
|
The Journaling Enabled field can include the following items:
The next two fields, AI journal and BI journal, list the respective
journals for SALES.DAT. These fields are displayed only when a file is
marked for after-image or before-image journaling.
2.4.2 Example: remote files
If you use the DIRECTORY/FULL command for a remote network file, the long-term journals are not identified, as in the following example:
$ DIRECTORY/FULL BOSTON::DISK1:[FINANCE]SALES.DAT
Directory BOSTON::DISK1:[FINANCE]
SALES.DAT;1 File ID: (332,10,0)
Size: 265/265 Owner: [335,310]
Created: 27-MAR-1990 10:15 Revised: 12-APR-1990 07:30 (9)
Expires: <None specified> Backup: 13-APR-1990 00:16
File organization: Indexed, Prolog: 3, Using 1 key
File attributes: Allocation: 6, Extend: 0, Maximum bucket size: 2,
Global buffer count: 0, No version limit
Record format: Fixed length 18 byte records
Record attributes: Carriage return carriage control
Journaling enabled: AI, BI, RU
AI journal: Not available
BI journal: Not available
File protection: System:RWED, Owner:RWED, Group:RE, World:
Total of 1 file, 265/265 blocks.
|
You can also use the DIRECTORY/FULL command to determine whether
journaling is enabled or disabled (by the Backup utility [BACKUP]) for
a particular file. Remember that when a file is backed up using BACKUP,
the backup copy of the file is marked for journaling (in the same way
that the original file is marked for journaling), but journaling is
automatically disabled.
2.4.4 Example: DIRECTORY/FULL command
For example, suppose that file DISK1:[PERSONAL]SAVINGS.DAT had been marked for after-image, before-image, and recovery unit journaling, and it was then backed up using BACKUP. The DIRECTORY/FULL output for the original file and its backed-up version might look like the following example:
$ SET FILE/AI_JOURNAL=(FILE=JOURNAL_DISK:CHECKING) SAVINGS.DAT
$ SET FILE/BI_JOURNAL/RU_JOURNAL SAVINGS.DAT
$ BACKUP/RECORD SAVINGS.DAT JOURNAL_DISK:SAVINGS.BCK
$ DIRECTORY/FULL SAVINGS.DAT
Directory DISK1:[PERSONAL]
SAVINGS.DAT;1 File ID: (675,35,0)
Size: 6/6 Owner: [200,201]
Created: 27-JAN-1990 12:54 Revised: 19-MAY-1990 14:31 (17)
Expires: <None specified> Backup: 12-MAY-1990 07:57
File organization: Indexed, Prolog: 3, Using 1 key
File attributes: Allocation: 6, Extend: 0, Maximum bucket size: 2,
Global buffer count: 0, No version limit
Record format: Fixed length 18 byte records
Record attributes: Carriage return carriage control
Journaling enabled: AI, BI, RU
AI journal: JOURNAL_DISK:[PERSONAL]CHECKING.RMS$JOURNAL;1
BI journal: DISK1:[PERSONAL]SAVINGS.RMS$JOURNAL;1
File protection: System:RWE, Owner:RWED, Group:RE, World:RE
Total of 1 file, 426/426 blocks.
$ DIRECTORY/FULL SAVINGS.BCK
Directory JOURNAL_DISK:[PERSONAL]
SAVINGS.BCK;1 File ID: (906,37,0)
Size: 6/6 Owner: [200,201]
Created: 27-JAN-1990 12:54 Revised: 12-MAY-1990 07:50 (17)
Expires: <None specified> Backup: 12-MAY-1990 07:57
File organization: Indexed, Prolog: 3, Using 1 key
File attributes: Allocation: 6, Extend: 0, Maximum bucket size: 2,
Global buffer count: 0, No version limit
Record format: Fixed length 18 byte records
Record attributes: Carriage return carriage control
Journaling enabled: AI (disabled by BACKUP), BI (disabled by BACKUP), RU
AI journal: JOURNAL_DISK:[PERSONAL]CHECKING.RMS$JOURNAL;1
BI journal: DISK1:[PERSONAL]SAVINGS.RMS$JOURNAL;1
File protection: System:RWE, Owner:RWED, Group:RE, World:RE
Total of 1 file, 424/424 blocks.
|
The output for SAVINGS.BCK indicates that the file is marked for after-image and before-image journaling, but that journaling is disabled because the file is a backup copy.
| Next | Contents | Index |
|
|||||||||||||||