Daylight databases are configurable in several ways. Configuration options are stored as fields in the header file for the database (the .THOR file). The header file can be edited directly, as it is a simple text file. However, the approved and more reliable method is to use a Thor-manager client (sthorman, thorchange, etc.).
sthorman
or thorchange
.
Try changing the datatypes database of a regular database.
This may make the database dysfunctional since database will
no longer be defined. Change it back to correct the situation.
% thorchange -help
% thorchange -DATATYPES_DATABASE foobar medchem99demo
% thordbping medchem99demo (Shouldn't work.)
% thorchange -DATATYPES_DATABASE medchem99demo_datatypes medchem99demo
% thordbping medchem99demo (Should work.)
% thorchange medchem99demo
Enter server access password for norte:thor:jj >>
Enter EXECUTIVE password for database:
thorchange: Database opened.
Changing passwords: [Return] means no change
"" means remove existing password
Enter READ password for database:
Confirm READ password for database:
Enter WRITE password for database:
Confirm WRITE password for database:
Enter EXECUTIVE password for database:
Confirm EXECUTIVE password for database:
thorchange: Done.
% thordbping medchem99demo (Test passwords.)
thorchange -SETACCESS READONLY <DB>
and verify its state by attempting to open writeable with
xvthor. Then revert to WRITEABLE
.
% thordbinfo medchem99demo (Note read-only status.)
% thorchange -SETACCESS READONLY medchem99demo
% thordbinfo medchem99demo (Note read-only status.)
% xvthor (Attempt to open-writeable.)
% thorchange -SETACCESS WRITEABLE medchem99demo
thorchange -CACHE_WHEN ALWAYS -CACHE_LEVEL WRITETHRU<DB>
. Inspect the .THOR header file to see how this is stored.
Return the database to its original state with another command.
% thordbinfo medchem99demo (Note caching status.)
% thorchange -CACHE_WHEN ALWAYS -CACHE_LEVEL WRITETHRU medchem99demo
% thordbinfo medchem99demo (Note caching status.)
% thorchange -CACHE_WHEN OK medchem99demo
% thordbinfo medchem99demo (Note caching status.)