SuSE Linux: Versions 6.1 to 7.0
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.
IBM DB/2: Version V6.1
db2inst1: ibmdb2 db2as: ibmdb2 db2fenc1: ibmdb2- change access rights for directories from:
/usr/lib/db2: drwxr-xr-x 2 root root 1024 Dec 21 14:07 db2inst1/ drwxr-xr-x 2 root root 1024 Dec 21 14:07 db2fenc1/ drwxr-xr-x 2 root root 1024 Dec 21 14:07 db2as/to
/usr/lib/db2: drwxr-xr-x 2 db2inst1 db2iadm1 1024 Dec 21 14:07 db2inst1/ drwxr-xr-x 2 db2fenc1 db2fadm1 1024 Dec 21 14:07 db2fenc1/ drwxr-xr-x 2 db2as db2asgrp 1024 Dec 21 14:07 db2as/ chown db2inst1:db2iadm1 db2inst1 chown db2fenc1:db2fadm1 db2fenc1 chown db2as:db2asgrp db2as- insert .profile in home directories for users db2inst1 / db2as
---- snip . $HOME/sqllib/db2profile # The following three lines have been added by UDB DB2. if [ -f sqllib/db2profile ]; then . sqllib/db2profile fi ---- snip
# Entries for IBM DB2 Database # db2cdb2inst1 50000/tcp # Connection port for DB2 instance db2inst1 db2idb2inst1 50001/tcp # Interrupt port for DB2 instance db2inst1They will be inserted by db2setup with that numbers. If present (thus not
# Entries for IBM DB2 Database # db2as 523/tcp # administrativ instance
mount -o exec /cdrom
rpm -Uhv /cdrom/db2/install/dummyrpm/glibc-2.0.7-0.i386.rpm rpm -Uhv /cdrom/db2/install/dummyrpm/libstdc++-2.8.0-0.i386.rpm
scp /lib/libpthread.so.0 root@nestel:/root logon nestel as root cd /root mv /lib/libpthread.so.0 /lib/libpthread.so.orig cp libpthread.so.0 /lib/libpthread.so.suse6.2 ldconfig check link : ls -la /lib/libpthread.so.0 , does it point to the right lib ? -> lrwxrwxrwx 1 root root 23 Feb 18 10:30 libpthread.so.0 -> libpthread.so.suse6.2
[ Customize... ] Optional: [*] Java Support [*] Control Center [*] DB2 Sample Applications [*] Create Links for DB2 Libraries -> ok
[ Customize... ] DB2 Product Library (HTML): [*] de_DE Control Center Help (HTML): [*] de_DE
- +--- Warning -------------------------------------+ | | | (X) This is your last chance to stop. | | | | Select OK to start, or Cancel to abort. | | | | [ OK ] [ Cancel ] | +-------------------------------------------------+
#db2cdb2inst1 50000/tcp # Connection port for DB2 instance db2inst1 #db2idb2inst1 50001/tcp # Interrupt port for DB2 instance db2inst1
nestel:~ # rm /tmp/db2setup* -rw-r--r-- 1 root root 10745 Dec 21 16:48 /tmp/db2setup.log -rw-r--r-- 1 root root 619885 Dec 21 16:54 /tmp/db2setup.trc
rm -vrf /var/db2/
# end of /etc/inittab db:234:once:/etc/rc.db2 > /dev/console 2>&1 # Autostart DB2 Services
> ps auxw | grep db2 db2as 8351 0.0 17.5 40656 11044 p1 S < 16:32 0:00 db2sysc db2as 8353 0.0 17.6 40656 11104 p1 S < 16:32 0:00 db2ipccm db2as 8355 0.0 17.6 40656 11136 p1 S < 16:32 0:00 db2tcpcm db2as 8356 0.0 17.7 40656 11148 p1 S < 16:32 0:00 db2tcpdm root 8350 0.0 17.4 40652 10964 p1 S < 16:32 0:00 db2wdog root 8352 0.0 17.4 40652 10976 p1 S < 16:32 0:00 db2gdskill -9 8351 8353 ...
------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000000 0 wwwrun 600 46084 6 dest 0x7403b020 257 db2as 767 524288 7 0x6103b020 258 db2as 701 3555328 7 ------ Semaphore Arrays -------- key semid owner perms nsems status 0x7403b020 256 db2as 767 1 0x00000000 257 db2as 761 1 0x7303b020 258 db2as 767 1 0x00000000 259 db2as 761 1 0x5a03b020 260 db2as 666 1 0x00000000 261 db2as 761 1 0x00000000 262 db2as 761 1 ------ Message Queues -------- key msqid owner perms used-bytes messages 0x00000000 3203 db2as 701 0 0 0x00000000 3204 db2as 701 0 0 0x7103b020 3205 db2as 763 0 0 0x7203b020 3206 db2as 763 0 0 0x7703b020 3207 db2as 765 0 0
------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000000 0 wwwrun 600 46084 6 dest ------ Semaphore Arrays -------- key semid owner perms nsems status ------ Message Queues -------- key msqid owner perms used-bytes messages
+------------------------------- DB2 Installer --------------------------------+ | | | +--- Warning ------------------------------------------------------------+ | | | | | | | DBI1767W DB2 registry may contain corrupted information. | | | | | | | | Explanation: The registry may contain invalid instance | | | | information. This is probably due to the fact that an instance or | | | | the Administration Server is not deleted properly before removing | | | | the DB2 product. If you are re-installing the product and want to | | | | keep the existing instance information in the registry, press | | | | Cancel. Otherwise, press OK to re-create the registry. Do you | | | | want to re-create the registry? | | | | | | | | User Response: | | | | | | | | o Press OK to re-create the registry, or | | | | | | | | o Press Cancel to keep the current registry information. | | | | | | | | [ OK ] [ Cancel ] | | | +------------------------------------------------------------------------+ | +------------------------------------------------------------------------------+- choose OK to re-create the registry