A good solution for linux DB2 v9.7!

Source: Internet
Author: User

This article describes how to install linux DB2 v9.7, however, you do not know how to solve the problem correctly, so the following articles must be good teachers and friends for you.

1 installation package v9.7_linuxia32_server.tar.gz

2. Decompress tar-zxvf v9.7_linuxia32_server.tar.gz.

Run DB2setup for graph Installation

Run DB2_install in text mode

1) decompress the installation package

2) execute the installation program

3) create three users: instance users, Restricted Users, and management users.

4) create a Management Server

5) Create an instance

6) Configure TCP/IP communication for the DB2 instance

7) Update the product license key

8) change the DB2 startup mode.

1. Preparations for installing DB2

1) Create mkdir-p/setup/DB2V9.7

2) use ftp or ssh to upload the installation package to the preceding directory.

 
 
  1. #cd /setup/DB2V9.7  
  2. #wget ftp://10.32.90.248/tools/%B0%B2%D7%B0%BD%E9%D6%CA/DB2v9.7/v9.7_linuxx64_server.tar.gz 

3) decompress

 
 
  1. tar -zvxf v9.7_linuxx64_server.tar.gz 

2. Run the installer

 
 
  1. cd /setup/DB2V9.7/server  
  2. ./DB2_install 

Select "no"

3. Create a group and a user

Create Group

 
 
  1. #groupadd -g 999 DB2iadm1  
  2. groupadd -g 998 DB2fadm1  
  3. groupadd -g 997 dasadm1 

Create user

 
 
  1. #useradd -u 1004 -g DB2iadm1 -m -d /home/DB2inst1 DB2inst1  
  2. useradd -u 1003 -g DB2fadm1 -m -d /home/DB2fenc1 DB2fenc1  
  3. useradd -u 1002 -g dasadm1 -m -d /home/dasusr1 dasusr1 

Change User Password

 
 
  1. #passwd DB2inst1  
  2. #passwd DB2fenc1  
  3. #passwd dasusr1 

4. Create a Management Server

 
 
  1. #/opt/ibm/DB2/V9.7/instance/dascrt -u dasusr1 

Create an instance

 
 
  1. #/opt/ibm/DB2/V9.7/instance/DB2icrt -a SERVER -u DB2fenc1 DB2inst1 

5. Configure TCP/IP communication for the DB2 instance

Switch to the instance user and start DB2

# Su-DB2inst1

1) Configure DB2

 
 
  1. $ DB2set DB2_SKIPINSERTED=ON 
  2. DB2set DB2_EVALUNCOMMITTED=ON 
  3. DB2set DB2_SKIPDELETED=ON 
  4. DB2set DB2_HASH_JOIN=YES 
  5. DB2set DB2_RR_TO_RS=YES 
  6. DB2set DB2CODEPAGE=1386 
  7. DB2set DB2COMM=TCPIP 
  8. DB2set DB2_PARALLEL_IO=*  
  9. DB2 update dbm cfg using svcename 50000 

2) Add automatic run

 
 
  1. $DB2set DB2AUTOSTART=NO 

$ Su-[Change User to root]

# Vi/etc/rc. local

Add the following content after touch/var/lock/subsys/local:

# Su-DB2inst1-c "DB2start"

3) modify the sysctl. conf file

 
 
  1. #vi /etc/sysctl.conf  
  2. kernel.msgmni = 1024 
  3. kernel.sem = 250 256000 32 1024 

4) modify the limits. conf file and the soft nofile value in the file.

 
 
  1. #vi /etc/security/limits.conf  
  2. * soft nofile 10240 

10240 maximum number of opened files

Restart the server after modification.

The above content is an introduction to the installation of linux DB2 v9.7. I hope you will find some gains.

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.