| 操作系统 办公 实用知识 设计 开发 WEB开发 移动开发 数据库 软件工程 网管 安全 管理 信息化 答疑 渠道 |
DB2在linux下如何安装?DB2 Version 7.1 for Linux HOWTO 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 ] && (
Replace it with the following section to reflect the default locations for the IBM Developer Kit for Java: [ -z "$JAVA_HOME" ]&& [ -d /usr/jdk118 ] && (
3.1.2. Installing DB2 and creating instances on Caldera 3.1.2.1. What does /etc/login.defs not accessible, using defaults mean? It means something went slightly wrong, but it''s okay. You may get this message splashed across your installation screen one or more times during the DB2 installation process, but other than not looking pretty, DB2 still installs correctly. Caldera apparently doesn''t include a /etc/login.defs configuration file. The file controls the default options for the useradd command for adding new users, including policies like how many days before the new user''s password expires and whether a home directory should be created for a new user. For more information on the /etc/login.defs file, refer to the man page for useradd. 3.1.2.2. Okay, DB2 is installed and I created the instances. Now what do I do? Now that you''ve installed DB2, you have to perform some steps to configure your instances correctly. Keep reading. 3.1.3. After installing DB2 on Caldera 3.1.3.1. Adding instance user IDs to their groups
Use the COAS utility to manage your groups by selecting KDE menu, Settings, COAS, System, Accounts, then selecting the Groups submenu and the Manage Groups menu item.
3.1.3.3. Removing the Caldera login greeting DB2 generates these messages on Caldera because the DB2 commands run under the root user ID, which in turn becomes the instance owner to invoke commands. Part of this su process calls one or both of /etc/config.d/shells/csh.login and /etc/config.d/shells/profile, which in turn call the /etc/config.d/shells/OL-greeting script that contains the offensive string. Instead of adding .hushlogin to every user''s home directory, you could probably edit /etc/config.d/shells/OL-greeting to remove the message (or change it to something else, if you want). I haven''t tried it myself, so let me know what works best. 3.2. Linux-Mandrake 7.2 3.2.1. Before installing DB2 on Linux-Mandrake Install the pdksh-5.2.14-8mdk.i586.rpm package from the Linux-Mandrake CD-ROM in the /Mandrake/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/Mandrake/RPMS/pdksh-5.2.14-8mdk.i586.rpm
3.2.2. Installing DB2 and creating instances on Linux-Mandrake Otherwise, follow the instructions in Section 4, the generic section on installing DB2 and creating instances. 3.2.3. After installing DB2 on Linux-Mandrake 3.3. Red Hat Linux 6.2 Install the pdksh-5.2.14-2.i386.rpm package from the Red Hat CD-ROM in the /RedHat/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/RedHat/RPMS/pdksh-5.2.14-2.i386.rpm
3.3.2. Installing DB2 and creating instances on Red Hat 3.3.3. After installing DB2 on Red Hat 3.4. Red Hat Linux 7.1 Install the pdksh-5.2.14-12.i386.rpm package from Red Hat CD-ROM (2) in the /RedHat/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/RedHat/RPMS/pdksh-5.2.14-12.i386.rpm
For a compatible version of the libstdc++ library, install the compat-egcs-c++-6.2-1.1.2.14.i386.rpm package from Red Hat CD-ROM (2) in the /RedHat/RPMS/ directory. For example, log in as root, mount the CD-ROM, and enter the following command to install the compat-egcs-c++ package: bash# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-egcs-c++-6.2-1.1.2.14.i386.rpm
Install the compat-libs-6.2-3.i386.rpm package from Red Hat CD-ROM (2) in the /RedHat/RPMS/ directory. For example, log in as root, mount the CD-ROM, and enter the following command to install the compat-libs package: bash# rpm -ivh /mnt/cdrom/RedHat/RPMS/compat-libs-6.2-3.i386.rpm
The db2setup command looks for a file called /usr/lib/libncurses.so.4 and will not proceed unless it exists, so create a symbolic link from the ncurses4.0 library in /usr/i386-glibc21-linux/lib/ to your /usr/lib/ directory. bash# ln -sf /usr/i386-glibc21-linux/lib/libncurses.so.4.0 /usr/lib/libncurses.so.4
The default setting for the msgmni kernel parameter only allows a couple of simultaneous connections to DB2. To set this value at at boot time, append the following lines to /etc/sysctl.conf: # Sets maximum number of message queues to 128
3.4.2. Installing DB2 and creating instances on Red Hat 3.4.3. After installing DB2 on Red Hat
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. 3.5. SuSE Linux
3.5.2. Installing DB2 and creating instances on SuSE 3.5.3. After installing DB2 on SuSE 3.6. TurboLinux 6.0 3.6.2. Installing DB2 on TurboLinux 3.6.3. After installing DB2 on TurboLinux
DB2 安装盘上有个DB2Setup程序,它会指导您完成一切。。。
今日推荐
|
重点推荐
领军企业技术文库
+更多领军技术文库
最新专题
电子杂志订阅
| ||||||||