![]() | Caution |
---|---|
A global directory stores database attributes and mapping rules. Processes use mapping rules to determine which database file contains a global variable node. MUPIP CREATE uses database attributes to create new database file(s). Once MUPIP CREATE applies the database attributes to create a database file, GT.M does not use the attributes until the next MUPIP CREATE. If you use MUPIP SET (or DSE) to change the attributes of a database file, always perform an equivalent change to any global directory used for a subsequent MUPIP CREATE. Conversely, if you change attributes with GDE, existing database files must be explicitly changed with MUPIP SET or DSE. |
To change the Global Directory used by processes, specify a new value for gtmgbldir.
$ export gtmgbldir=/home/jdoe/node1/prod.gld
To retain the default Global Directory, exit GDE without making any changes.
To retain the default Global Directory, quit GDE without making any changes.
$ gtmgbldir=/usr/accntg/jones/mumps.gld $ export gtmgbldir $ $gtm_dist/mumps -dir GTM>do ^GDE %GDE-I-GDUSEDEFS, Using defaults for Global Directory /usr/accntg/jones/mumps.gld GDE> EXIT %GDE-I-VERIFY, Verification OK %GDE-I-GDCREATE, Creating Global Directory file /usr/accntg/jones/mumps.gld
A complete mapping has the following four components:
NAME(s) --> REGION --> SEGMENT --> FILE
* --> DEFAULT --> DEFAULT --> mumps.dat (NAME) (REGION) (SEGMENT) (FILE)
A Global Directory looks like this:
*** TEMPLATES *** Std Inst Def Rec Key Null Null Freeze Qdb Epoch LOCK Auto Region Coll Size Size Subs Coll Jnl on Err Rndwn Taper AutoDB Stats Crit Del --------------------------------------------------------------------------------------------------------------------------- <default> 0 256 64 NEVER N N N N Y N Y Sep N Segment Active Acc Typ Block Alloc Exten Options ------------------------------------------------------------------------------ <default> * BG DYN 4096 100 100 GLOB =1024 LOCK = 40 RES = 0 ENCR = OFF MSLT =1024 DALL = YES AIO = OFF FBWR = 0 <default> MM DYN 4096 100 100 DEFER LOCK = 40 MSLT =1024 DALL = YES FBWR = 0 *** NAMES *** Global Region ------------------------------------------------------------------------------ * DEFAULT *** REGIONS *** Std Inst Dynamic Def Rec Key Null Null Freeze Qdb Epoch LOCK Auto Region Segment Coll Size Size Subs Coll Jnl on Err Rndwn Taper AutoDB Stats Crit Del ------------------------------------------------------------------------------------------------------------------------------------------------ DEFAULT DEFAULT 0 256 64 NEVER N N N N Y N Y Sep N *** SEGMENTS *** Segment File (def ext: .dat)Acc Typ Block Alloc Exten Options ---------------------------------------------------------------------------------------------- DEFAULT mumps.dat BG DYN 4096 100 100 GLOB=1024 LOCK= 40 RES = 0 ENCR= OFF MSLT=1024 DALL= YES AIO = OFF FBWR= 0 *** MAP *** - - - - - - - - - - Names - - - - - - - - - - From Up to Region / Segment / File(def ext: .dat) -------------------------------------------------------------------------------------------------------------------------- % ... REG = DEFAULT SEG = DEFAULT FILE = mumps.dat LOCAL LOCKS REG = DEFAULT SEG = DEFAULT FILE = mumps.dat
There are five primary sections in a Global Directory:
The function of each section in the Global Directory is described as follows:
*** JOURNALING INFORMATION *** Region Jnl File (def ext: .mjl) Before Buff Alloc Exten AutoSwitch ------------------------------------------------------------------------------------------ DEFAULT $gtmdir/$gtmver/g/gtm.mjl Y 2308 2048 2048 8386560
For more information about journaling, see the section on the JOURNAL qualifier in this chapter and ChapterA 6: a??GT.M Journalinga??.