Linux3.0 Installation DB2 8.2

Source: Internet
Author: User
Tags db2 db2 installation create database

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.