Creating a database means creating the empty files which are in the format required by the Daylight database servers. These files must then be loaded with data to be useful. When creating a database, the following must be specified: (1) a datatypes database, (2) primary hash table size, (3) cross-reference hash table size. Also, the path of the database directory must be known. This is normally referenced by $DY_THORDB.
sthorman
and select the databases
menu. Create a "regular" database and specify a
handy datatypes database (e.g., medchem98demo_datatypes).
% sthorman
Version: sthorman 4.62
....................................................
. STHORMAN -- Serial THOR Manager Program. .
. .
. Enter "?" for help at any prompt. .
. The menu selection "." goes to top-level menu. .
....................................................
STHORMAN needs to be connected to a server.
Enter machine the server is running on: ("norte")
Enter port (service) of server: ("thor")
Enter username: ("jj")
Enter server username's password:
Connected to new server.
Current service: norte:thor
SERVER MENU (TOP LEVEL MENU):
1) Connect to a new server
2) List server's version
3) List current users
4) Change server security...
5) Databases...
6) Send message to users...
7) Evict user...
0) Quit
Enter menu selection (or '?'): 5
DATABASE MENU:
1) List known databases
2) Change database search-path...
3) Get database information...
4) Create a database...
5) Load a database
6) Dump a database
7) Crunch a database
8) Change a database's configuration...
9) Destroy a database
10) Send message to users of a database...
11) Evict users of a database...
0) Go back to server menu
Enter menu selection (or '?'): 4
DATABASE CREATION MENU:
1) Create a datatypes database
2) Create a indirect-reference database
3) Create a monomer-table database
4) Create a regular database
0) Go back to database menu
Enter menu selection (or '?'): 4
Enter name of regular database to create: $DY_THORDB/test
Existing datatypes databases:
1)
thordbping
command and verifying that
no error is reported.
% thordbping test
thormake
requires that all parameters
are specified on the command line. Here is an example:
thormake \
'$DY_THORDB/test' 100 400 \
-DATATYPES_DATABASE 'test_datatypes'
thordbping
command.
thordestroy
is a client program which
instructs the server to delete all files associated with
the specified database.
thordestroy '$DY_THORDB/test'
thordbping
command. Also examine the database
directory for files.