Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
root
readonly
and executable
.
Now you can start the installation program from CD. Use the following mount command :
mount -t iso9660 -o exec,ro /dev/cdrom /cdromIs is also possible to execute
mount /cdrom
as a normal user, if the user
option
and the other options mentioned above are specified in /etc/fstab
for the CD-Rom. Please note,
that activating the user
option automatically sets the CD-Rom to noexec
. It is
therefore necessary to explicitly use the -o exec
option.
In addition you should create a new user for the database. E.g., you might want to create a user adabas
with group database
. It is of course possible to choose arbitrary names.
If the database gets started by the user root
, the kernel aborts with the following message :
09.11-10:52:15 675 -11987 ABEND: Server should not run as superuserThe name of the user must later be specified in the installation program. You should also modify the
.profile
of that user :
export DBROOT=/opt/adabas export PATH=$DBROOT/bin:$PATHThe user can then call the Adabas utilities without an absolute path. The variable
DBROOT
must contain the
Adabas installation directory. If the export
commands are entered into the /etc/profile
,
then they are valid for all users.
It is also a good idea to recompile the kernel. It is necessary to increase the variable SHMMAX
in
/usr/src/linux/include/asm/shmparam.h
. Search for a line that starts with #define SHMMAX
.
The value that is specified there corresponds to hexadecimal 16 MB. Adabas D uses a huge shared memory segment
even for small databases. In most cases it is enough to set this variable to 0x2000000
. With this
setting the system has a segment of 32 MB at its disposal. If the segment is too small, the database kernel
will abort with the following error message :
09.05 14:19:33 2482 -11070 creating shared section size 18956288 09.05 14:19:33 2482 -11987 sql41_create_shm: shmget error, Invalid argument 09.05 14:19:33 2482 -11987 ABEND: cannot create kernel shared sectionIf all conditions mentioned above are fulfilled, you can start the installation. You should login as the database user (here
adabas
) and start the installation with /cdrom/install &
.
If you do the installation under X, it is necessary to allow other users the access to your X server
using the command xhost +
, before you change the user with su
.
A window appears, in which you can set the installation options. First choose the packages that should be installed in the upper part of the window. It is recommended to install the first two topics as well as the documentation. The first package contains the database programs, the second a preconfigured sample database. The sample database is well suited to obtain experiences with the Adabas D handling. Then execute the steps 1-5 further below one after the other.
If you don't install under X, the following commands must be executed manually :
/cdrom/install.lnx x_installWhen you've succesfully finished these steps, you can begin to "play" with the sample database MYDB. If you haven't installed the sample database, then a new database can be created using
xcontrol
.
xcontrol
upon startup asks you for the user name and the name of the database. Please enter a
name for the control user here (the control user starts and terminates the database but cannot access the
database directly) and the name of the database that should be created.
The following pages allow you to specify further details about the database. First you specify further settings for the users. The control user (see above) administers the database kernel. He starts and stops the database. The SysDBA administers the database itself, i.e. he can create users and tables. The tables of the data dictionaries belong to the domain user.
Attention : It is necessary to enter the passwords twice for verification purposes.
The following pages specify the internal parameters of the database. You can make changes to the size of the database here. Please take care to change the following settings :
/dev/syscon
. Change this setting to /dev/null
or
/dev/console
.
There are only three possible states that the database can be in :
offline | The database kernel isn't currently started. |
cold | The database kernel has been started, however the database doesn't accept user requests. |
warm | The database kernel has been started and accepts user requests. |
If the database has the status warm, then it is possibe to access the database using the programs delivered with the system. This short introduction shall only give you an overview about the functionality of the individual programs. A detailed description can be found in the online documentation delivered with the system.
panel | This program makes available a frontend written in TK under X. It can be used to put the database into different states. |
tkquery | A query tool for X with TK frontend. |
xcontrol | Administration tool for the console. |
xeasy | A query tool for endusers without any knowledge of SQL. Works according to the Query-by-Example principle. |
xload | A tool for the loading and unloading of database patterns and data |
xquery | See tkquery . Query tool for the console. |
If any problems should arise please read the other articles concerning Adabas D in our support database.
Further information can also be found in the ADABAS D on Linux - HowTo
by Christian Krone.
Keywords: ADABAS
Feedback welcome: Send Mail to slr@suse.de (Please give the following subject: SDB-adabas_d_howto
)
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch