GT.M Administration and Operations Guide

Legal Notice

October 26, 2010


Table of Contents

About This Manual
Intended Audience
Purpose of the Manual
How to Use This Manual
Overview
Conventions Used in This Manual
1. About GT.M
Hardware/Operating System Environment
Installation
Startup and Shutdown
Security
Program Development Environment
Database Subsystem
GT.M Utility Programs
GDE
MUPIP
LKE
Database Structure Editor
Database Integrity
Interprocess Communication
2. Installing GT.M
Installation Procedures
Running the VMSINSTAL Utility
Unload the Distribution Media
Adding GTMSTOP to SHUTDOWN
Installing GT.M From Electronic Distribution
3. Planning for GT.M
Adjusting System Parameters
Setting Page File Size
Invoking AUTOGEN
Enabling Virtual Terminal Operation
GT.M and OpenVMS Security
UIC Protection
ACLs
Protection Requirements for GT.M
Setting Up User Accounts
Setting Privileges
Ensuring Adequate Disk Storage
Planning Directories
GT.M Files Provided
Disk Shadowing and Striping
Ensuring a Correct VMS Version
Your GT.M License
Installation
Installed Images
Logical Names and Symbols
Installing HP (formerly Compaq) Run-time Libraries
Startup
Shutdown
Running GT.M
4. Global Directory Editor
Global Directory
GDE Overview
Identifying the Current Global Directory
Creating a Default Global Directory
Mapping Global Variables in a Global Directory
Examining the Default Global Directory
Customizing a Global Directory
Using GDE
Guidelines for Mapping
Global Directory Editor Commands
Command Syntax
@
Add
Change
Delete
Exit
Help
LOCks
LOG
Quit
Rename
SEtgd
SHow
SPawn
Template
Verify
Name, Region, and Segment Qualifiers
Name Qualifiers
Region Qualifiers
Segment Qualifiers
GDE Command Summary
GDE Command Qualifier Summary
5. MUPIP
Operating In MUPIP
Use of Global Directories
MUPIP Commands and Qualifiers
Backup
COnvert
CReate
EXit
EXTEnd
EXTRact
Freeze
Help
INTEG
Journal
Load
REOrg
REPlicate
REstore
RUndown
Set
Stop
MUPIP Command Summary
6. GT.M Journaling
Deciding Whether to Use Journaling
Types of Issues Addressed with Journaling
Advantages of Journaling
Disadvantages of Journaling
Additional Considerations
Setting Up for Journaling
Fencing Transactions
Journal File Operations
Processing Journal Files
Recovering Damaged Database Files
Processing After a Recovery
GT.M Language Extensions for Journaling
ZTSTART and ZTCOMMIT
VIEW Keywords
$VIEW() Keywords
MUPIP Set
SET Object Identifying Qualifiers
SET Action Qualifiers
SET /JOURNAL Options
SET /JOURNAL Examples
SET /REPLICATION options
MUPIP SET & Standalone Acess to Database
MUPIP BACKUP Qualifiers
MUPIP JOURNAL
Journal File Selection Argument
Journal Action Qualifiers
Journal Direction Qualifiers
Journal Time Qualifiers
Journal Sequence Number Qualifiers
Journal Control Qualifiers
Journal Selection Qualifiers
Journal Qualifier Rules & Compatibilities
Journal Extract Formats
7. Database Replication
Theory of Operation
GT.M Processes
Journal Pool
Source Server
Receiver Server
Server Shutdown
The Update Process
Application Instance
Filters
Statistics
Failover and Database Synchronization
Implementing Replication and Recovery
Application Architecture
System Requirements
Failover
Network Link between Systems
Database Repair
Procedures
Commands and Qualifiers
Controlling Replication
8. M Lock Utility
Operating in LKE
Functions of the M Lock Utility (LKE)
Invoking and Exiting LKE
LOCKs and Global Directories
Establishing a Global Directory
LKE Commands and Qualifiers
Clear
Exit
Help
SHow
SPawn
LKE Command Summary
9. GT.M Database Structure(GDS)
Database File Organization with GDS
Database File Header
File Header Data Elements
MLOCK Space
Local Bitmaps
Master Bitmap
Database Structure
Tree Organization
GDS Blocks
GDS Records
GDS Keys
Compression Count
Use of Keys
Characteristics of Keys
Global Variable Names
String Subscripts
Numeric Subscripts
10. Database Structure Editor
Operating in DSE
DSE Commands and Qualifiers
DSE Command Syntax
ADD
ALL
Buffer_flush
CHange
CLose
CRitical
Dump
EValuate
EXit
Find
Help
Integrit
Maps
OPen
OVerwrite
Page
RAnge
REMove
REStore
SAve
SHift
Wcinit
DSE Command Summary
11. Maintaining Database Integrity
Verifying Database Integrity
Regularly Scheduled Verification
Before or After Major Transfers
Immediately after Catastrophic Events
Immediately after Run-Time Database Errors
Immediately After Database Repairs
Approaches to Database Recovery
Recover from Journals
Restore from Backup
Repair with DSE
Preventive Maintenance
Repairing the Database with DSE
Using the Proper Database File
Locating Structures with DSE
Safety in Repairs
Discarding Data
Concurrent Repairs
Terminating Processes
Finding and Fixing Database Errors
C1–Possible Cache Control Problems
H1–Process Hangs
Handling a Hung Process
H2–OpenVMS Status
H3–Database Access Problems
H4–Database Cache Problems
H5–Critical Section Problems
H6–OpenVMS Problems
H7–Disk Hardware Problems
H8–Application Problems
I1–MUPIP INTEG Errors
I2–GT.M Version Mismatch
I3–File Header Errors
I4–File Size Errors
I5–More Database Access Problems
I6–Transient Errors
I7–Database Rundown Problem
I8–Repair-Induced Problems
K1–Bad Key
K2–Keys Misplaced
K3–Block Doubly Allocated
K4–Pointer Problems
K5–Star Key Problems
K6–Compression Count Error
K7–Key Warning
M1–Bitmap Errors
M2–Bitmap Header Problems
O1–Bad Block
O2–Record Errors
O3–Data Block Errors
O4–Salvage of Data Blocks with Lost Indices
P1–Process Damage
Q1–Restricting Database Access
R1–GT.M Run-Time Errors
R2–Structural Database Integrity Errors
R3–Run-time Database Cache Problems
R4–Stopped Processes
R5–No More Room in the File
R6–GTMASSERT and GTMCHECK Errors
R7–Interlocked Queue Hardware Problems
R8–Database Tree Maximum Level Exceeded
R9–Read-only Process Blocked
Glossary
Index

List of Figures

7.1. GT.M Recovery Architecture
7.2. Logical Dual-Site Application Architecture
7.3. Complex Dual-Site Failure

List of Tables

9.1. Compression Count Example
9.2. Escape Code Translation in Keys