| Previous Chapter: Installation |
Parameters
The set of global and local parameters is stored in an operating system dependent place. Thus, it may be the Registry for Win 32 platforms or a file for Unix and Unix-like platforms. Instead of describing a specific operating system parameter file and/or layout, we describe the meaning of each parameter. The paragraph, Operating System dependent information, toward the end of this chapter, informs the user about the parameter location and use in each operating system.
Global parameters apply to the entire Server and are usually set at installation time. Many of these parameters provide information about the location of the installed database server files.
The parameter order is not significant.
Database parameters apply to each database. They are usually set by the database manager at creation time or by the user manually if some other means of database management is used. Some of these parameters must be unique per database.
Note: The number of mapped files will affect the amount of RAM used for each database.
Operating System dependent information
As mentioned above, all parameters and files are required in all operating systems. The difference between the Win 32 based systems and the Unix systems is the place where the parameters are stored. There are also a few differences in the files and directories created.
Win 32 parameters
For Win 32 systems all parameters are placed by the installation program in the Registry. The installation procedures update the Registry as follows:
Under the key HKEY_LOCAL_MACHINE in the SOFTWARE key, a new key, named
Ovrimos is created. The \SOFTWARE\Ovrimos\SQLSERVER key contains global
parameter information.
The next two captions are taken from a computer, where the default
installation directory Ovrimos was used.
In addition to global information, the SQLSERVER key contains one more
key, DATABASES.
The \SOFTWARE\OVRIMOS\SQLSERVER\DATABASES is a tree of installed databases.
Every database created will have an entry key under the DATABASES key.
The installation program allows for automatic creation of one database,
called testbase. Thus, after installation, there is the key, \SOFTWARE\OVRIMOS\SQLSERVER\DATABASES\testbase
which contains all the database parameters.
The following caption is an example of the registry for a database called testbase, which was automatically placed in the default \Ovrimos directory.
Unix parameters
For Unix and Unix-like systems, all global parameters are written in
a file named dbman.ini, which is copied into the installation bin
directory. All global parameters described above
make the lines of this file, plus one line of the form:
DBASE=dbname=path
for each of the databases created. This line shows where the initilization
file of each database is.
The following is an example of the global parameters dbman.ini
file.
DBMANHTTPPORT=9000
DBMANHTTPTHREADS=1
DBMANPASSWD=485539
DBMCORE=/home/ovrimos/bin/dbmcore
HTTPSHAREDDIR=/home/ovrimos/bin/shared/
LICENSE= The license number
MIMETYPES=/home/ovrimos/bin/mime.typ
PLAYBACK=/home/ovrimos/bin/playback
SCHEMEINIT=/home/ovrimos/bin/shared/init.scm
SERIALNUMBER= The product serial number
SQLAPP4=/home/ovrimos/bin/sqlapp4
SQLCORE=/home/ovrimos/bin/sqlcore
VERSION=2.5
DBASE=testbase=/home/ovrimos/testbase/testbase.ini
The last entry
database=testbase=/home/ovrimos/testbase/testbase.ini shows
that the database testbase initialization file resides in directory /home/ovrimos/testbase/testbase.ini
For each of the databases created, there is a file of local parameters,
named <dbname>.ini, i.e. for a database called testbase it is
testbase.ini, while for a database called books, it is books.ini.
The global parameter file ovrimos.ini shows the path to each database
initialization file.
In turn, the database initialization file contains all the database
parameters, as described above, plus a line of the form:
global=/usr/ovrimos/bin/dbman.ini, showing that the global
parameter file resides in directory /usr/ovrimos/bin.
AGIDIR=/home/ovrimos/testbase/agi/
BACKUPDIR=/home/ovrimos/testbase/backup/
BTREENUM=200
BTREENODECACHE=2000
CHARSET=ISO-8859-1
CHIPHER=None
DIR=/home/ovrimos/testbase/
HTTPPORT=8081
HTTPROOTDIR=/home/ovrimos/testbase/docs/
HTTPSESSIONTIMEOUT=15
HTTPTHREADS=3
LOGFILE=/home/ovrimos/testbase/playback.log
LOCKWAITTIME=1000
MAPPAGEFACTOR=4
MAPPAGENUM=8
MAPFILENUM=10
TEMPDIR=/home/ovrimos/testbase/
SEMKEY=2001
SHMEMKEY=2000
SQLPORT=3000
SCHEMEHANDLERS=/home/ovrimos/testbase/handlers
GLOBAL=/home/ovrimos/bin/dbman.ini
After installation, some directories are created and several files are copied there. The installation for Win 32 proposes the path C:\Ovrimos as a root directory of the SQL Server and the databases. The user may change this path at installation time.
Unix users may choose the directory they will use as an application root and they may uncompress the product there.
Regardless of the path, the installation program will create the following directories into the product root directory:
bin: Executable files and utilities directory
libsrc: C include files and source files for making a client library (C, C++ API). A readme file describes the contents of the directory as well as the steps required to build a client library.
samples: Some sample C, Java, and Perl files to be used as examples for API and Stored procedures.
shared: All utilities and files shared by the Web server.
shared\help: The on-line manual pages.
testbase: The test database generated during installation
Some files are also placed in the application root directory:
DeIsL1.isu: Uninstall log (Only for Win 32)
readme.txt: A file with concise instructions.
dbman.create.ini: A script that must be run after installation in Unix to create the database manager and the testbase initialization files. (Only for Unix)
Contents of the bin directory
All executable files as well as a few utility files are placed in the application bin directory.
dbman: The database manager executable program.
dbmcore: The database core executable program.
sqlcore: The sqlcore executable program.
sqlapp4: A 'bare' SQL terminal executable program.
playback: The playback executable program to be run after a
database abnormal termination.
mime.typ: The mime types file, used for BLOB display.
init.scm: The initialization file for Scheme.
ovrimos.ini: Global parameter file. (Only for Unix systems)
Contents of the shared directory
This is the directory for all the database manager utility files, as well as all webspace used by the HTTP server and shared by all databases. Scheme scripts and HTML files placed there are used by the server programs and must not be altered by the users.
Among other files:
index.htm: A welcome page, used by all databases, unless a database
already has a customized one.
ovjdbc.jar: The Ovrimos JDBC driver in .jar form.
DBD-Ovrimos-0.10.tar.gz: The Perl DBD file in zipped form. (May
be unzipped by Winzip)
Contents of the samples directory
The samples directory contains scripts and files that may be used as examples of database usage.
Contents of the testbase directory
The testbase subdirectory is initially a directory devoid of data
files. Some other files, put there during installation, are used by the
HTTP Server for working examples of the use of Scheme scripts. The testbase
directory contains the subdirectories backup, docs,
and agi. Backup and agi are initially empty,
while docs contains an SQL script which may be used to fill the
database with test data to be used with the Scheme example.
The system tables, log etc. will be generated the first time a user
starts the database. The backup will also be filled as soon as the
first files are generated. The agi subdirectory is used for stored
procedures, while the docs is the directory where all private HTML
documents will be placed. If a document is not found in the docs
directory, the Web browser will search the directory declared as shared
by all databases.
| Previous Chapter: Installation |