Install DB2 v8.2 under Linux3.0 and follow these steps.
1. Create User (Useradd-u 600-g db2iadm-d/db2home/db2inst1-s/usr/bin/ksh db2inst1) and group (Groupadd-g Db2iadm),
2, add the following entries in the/etc/sysctl.conf:
Kernel.msgmni = 1024
Kernel.sem = 250 256000 32 1024
Then use Sysctl–p to make the above settings effective.
3, into the installation program in the path, root users perform db2_install, do not perform the setup, the former is fully automatic installation, without interaction, simple and easy to use.
4, the rest is to create the instance and the database
To create an instance and database:
The root user enters the DB2 installation directory, should be opt/ibm/db2/v81/instance, execute the following statement
Db2icrt-u Db2inst1 Db2inst1
After using root to change the password for Db2inst1, log in using the Db2inst1 user.
Execute the following command to create the database
DB2 CREATE DATABASE dbname on DBPath using codeset GBK territory CN