×

Generating the Vsystem Database

To create a Vsystem database, you will first use the Vsystem vgen command to convert the ASCII database file (with extension .adb) to an intermediate database file (with extension .idb). Then, you will use the db_map utility to map the generated intermediate file into memory for later access.

Generating the Intermediate Database File

To convert an ASCII database file to an intermediate database file
  • At the system prompt, enter:
vgen furnace.adb furnace.idb
If your command is successful, this message appears:
Output file = furnace.idb
 
[Processed 9 channels]
[Successful completion]

Mapping the Intermediate Database File

Once you have generated the intermediate database file, use the Db_map utility to map this file into memory.
To map the intermediate database file
  • At the system prompt, enter:
db_map furnace.idb tutor
Here, tutor is the database name that precedes a channel name in a channel specification, such as tutor::room_1_temp. The mapped database tutor resides in the Vsystem hostname db subdirectory. For example, if the hostname of your machine is Computer1, you will find the mapped database tutor in the Vsystem computer1 db subdirectory.
Note For any application that refers to a channel in a database, precede the channel name (for example, room_1_temp) with the database name (for example, tutor), followed by two colons (::), as shown in the paragraph above.
  WIN    In Windows, the mapped database tutor resides in the %vsys_root%\hostname\db directory . For example, if the hostname of your machine is Computer1, you will find the mapped database tutor in the %vsys_root%\computer1\db directory.
 LINUX   In Linux, the mapped database tutor resides in the /vsys/hostname/db directory.
  VMS    In VMS, the mapped database tutor resides in the vsys_root:[hostname.db] directory.