This section contains instructions that you must follow before installing DB2.
Preparing for the installation of DB2
bash# rpm -ivh /mnt/cdrom/Packages/RPMS/pdksh-5.2.14-1.i386.rpm |
bash# rpm -e jdk |
Install the IBM Developer Kit for Java. A brief set of installation directions is included in Section 11.
Edit the JAVA_HOME and PATH entries in /etc/config.d/shells/bashrc to remove the references to the JDK from Sun and update them to reflect the IBM Developer Kit for Java. The section that I changed started as:
[ -z "$JAVA_HOME" ]&& [ -d /usr/java ] && ( export JAVA_HOME=/usr/java [ -r $JAVA_HOME/lib/classes.zip ] && export CLASSPATH=$JAVA_HOME/lib/classes.zip ) |
Replace it with the following section to reflect the default locations for the IBM Developer Kit for Java:
[ -z "$JAVA_HOME" ]&& [ -d /usr/jdk118 ] && ( export JAVA_HOME=/usr/jdk118 export PATH=$PATH:$JAVA_HOME/bin [ -r $JAVA_HOME/lib/classes.zip ] && export CLASSPATH=$JAVA_HOME/lib/classes.zip ) |
Follow the instructions in Section 4 the generic section on installing DB2, and go ahead and create the instances. It's probably a good idea at this point to read through Section 3.1.3 to keep in mind the steps that you need to take after installing DB2.
This section contains instructions that you must follow after installing DB2.
Preparing for the installation of DB2
bash# rpm -ivh /mnt/cdrom/Mandrake/RPMS/pdksh-5.2.14-8mdk.i586.rpm |
Otherwise, follow the instructions in Section 4, the generic section on installing DB2 and creating instances.
Preparing for the installation of DB2
bash# rpm ivh /mnt/cdrom/Mandrake/RPMS2/pdksh-5.2.14-12mdk.i586.rpm |
# Sets maximum number of message queues to 128 # Set this to 1024 or higher on production systems kernel.msgmni = 128 |
bash# rpm -ivh IBMJava118-SDK-1.1.8-5.0-i386.rpm |
java -fullversion |
bash# chmod ugo=rwx /home |
You must perform the following steps as a user with root authority.
Removing DB2 on Mandrake Linux 8.1
bash# /usr/IBMdb2/V7.1/instance/db2ilist |
bash# /usr/IBMdb2/V7.1/instance/db2idrop <instanse-name> |
bash# /usr/IBMdb2/V7.1/instance/dasidrop `/usr/IBMdb2/V7.1/instance/dasilist` |
bash# /mnt/cdrom/db72pf5u/db2_deinstall -n |
bash# userdel -r db2inst1 bash# .. bash# userdel -r db2instN bash# userdel -r db2fenc1 bash# .. bash# userdel -r db2fenc2 bash# userdel -r db2as |
Preparing for the installation of DB2
bash# rpm -ivh /mnt/cdrom/RedHat/RPMS/pdksh-5.2.14-2.i386.rpm |
Follow the instructions in Section 4, the generic section on installing DB2 and creating instances.
Preparing for the installation of DB2
bash# rpm -ivh /mnt/cdrom/RedHat/RPMS/pdksh-5.2.14-12.i386.rpm |
bash# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-egcs-c++-6.2-1.1.2.14.i386.rpm |
bash# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-libs-6.2-3.i386.rpm |
bash# ln -sf /usr/i386-glibc21-linux/lib/libncurses.so.4.0 /usr/lib/libncurses.so.4 |
# Sets maximum number of message queues to 128 # Set this to 1024 or higher on production systems kernel.msgmni = 128 |
Follow the instructions in Section 4, the generic section on installing DB2 and creating instances.
bash$ export LD_ASSUME_KERNEL=2.2.5 bash$ db2set DB2ENVLIST=LD_ASSUME_KERNEL bash$ db2jstrt 6790 bash$ db2cc 6790 |
With IBM JDK 1.3 (IBMJava2-SDK-1.3-7.0-i386.rpm), the DB2 Control Center started successfully without any workarounds. For instructions on installing the IBM JDK, see Section 11.
bash# userdel -r db2as bash# userdel -r db2fenc1 bash# userdel -r db2inst1 |
Follow the instructions in Section 4, the generic section on installing DB2.
Follow the instructions in Section 4, the generic section on installing DB2.
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |