To install DB2 v8.2 in Linux3.0, follow these steps.
1. Create a user (useradd-u 600-g db2iadm-d/db2home/db2inst1-s/usr/bin/ksh db2inst1) and a group (groupadd-g 200 db2iadm ),
2. Add the following entries to/etc/sysctl. conf:
Kernel. msgmni= 1024
Kernel. sem = 250 256000 32 1024
Then use sysctl-p to make the above settings take effect.
3. Enter the path where the installer is located. The root user executes db2_install and does not execute setup. The former is a fully automatic installation without interaction and is easy to use.
4. The rest is the creation of instances and databases.
Create instances and databases:
The root user should go to the db2 installation directory, which should be opt/ibm/db2/v81/instance, and execute the following statement
Db2icrt-u db2inst1 db2inst1
Use root to change the password for db2inst1 and then use db2inst1 to log on,
Run the following command to create a database:
Db2 create database dbname on dbpath using codeset gbk territory cn
(