REGCP$HELP.HLB  —  CREATE  DATABASE
    Creates the basic OpenVMS Registry database files in the location
    specified by the SYS$REGISTRY logical. The command creates an
    empty database and loads the predefined keys.

    If you enter this command and the database files already exist,
    the utility does not overwrite the existing files. The system
    displays a warning that the files already exist. If you want to
    create a new OpenVMS Registry database, you must first delete
    all previous versions of the database files. If you delete the
    OpenVMS Registry database files, you will lose all keys, subkeys,
    and values stored in the OpenVMS Registry.

    This command requires the SYSPRV privilege.

    The following table lists and describes the OpenVMS Registry
    database files.

    File                         Description

    REGISTRY$ROOT.DAT            Root of the database
    REGISTRY$USERS.REG           HKEY_USERS tree
    REGISTRY$LOCAL_MACHINE.REG   HKEY_LOCAL_MACHINE tree
    REGISTRY$MASTER.RLG          The master commit log file
    REGISTRY$REPLY.RLG           Log file that tracks modification
                                 requests to the OpenVMS Registry
                                 database
    Format:

      CREATE DATABASE

1  –  Qualifiers

1.1    /WAIT

    /WAIT=seconds (default = 90)
    /NOWAIT

    Specifies the maximum amount of time, in seconds, that you are
    willing to wait for command completion.  If the Registry server
    does not complete the request in the specified interval, REG$CP
    returns REG-F-NORESPONSE. The default interval is 90 seconds.
    /NOWAIT is equivalent to specifying /WAIT=0, but there may still
    be a short wait period.

1.2    /VERSION

    /VERSION=version-number (default = 2)

    Specifies how to format the database.
    Specify a version number of 1 to create a non-indexed database.
    Specify a version number of 2 to create an indexed database.

                                   NOTE

        OpenVMS Registry servers running on OpenVMS V7.3-1 or later
        support both version 1 and version 2 databases.  OpenVMS
        Registry servers prior to OpenVMS V7.3-1 support version 1
        databases only.

2  –  Examples

        REG> CREATE DATABASE

      By default, this command regenerates the basic OpenVMS Registry
      database files using version 2 format (indexed database).

        REG> CREATE DATABASE/VERSION=1

      This command causes the basic OpenVMS Registry database files
      to be regenerated using version 1 format (non-indexed database).
Close Help