Document revision date: 15 July 2002 | |
Previous | Contents | Index |
The OpenVMS Registry server is installed as part of the OpenVMS system installation.
Before you can use the OpenVMS Registry, you must configure the OpenVMS Registry server. For more information about configuring the OpenVMS Registry server, see Section 13.2.
The first time you start the OpenVMS Registry server using the startup process described in Section 13.3, the OpenVMS system creates the OpenVMS Registry database.
You can access the OpenVMS Registry in several ways. Depending on how you want to access the OpenVMS Registry, you must install the following products:
You can also access the OpenVMS Registry using the OpenVMS Registry server
management utility or the OpenVMS Registry system services, which are
installed as part of the OpenVMS Registry.
13.2 Configuring the OpenVMS Registry with REG$CONFIG
The OpenVMS Registry configuration procedure (REG$CONFIG) provides information about the OpenVMS Registry server status and the OpenVMS Registry database location, and allows you to change OpenVMS Registry logical names and paths.
Enter the following command to invoke the OpenVMS Registry configuration procedure:
$ @SYS$MANAGER:REG$CONFIG |
The system displays the following menu:
--------------------------------------------------------- OpenVMS Registry Configuration Utility ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 - Configure OpenVMS Registry logical names and directory paths 2 - Display OpenVMS Registry logical names and directory paths 3 - Check the state of the OpenVMS Registry server 4 - Start the OpenVMS Registry server on this node 5 - Convert to latest database version and/or reclaim database H - Help about this utility [E] - Exit Please enter your choice : --------------------------------------------------------- |
To select an option, enter the option number. The options are as follows:
The OpenVMS Registry server is started in the cluster. The OpenVMS Registry server is started on this node. The OpenVMS Registry server is not started. |
The OpenVMS Registry server has successfully started. |
You can enter Q at any prompt to return to the OpenVMS Registry Configuration utility menu. If you quit while you are configuring logical names, the system updates only those values for which you have received a confirmation message. |
The system displays the following questions:
Is this system now a node in a cluster or will this system become part of a cluster? (Y/N/Q): |
- REG$TO_BE_STARTED - [current value of REG$TO_BE_STARTED] NOTE: Setting this logical to TRUE starts the OpenVMS Registry server automatically when the system boots. Setting this logical to FALSE prevents the OpenVMS Registry server from starting when the system boots and prevents other products from starting the OpenVMS Registry server. If the OpenVMS Registry Server is not started at boot time, but other products that require an OpenVMS Registry server are able to start the OpenVMS Registry server, you do not need to assign a value to this logical. Do you want to change this value? (Y/N/Q) [Y]: |
Enter the new value (TRUE/FALSE/NOVAL/Q): |
Action | Value |
---|---|
Start the OpenVMS Registry server on reboot. Allow other products to start the server. | TRUE |
Do not start the OpenVMS Registry server on reboot. Do not allow other products to start the server. | FALSE |
Do not start the OpenVMS Registry server on reboot. Allow other products to start the server. (Deassigns the logical name.) | NOVAL |
Quit this procedure and return to the OpenVMS Registry Configuration utility menu. | Q |
In which logical name table do you want the logical defined? (SYSTEM/SYSCLUSTER/Q) : |
Action | Value |
---|---|
Add the REG$TO_BE_STARTED logical to the LNM$SYSTEM logical name table. This table contains names that are shared by all processes in the system. | SYSTEM |
Add the REG$TO_BE_STARTED logical to the LNM$SYSCLUSTER logical name table. This table contains names that are shared by all processes in an OpenVMS Cluster. | SYSCLUSTER |
Quit this procedure and return to the OpenVMS Registry Configuration utility menu. | Q |
The logical REG$TO_BE_STARTED has been temporarily defined. Before you reboot the system you must edit your SYLOGICALS.COM to include the line: DEFINE/TABLE=table-name REG$TO_BE_STARTED value Press [Enter] to continue. |
- SYS$REGISTRY logical - current value of SYS$REGISTRY Note: When the OpenVMS Registry server is started, the system creates an OpenVMS Registry database at this location. If an OpenVMS Registry database already exists on your system, you must redefine the SYS$REGISTRY logical to point to the existing OpenVMS Registry database location. Do you wish to change this value? (Y/N/Q) [Y]: |
Enter the new value for SYS$REGISTRY ("yourvalue"/NOVAL/Q): |
Action | Value |
---|---|
Define a new or changed location for the OpenVMS Registry database. | A valid directory specification, such as DKA0: [SYS$REGISTRY]. |
Deassign the logical name. | NOVAL |
Quit this procedure and return to the OpenVMS Registry Configuration utility menu. | Q |
You have entered: value Is this correct? (Y/N/Q) [Y]: |
In which logical name table do you want the logical defined? (SYSTEM/SYSCLUSTER/Q): |
Action | Value |
---|---|
Add the SYS$REGISTRY logical to the LNM$SYSTEM logical name table. This table contains names that are shared by all processes in the system. | SYSTEM |
Add the SYS$REGISTRY logical to the LNM$SYSCLUSTER logical name table. This table contains names that are shared by all processes in an OpenVMS Cluster. | SYSCLUSTER |
Quit this procedure and return to the OpenVMS Registry Configuration utility menu. | Q |
The logical SYS$REGISTRY has been temporarily defined. Before you reboot the system you must edit your SYLOGICALS.COM file to include the line: DEFINE/TABLE=table-name SYS$REGISTRY dir-spec Press [Enter] to continue. |
- SYS$REGISTRY directory - [directory status] |
!!Caution!! When the OpenVMS Registry server starts, the system creates an OpenVMS Registry database at this location. If you already have an OpenVMS Registry database on your system, you must redefine the SYS$REGISTRY logical to point to that location. Do you wish to create the directory? (Y/N/Q) [Y]: |
The SYS$REGISTRY directory has now been created. Press [Enter] to return to the menu. |
Beginning with OpenVMS Version 7.3-1, the OpenVMS Registry supports two database formats, Version 1 and Version 2. The Version 2 database format includes an index access that improves on the access performance provided in the Version 1 database format.
The Registry server supports both database formats. To take advantage of the indexing feature, you must convert a Version 1 database to the Version 2 format.
Who Should Convert
Converting the Registry database is optional. Large databases are more likely to benefit from converting to Version 2. The more subkeys or values on a key, the more likely it is that there will be a performance improvement from using the Version 2 database. For databases where there are only one or two subkeys or values on most keys, converting to Version 2 will yield minimal performance improvement.
Who Should Not Convert
Do not convert the Registry database to Version 2 if you plan to run
Registry servers on nodes in a mixed-version cluster. Registry servers
on nodes running versions of OpenVMS prior to Version 7.3-1 cannot
access a Version 2 database. Operating in this manner is not supported.
13.2.2.1 Converting an Existing Database
To convert an existing database to Version 2, invoke REG$CONFIG and select step 5, "Convert to latest database version and/or reclaim database," and follow the instructions. Be sure to invoke REG$CONFIG on a node that normally runs the Registry server. You cannot run REG$CONFIG on a node that explicitly disables the Registry server, that is, a node on which the REG$TO_BE_STARTED logical is FALSE.
The command procedure saves a copy of the current database in a separate directory, both in binary and EXPORT command (ASCII text) format.
The procedure requires an interruption in Registry services, so execute it at a time when this will cause minimal disruption. Prior to shutting down the Registry server, you must also shut down all layered products that use the Registry: COM for OpenVMS, Advanced Server for OpenVMS, and any other third-party applications.
Be sure to shut down these applications on all nodes in the cluster.
The command procedure informs you when to shut down these services and pauses while you perform this task. You should shut down in this order:
There are several ways to determine the version of a given Registry database.
In all of the following cases, the database version is a longword (DWORD). The lower word is the major version, and the upper word is the minor version. Normally the minor version is zero. |
$ MCR REG$CP LIST VALUE HKEY_LOCAL_MACHINE\SYSTEM\REGISTRY |
Database Version"=dword:00000002" |
You can also use Step 5 in REG$CONFIG to reclaim the database, which reclaims wasted space that can occur over time as the database becomes fragmented. Follow the same instructions as for converting the database. You can repeat this procedure as often as you like.
REG$CONFIG does not allow you to reclaim a Version 1 database. However,
you can manually reclaim a Version 1 database by performing the steps
in the following section.
13.2.2.4 Manual Conversion and Reclamation
Conversion and reclamation of a database use the Registry Import/Export feature. The current Registry database is exported, a new database is created, then the original database is imported. You can perform these steps manually as follows:
$ MCR REG$CP EXPORT DATABASE/OUTPUT=(filespec) |
$ SET SERVER REGISTRY/CLUSTER/EXIT |
$ SET SERVER REGISTRY/START [/NODE=node] |
$ MCR REG$CP CREATE DATABASE |
The new database will default to a Version 2 database. To reclaim without converting to Version 2, enter the following command:
|
$ MCR REG$CP IMPORT/INPUT=(filespec-from-step-2) |
You can control how the OpenVMS Registry will start as follows:
Use the OpenVMS Registry Configuration utility described in Section 13.2
to control how the OpenVMS Registry starts.
13.3.1 Starting the OpenVMS Registry Manually
Under some conditions, you might want to start the OpenVMS Registry server manually.
Compaq recommends that you use the SYS$STARTUP:REG$STARTUP.COM command procedure. The following command procedure ensures that the server process quotas are set to the required minimum values:
$ @SYS$STARTUP:REG$STARTUP.COM |
Alternately, you can use the following command to start the OpenVMS Registry manually:
$ SET SERVER REGISTRY_SERVER/START |
The OpenVMS Registry server is shut down automatically as part of a system shutdown.
If you want to shut down the OpenVMS Registry manually, use the following command:
$ SET SERVER REGISTRY_SERVER/EXIT |
Previous | Next | Contents | Index |
privacy and legal statement | ||
6539PRO_012.HTML |