s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
3. Preparing your distribution for DB23.1. Caldera OpenLinux 2.43.1.1. Before installing DB2 on Caldera OpenLinuxThis section contains instructions that you must follow before installing DB2. Preparing for the installation of DB2
3.1.2. Installing DB2 and creating instances on CalderaFollow 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.
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.3. After installing DB2 on CalderaThis section contains instructions that you must follow after installing DB2. 3.1.3.1. Adding instance user IDs to their groupsThe most important step is to manually add the instance user ID to the corresponding instance group you defined during the instance creation step. DB2 and Caldera OpenLinux don't get this part of the DB2 instance creation process right, so you have to do it yourself. You can add an instance user ID to an instance group in two ways:
3.1.3.2. Changing the default home page in NetscapeThe DB2 Control Center and the DB2 Information Center use the Netscape browser to display help and documentation. This works for the first document you display in the browser, but if you try to switch to a different DB2 document (for example, from one book to another), you may instead be redirected to the default home page set by the Caldera OpenLinux installation process. I found that this problem went away as soon as I changed the default home page in the menu, menu item.3.1.3.3. Removing the Caldera login greetingAdd a file called .hushlogin to the home directory of each of your instance user IDs. This should prevent the Welcome to your OpenLinux system! messages while running DB2 commands. 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.2The DB2 server and command line DB2 client works on Linux-Mandrake 7.2, and I was able to successfully start and use the DB2 Control Center with IBM JDK 1.1.8 (build 20000713). 3.2.1. Before installing DB2 on Linux-MandrakePreparing for the installation of DB2
3.2.2. Installing DB2 and creating instances on Linux-MandrakeWhen you run db2setup, you may receive the following error: ksh: /etc/profile.d/tmdir.sh[9]: source: not found This is only a warning message and you can continue installing DB2. If the message interferes with the db2setup menu, press CTRL-L to clear the screen. Otherwise, follow the instructions in Section 4, the generic section on installing DB2 and creating instances. 3.2.3. After installing DB2 on Linux-MandrakeWith Linux-Mandrake 7.2, there are no special steps to take after installing DB2 Version 7.1. The DB2 server and command line client work out of the box, and the DB2 Control Center worked with IBM JDK 1.1.8 (build 20000713). 3.3. Red Hat Linux 6.23.3.1. Before installing DB2 on Red HatPreparing for the installation of DB2
3.3.2. Installing DB2 and creating instances on Red HatFollow the instructions in Section 4, the generic section on installing DB2 and creating instances. 3.3.3. After installing DB2 on Red HatWith Red Hat 6.2, you don't need to take any special steps after installing DB2 Version 7.1. It works. 3.4. Red Hat Linux 7.13.4.1. Before installing DB2 on Red HatPreparing for the installation of DB2
3.4.2. Installing DB2 and creating instances on Red HatFollow the instructions in Section 4, the generic section on installing DB2 and creating instances. 3.4.3. After installing DB2 on Red HatRed Hat 7.1 enabled the floating point stack feature of the glibc library. Unfortunately, this causes Java programs using IBM JDK 1.1.8, including the DB2 Control Center, to fail miserably. Fortunately, you can disable the floating point stack by setting the LD_ASSUME_KERNEL environment variable to 2.2.5 before running the DB2 Control Center as follows:
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 Linux3.5.1. Before installing DB2 on SuSEAt some point in its past, SuSE included an old beta version of DB2 in their distribution. When you install SuSE Linux, up to and including version 7.0, the SuSE installer still creates the default DB2 user IDs and sets their home directories in /usr/lib. This can cause some difficulties when you set up the DB2 instances. Before installing DB2, remove the default DB2 user IDs by issuing the following commands as root:
3.5.2. Installing DB2 and creating instances on SuSEFollow the instructions in Section 4, the generic section on installing DB2. 3.5.3. After installing DB2 on SuSEWith SuSE 6.2 or above, I have not needed to take any special steps after installing DB2 Version 7.1. It just works—and that's nice. 3.6. TurboLinux 6.03.6.1. Before installing DB2 on TurboLinuxTurboLinux 6.0 includes all of the required packages at or above the minimum required levels for DB2 Version 7.1. 3.6.2. Installing DB2 on TurboLinuxFollow the instructions in Section 4, the generic section on installing DB2. 3.6.3. After installing DB2 on TurboLinuxWhen you run the DB2 Control Center with TurboLinux 6.0, the console window may display a number of map failed messages. These messages do not indicate a serious problem, so do not worry about them. |