Next: Making a Local Test
Up: SNODB User Interfaces
Previous: SNODB User Interfaces
If one wishes to add a new bank to an entirely new database file, the
first step is the creation of this file. This file is created using
the sncreate program. (If one wishes to add a new bank to an
existing database file, skip to the step marked by the asterisk
below.) Assume that the file we wish to create is called foobar.dbs
and is referred to by the two letter abbreviation fb.
- 1.
- Stop the server if it is running by issuing the command
snodb.perl -stop_server
- 2.
- Edit
/$SNODB_VER/scripts/snodb_lib/customize_hepdb_names.pl
to include a new line for the fb database file
- 3.
- Run snodb.perl -names to create a modified version of the
hepdb.names file which includes reference to foobar.dbs
- 4.
- Run snodb.perl -server to restart the server.
- 5.
- *Create a file called (say) my_sndirs.dat and enter
one line for each directory and/or bank you wish to insert.
For example, the lines might look like:
//CDFB/bnk1 bnk1 F
//CDFB/bnk2 bnk2 F
//CDFB/stuff
//CDFB/stuff/bnk3 F
where FB is the same two-character database file prefix
used above. This anticipates three banks, bnk1 and bnk2
in the top directory and bnk3 in the stuff subdirectory.
The F qualifier directs sndirs to make an fmt
subdirectory to store that bank's format information. This
format information is used to write out the bank as a titles file
in the same format it had when it was input.
- 6.
- Run
/$SNODB_VER/exes/sndirs -l my_sndirs.dat
to create the internal directory structure.
- 7.
- Once the journal files for the internal directory structure
have been processed, run
/$SNODB_VER/exes/snalia -l my_sndirs.dat
to create the aliases for the banks. These aliases are bnk1,
bnk3 and bnk3 which refer to the banks by the same name
and point to their locations within the internal directory structure of the
database file in which they are placed.
Next: Making a Local Test
Up: SNODB User Interfaces
Previous: SNODB User Interfaces
SNOMAN Account
2/14/1998