Install DB2 8.2 In Linux3.0

Source: Internet
Author: User
Tags db2 installation

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

(

Related Article

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.