Platform environment: Redhat Linux 9 (installed PDKSH), DB2 for Linux V8.11. Automatic installation Reference: Quick Start Linux App 2003: Install DB2 V8.1 Run ./dbsetup The following error: (suspicious DB2 for Linux V8 Not supported by Redhat Linux 9 graphical installation, reference: db2 for Linux / MNT / TMP / RHCE / DB2 / DB2 / Linux / Install / DB2JINST: LINE 130: 2948 Paragraph Mrror $ JAVA_PATH / $ JAVA_INTERPRETER $ JAVA_OPTIONS -CP $ JAVA_CLASSPATH $ db2setuprun "$ @" 2> /tmp/db2setup.err.running2. Manual Installation Reference: Another way to install DB2 V8.1 on UNIX platform is as follows: 1 Perform the installation: Run ./db2_install 2 create a user ID: groupadd db2grp1groupadd db2fgrp1groupadd dasadm1useradd -g db2grp1 -m -d / home / db2inst1 -p "" db2inst1useradd -g db2fgrp1 -m -d / home / db2fenc1 -p "" db2fenc1useradd -g dasadm1 -m -d / home / DASUSR1 -P "" DASUSR1 Note: All the above three user passwords are empty, when switching to the corresponding user with the su command, 3 Create an instance: First, we use the following command to create a management server instance: / OPT / IBM / DB2 / V8.1 / Instance / DasCRT -U DASUSR1 then creates a database instance db2inst1: /opt/ibm/db2/v8.1/instance/Db2icrt -u db2fenc1 db2inst1 with some optional parameters. In particular, the -a option allows us to specify a authentication mechanism different from the default "server".
4 Create a shared library link: /opt/ibm/db2/v8.1/cfg/db2ln 5 Setting DB2 instance environment variable: Switch to DB2 instance User Terminal: Su DB2Inst1db2set db2autostart = yes (setting DB2 automatically boot with Linux ) DB2SET DB2COMM = TCPIP (Setup DB2 Support TCPIP Protocol to Client Access) 6 Set the service port to enter the DB2 command, enter the DB2 command line mode Update Database Manager Configuration Using SVCENAME Server1 | 50000 Server1 | 50000 Elect 1, Server1 | name 50,000 port numbers get database manager configuration⑦ create a connection to the database create database dbname⑧ client enter the following command to DB2 CATALOG TCPIP NODE mynode REMOTE hostname SERVER 50000DB2 CATALOG dATABASE dbname aS dbname aT NODE mynode add ODBC source to test the command line mode connection