Add Mykola's Mandrake Linux 8.1 information.

This commit is contained in:
dbs 2002-09-22 21:12:57 +00:00
parent a1b92dfb2c
commit b366cc73b6
1 changed files with 130 additions and 11 deletions

View File

@ -12,6 +12,14 @@
<author><firstname>Dan</firstname><surname>Scott</surname></author>
<authorinitials>dbs</authorinitials>
<revhistory>
<revision>
<revnumber>1.2.6</revnumber>
<date>2002-09-21</date>
<authorinitials>dbs</authorinitials>
<revremark>Add Mandrake 8.1, SuSE 7.3 install instructions from
contributor Mykola Buryak.
</revremark>
</revision>
<revision>
<revnumber>1.2.5</revnumber>
<date>2002-07-16</date>
@ -80,8 +88,8 @@
This HOWTO gives you explicit instructions on installing
DB2 Universal Database Version 7.1 for Linux
on the following Intel x86-based distributions: Caldera OpenLinux 2.4,
Debian, Linux-Mandrake 7.2, Red Hat Linux 6.2, Red Hat Linux 7.1,
SuSE Linux 6.2, 6.3, and 7.0, and TurboLinux 6.0.
Debian, Mandrake Linux 7.2 and 8.1, Red Hat Linux 6.2 and 7.1,
SuSE Linux 6.2, 6.3, 7.0, and 7.3, and TurboLinux 6.0.
After installing DB2, you can work with a
sample database, connect to your DB2 server from a remote machine, and
administer DB2 using the DB2 Control Center.
@ -287,6 +295,12 @@ Claus Fischer for solving a DB2 on Debian problem with updating
instances and contributing cataloging instructions for DB2 on AS/400.
</para>
</listitem>
<listitem>
<para>
Mykola Buryak <email>m.b.@gmx.co.uk</email> for contributing the sections on Mandrake Linux 8.1
and SuSE 7.3.
</para>
</listitem>
</itemizedlist>
</para>
@ -620,7 +634,7 @@ and must be replaced or supplemented with a compatible library
<entry><literal>3.0.3</literal></entry>
</row>
<row>
<entry>Linux-Mandrake 7.2</entry>
<entry>Mandrake Linux 7.2</entry>
<entry><literal>2.1.3</literal></entry>
<entry><literal>2.2.17</literal></entry>
<entry><literal>okay (4, 4.2, 5, &amp; 5.1)</literal></entry>
@ -628,6 +642,15 @@ and must be replaced or supplemented with a compatible library
<entry><literal>5.2.14</literal></entry>
<entry><literal>3.0.5</literal></entry>
</row>
<row>
<entry>Mandrake Linux 8.1</entry>
<entry><literal>2.2.4</literal></entry>
<entry><literal>2.4.8</literal></entry>
<entry><literal>5.2</literal></entry>
<entry><literal>2.10</literal></entry>
<entry><literal>5.2.14</literal></entry>
<entry><literal>4.0.3</literal></entry>
</row>
<row>
<entry>Red Hat 6.2</entry>
<entry><literal>2.1.2</literal></entry>
@ -909,21 +932,21 @@ I haven't tried it myself, so let me know what works best.
<sect2>
<title><productname>Linux-Mandrake</productname> <productnumber>7.2</productnumber></title>
<title><productname>Mandrake Linux</productname> <productnumber>7.2</productnumber></title>
<para>
The DB2 server and command line DB2 client works on Linux-Mandrake 7.2, and I
The DB2 server and command line DB2 client works on Mandrake Linux 7.2, and I
was able to successfully start and use the DB2 Control Center with
IBM JDK 1.1.8 (build 20000713).
</para>
<sect3>
<title>Before installing DB2 on Linux-Mandrake</title>
<title>Before installing DB2 on Mandrake Linux</title>
<procedure><title>Preparing for the installation of DB2</title>
<step>
<para>
Install the <filename>pdksh-5.2.14-8mdk.i586.rpm</filename>
package from the <productname>Linux-Mandrake</productname> CD-ROM in the
package from the <productname>Mandrake Linux</productname> CD-ROM in the
<filename class="directory">/Mandrake/RPMS/</filename> directory. For
example, log in as root, mount the CD-ROM, and enter the following command to
install the <literal>pdksh</literal> package:
@ -935,7 +958,7 @@ install the <literal>pdksh</literal> package:
</sect3>
<sect3>
<title>Installing DB2 and creating instances on Linux-Mandrake</title>
<title>Installing DB2 and creating instances on Mandrake Linux</title>
<para>
When you run <command>db2setup</command>, you may receive the following error:
<computeroutput>
@ -953,10 +976,10 @@ the generic section on installing DB2 and creating instances.
</sect3>
<sect3>
<title>After installing DB2 on Linux-Mandrake</title>
<title>After installing DB2 on Mandrake Linux</title>
<para>
With <productname>Linux-Mandrake</productname> <productnumber>7.2</productnumber>,
With <productname>Mandrake Linux</productname> <productnumber>7.2</productnumber>,
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).
@ -967,6 +990,102 @@ worked with IBM JDK 1.1.8 (build 20000713).
<sect2>
<title><productname>Mandrake Linux</productname> <productnumber>8.1</productnumber></title>
<sect3>
<title>Before installing DB2 on Mandrake Linux</title>
<procedure><title>Preparing for the installation of DB2</title>
<step>
Install the <filename>pdksh-5.2.14-12mdk.i586.rpm</filename> package from the <productname>Mandrake Linux</productname>
CD-ROM #2 in the <filename class="directory">/Mandrake/RPMS2/</filename> directory. For example, log in as root, mount the CD-ROM, and enter the following command to install the <literal>pdksh</literal> package:
<programlisting>bash# rpm ivh /mnt/cdrom/Mandrake/RPMS2/pdksh-5.2.14-12mdk.i586.rpm</programlisting>
</step>
<step>
The Linux 2.4 kernel changes the default values of some ipc limits. However, the default value for the <literal>msgmni</literal> is 16, which causes difficulties running DB2 with the default 2.4 kernel ipc parameters. Fortunately, the 2.4 kernel also enables you to change a number of these parameters through the <filename class="directory">/proc</filename> filesystem. With the 2.4 kernel, you do not have to recompile your kernel to experiment with different parameter values.
To set the <literal>msgmni</literal> kernel parameter at boot time, append the following lines to <filename>/etc/sysctl.conf</filename>:
<programlisting>
# Sets maximum number of message queues to 128
# Set this to 1024 or higher on production systems
kernel.msgmni = 128
</programlisting>
</step>
<step>
Uninstall the default <productname>Mandrake Linux</productname> 8.1 Kaffe Virtual Machine with Package Manager or Software Manager.
Install the <productname>IBM Developer Kit for Java</productname> by issuing the following command as root:
<programlisting>bash# rpm -ivh IBMJava118-SDK-1.1.8-5.0-i386.rpm</programlisting>
</step>
<step>
To set up the Java environment for all or specific users in Mandrake Linux 8.1, copy the content of <filename class="directory">/usr/jdk118/bin</filename> to <filename class="directory">/usr/bin</filename> and <filename class="directory">/usr/jdk118/lib</filename> to <filename class="directory">/usr/lib</filename>. After that you can successfully issue the <programlisting>java -fullversion</programlisting> command.
</step>
<step id="ml81secure">
To install DB2 Warehouse Control Database, you must change the permissions for the <filename class="directory">/home</filename> directory to read, write and execute (for users, groups, others) as a user with root authority:
<programlisting>
bash# chmod ugo=rwx /home
</programlisting>
If you do not change the permissions for the <filename class="directory">/home</filename> directory, you may recieve the following error:
<computeroutput>
SQL0970N The system attempted to write to a read-only file. SQLSTATE=55009.
</computeroutput>
</step>
</procedure>
</sect3>
<sect3>
<title>Installing DB2 and creating instances on Mandrake Linux</title>
<para>
When you run <command>db2setup</command>, the DB2 Product Messages and DB2 Product Library menus can interfere with the db2setup main menu.
If this happens, press <literal>CTRL-L</literal> to clear the screen.
</para>
</sect3>
<sect3>
<title>Removing DB2 on Mandrake Linux</title>
<para>You must perform the following steps as a user with root authority.</para>
<procedure>
<title>Removing DB2 on Mandrake Linux 8.1</title>
<step>
List all Db2 instances:
<programlisting>
bash# /usr/IBMdb2/V7.1/instance/db2ilist
</programlisting>
</step>
<step>
Drop each instance listed in the previous step with the following command:
<programlisting>
bash# /usr/IBMdb2/V7.1/instance/db2idrop &lt;instanse-name&gt;
</programlisting>
</step>
<step>
Drop the DB2 administration server:
<programlisting>
bash# /usr/IBMdb2/V7.1/instance/dasidrop `/usr/IBMdb2/V7.1/instance/dasilist`
</programlisting>
</step>
<step>
Uninstall all of the DB2 packages on your system using the <command>db2deinstall</command> command on your DB2 CD-ROM:
<programlisting>
bash# /mnt/cdrom/db72pf5u/db2_deinstall -n
</programlisting>
</step>
<step>
To remove all users (db2inst1..db2instN, db2fenc, db2as) created by DB2 issue the following commands:
<programlisting>
bash# userdel -r db2inst1
bash# ..
bash# userdel -r db2instN
bash# userdel -r db2fenc1
bash# ..
bash# userdel -r db2fenc2
bash# userdel -r db2as
</programlisting>
</step>
</procedure>
</sect3>
</sect2>
<sect2>
<title><productname>Red Hat Linux</productname> <productnumber>6.2</productnumber></title>
<sect3>
@ -3205,7 +3324,7 @@ default value is not acceptable and must be increased
<entry><literal>128</literal></entry>
</row>
<row>
<entry>Linux-Mandrake 7.2</entry>
<entry>Mandrake Linux 7.2</entry>
<entry><literal>10</literal></entry>
<entry>512</entry>
<entry><literal>4090</literal></entry>