程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> DB2數據庫 >> DB2教程 >> DB2在linux下如何安裝?

DB2在linux下如何安裝?

編輯:DB2教程

DB2 Version 7.1 for Linux HOWTO
3. Preparing your distribution for DB2
3.1. Caldera OpenLinux 2.4
3.1.1. Before installing DB2 on Caldera OpenLinux
This section contains instructions that you must follow before installing DB2.

Preparing for the installation of DB2

Install the pdksh-5.2.14-1.i386.rpm package from the Caldera OpenLinux CD-ROM in the /Packages/RPMS/ directory. For example, log in as root, mount the CD-ROM, and enter the following command to install the pdksh package: bash# rpm -ivh /mnt/cdrom/Packages/RPMS/pdksh-5.2.14-1.i386.rpm

Remove the jdk package, (JDK 1.2.2 from Sun), since it will conflict with the IBM Developer Kit for Java that you will install in the next step. To remove Sun's JDK, issue the following command as root: 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
)

3.1.2. Installing DB2 and creating instances on Caldera
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.

3.1.2.1. What does /etc/login.defs not Accessible, using defaults mean?
3.1.2.2. Okay, DB2 is installed and I created the instances. Now what do I do?

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved