next up previous 200
Next: Components
Up: Control
Previous: Begin-End blocks

The Database file

The database is stored in an HDS container file named agi_$<$node$>$.sdf in the directory defined by the environment variable AGI_USER or in your home directory if AGI_USER hasn't been defined (HDS is the Hierarchical Data System described in SUN/92). The name of the node is included in the file name to prevent two or more devices which have the same name but are on different nodes causing a conflict. The contents of the file can be examined using the ADAM application TRACE. In certain circumstances the database file may become corrupted. If this is suspected it is best to delete the appropriate file and start again.

The name of the container file can be optionally changed by defining the environment variable AGI_NODE to be equivalent to some user defined string. If such a environment variable exists then the container file is constructed by replacing the default node with the new string. Thus if the environment variable AGI_NODE is defined to be `nonode' then the container file will have the name agi_nonode.sdf in the directory AGI_USER. This mechanism can be used to pick up a database created on a different node by defining the logical name to be equivalent to the required node name.


next up previous 200
Next: Components
Up: Control
Previous: Begin-End blocks

AGI --- Applications Graphics Interface Library
Starlink User Note 48
Nicholas Eaton
Brian McIlwrath
30 January 2002
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council