The command line interface to mkdbase serves three purposes:
mkdbase -IN mydb
database The path (absolute or relative) to the database to be built or rebuilt, or the name of an entry in the realfstab file.
Note: The directory in which the
database will be created must exist, but the subdirectory to contain the
database must not. For example, if you specify /users/daveh/databases/mydbase
,
the directory /users/daveh/databases must exist, but the subdirectory mydbase
must not.
-A numfiles Extends a partition database on a single file system by numfiles files. The additional files will be the same size as the existing ones (see -S option).
-a Expands a partition database by linking additional partitions or files that have been added to the realfstab file.
-c Specifies that the database will support case-insensitive item-ids.
Note: You can specify that the default should be case-insensitive by setting the REALCASEINSENSITIVE host environment variable.
-F size Specifies the
size in kilobytes
(1, 2, 4 or 8) of the Reality
frames used within the database (default, 1Kbyte). Filestore databases can only use 1 Kilobyte frames; if you use both the
This option also changes the default frame size by setting the FrameSize parameter in the Reality master configuration file.
Notes:
-h hashType Sets the hash type for the database. hashType must be one of the following values:
1 Use a hashing algorithm that is compatible with earlier versions of Reality (earlier than V8.1) and other MultiValue systems.
2 Use a hashing algorithm that can better handle item IDs longer than 28 characters.
The default, if the -h option is omitted, is hash type 2.
This option also sets the HashType database configuration parameter.
-I (capital i) Displays the mkdbase menu. Any other command line options used specify default values for the parameters concerned.
-i Completely remove the data from the database. Use when creating or rebuilding a partition database (without this option, only the minimum necessary initialisation is performed). Cannot be used with filestore databases.
-k Kill database daemon (UNIX) or server (Windows). This forces all users to log off, so that the database can be rebuilt.
-l (lower case L) Unlock the database on completion. The default is to leave the database locked to all users except the owner (the user who created it) and, on UNIX, the super-user.
-M mod Create
the SYSTEM file with modulo (number of groups) mod (default is 11).
Use with the
-N name Use name as database name. If this option is not used, mkdbase prompts for a name.
Note: If you specify the database name using the -N option, you can omit the database parameter. The database will be created in the current directory, in a subdirectory with the same name as the database.
-n UNIX only. Assumes the answer to any confirmation prompt is "no". This prevents any unmounted file system on the partition being overwritten.
-P filesize{xnumfiles}
Specifies a partition database on a single file
system, where
numfiles is the number of host files (default, 1) and filesize is the
size of each of these files in
frames. The total size of
the database will be filesize ´
numfiles. If numfiles is omitted, the database will
consist of a single host file.
This option is deprecated – the -S option is preferred when specifying the size of a partition database on a single file system.
-p Do not run the SYS-LOAD Proc in the new or rebuilt database. This can speed up database creation, but you should only use it if instructed by your Northgate Support representative.
-r Clears and rebuilds an existing database. This option prompts to confirm that you wish to rebuild the database. It can be used in conjunction with the -u option to change the access permissions on the rebuilt database.
Caution
The -r option destroys all data in the existing database. All files except those in the configs directory and top database directory are removed and re-initialised.
The -r option can be used to resize system files on the database. Refer to the topic Resizing System Files.
You can combine the -r and -F options to change the frame size of an existing database.
-R Windows only. Allows you to do the following:
This option does not modify the data in the database.
-S size[M||G]{ numfiles}
Specifies a partition database on a single file system, where size is the
total size in Megabytes (M) or Gigabytes (G) and
numfiles is the number of host files used. If
numfiles is omitted, the database will be divided between ten
host files.
Notes:
-s size Stripe size, in frames, for partition database. The default, if the -s option is omitted, is 16. To turn striping off, set size to 0. Does not apply to a partition database on a single file system (the host filing system/storage hardware performs any striping required).
Caution
Do not use striping on both Reality and the host.
-U UNIX only. Creates a filestore database.
-u User (owner) only access.
-v Verbose mode.
-y Use with the -r option to suppress the confirmation prompt.