Next: Loading the Database Up: Building the Database Previous: Building the Database

Building the Database Files and Structure

Now that the server is running and ready to receive updates type the command:
/3_06_05/scripts/snodb.perl -build_official
This builds the database files. When run, the sncreate program creates the database files listed in the sncreate.dat file. The program sndirs creates internal structure as requested by /3_06_05/dbs_tools_f/sndirs.dat in each of these files. snalia is then run to create HEPDB aliases as requested in sndirs.dat.

The script will wait until sndirs is finished running before running snalia. It does this to allow the server to process all the directory changes before it tries to process all the aliases for those directories. Otherwise, snalia would report errors. The script also waits for the updates generated by snalia to be processed before proceeding. Finally, the script checks the log files from the sndirs and snalia operations for errors and reports any it finds. If you wish, you may run these programs independently by typing:
/3_06_05/scripts/snodb.perl -sncreate
/3_06_05/scripts/snodb.perl -sndirs
/3_06_05/scripts/snodb.perl -snalia
(but you are definitely better off running -build_official). To be sure that the server is finished creating the directories, check that the $CDSERV/todo directory is empty before running snalia.

Note that sncreate can be run without the server running.


cdsno@higgs.hep.upenn.edu
Mon Aug 10 17:56:28 EDT 1998