SuSE Linux: Version 6.1 Beta/Evaluation CD
This article refers to an older version of SuSE Linux.
Therefore some of the informations given in this article may
be outdated or the article may contain stale links.
ibmdb2
)
from the SuSE Linux 6.1 Evaluation CD.
DB2 does not start, however. The invocation of the start script
root:~# rcdb2 start # or equivalently: root:~# /sbin/init.d/db2 startproduces nothing but an error message
:-(
This bug will be fixed, of course, in SuSE Linux 6.1.
root
:
--------8<-------- Start below ----------8<---------- #!/bin/bash # # Create and initialize a sample DB2 instance # (the needed accounts are already present) # # First, provide the $HOME/.profile files in case of need # for user in db2fenc1 db2inst1 db2as ; do passwdline=$( /usr/bin/grep "^$user" /etc/passwd ) group=$(echo "$passwdline" | cut -d: -f4) home=$(echo "$passwdline" | cut -d: -f6) if [ ! -e "$home"/.profile ] ; then /bin/cp -a /etc/skel/.profile "$home" /bin/chown "${user}"."${group}" "$home"/.profile fi done /bin/cp -a /etc/inittab /etc/inittab.predb2 # # Note: the following command creates /etc/rc.db2 and modifies # /etc/inittab. This is not needed in SuSE Linux: we provide # /sbin/init.d/db2 instead. # /usr/IBMdb2/V5.0/instance/db2icrt -a SERVER -u db2fenc1 db2inst1 /usr/IBMdb2/V5.0/install/db2iexec db2inst1 \ ". sqllib/db2profile; \ db2 update dbm cfg using svcename db2cdb2inst1; \ db2set -i db2inst1 db2comm=tcpip; \ db2 terminate" # Create the DB2 Administration server # /usr/IBMdb2/V5.0/instance/dasicrt db2as # Restoring the original /etc/inittab -- DB2 can be started # by means of /sbin/init.d/db2 # if [ -f /etc/inittab.predb2 ] ; then /bin/rm -f /etc/rc.db2 /bin/mv -f /etc/inittab.predb2 /etc/inittab fi # --------8<---------- The End -------------8<------