Install Multiple DB2 copies in Linux

Source: Internet
Author: User
Tags db2 connect db2 express db2 installation
Because a DB2 copy already exists on the system and the default installation path optibmdb2V9.7 is used during installation, you must specify the installation path for the DB2 copy to be installed. If you use

Because a DB2 copy already exists on the system and the default installation path/opt/ibm/db2/V9.7 is used during installation, you must specify the installation path for the DB2 copy to be installed. If you use

1. view the current DB2 copy on the system:

[Root @ localhost home] # db2ls

Install Path Level Fix Pack Special Install Number Install Date Installer UID

Bytes ---------------------------------------------------------------------------------------------------------------------

/Opt/ibm/db2/V9.7 9.7.0.7 7 Fri Dec 7 01:58:51 2012 CST 0

The current DB2 version on the system is 9.7.0.7, and the copy installation path is/opt/ibm/db2/V9.7.

2. view the user and group information of the current DB2 instance on the system:

[Db2inst @ localhost home] $ ls-l

Total usage 20

Drwxr-xr-x. 4 dasusr dasadm 4096 02:05 dasusr

Drwx ------. 3 db2fenc db2fgrp 4096 November 30 21:46 db2fenc

Drwxr-xr-x. 10 db2inst db2grp 4096 December 12 05:26 db2inst

Drwxr-xr-x. 3 root 4096 December 12 05:28 db2install

The current instance owner db2inst is in the db2grp group. The DAS user is dasusr and the group is dasadm. The protected user is db2fenc and the group is db2fgrp.

Since each computer can only have one DAS, there is no need to create a new copy of the DAS, there is no need to create a corresponding DAS user.

3. Create instance owner users and groups for the new DB2 copy instance:

[Root @ localhost home] # groupadd db2grp2

[Root @ localhost home] # useradd-g db2grp2-d/home/db2inst2-s/bin/bash db2inst2

[Root @ localhost home] # passwd db2inst2

4. Because a DB2 copy already exists on the system and the default installation path/opt/ibm/db2/V9.7 is used during installation, you must specify the installation path for the DB2 copy to be installed. If you use the "DB2 installation" Wizard to install a new copy, you do not need to specify the installation path. The default path is/opt/ibm/db2/V9.7 _##, the value range of # is 01 to 99 ,. Here, the installation path is:

[Root @ localhost ~] # Mkdir/opt/ibm/db2/V9.7 _ 01

5. Use the root user to install a new DB2 copy. Note that non-root users cannot install multiple DB2 copies.

[Root @ localhost db2install] # ls

Server v9.7fp5_linuxia32_server.tar.gz

-- The installation package has been decompressed.

[Root @ localhost server] #./db2_install-B/opt/ibm/db2/V9.7 _ 01-p ESE-n

-B: Specify the installation path.

-P productShotName: Specifies the DB2 database product to be installed. This parameter is case insensitive. When the-n parameter is specified, the-p parameter must be specified. You can find the product short name (productShotName) in the componentlist.htm file in the/home/db2install/server/db2/linuxdirectory ). The short name of the product is as follows:

DB2 Enterprise Server Edition: ESE

DB2 Connect Server: CONSV

DB2 Workgroup Server Edition: WSE

DB2 Express: EXP

DB2 Personal Edition: PE

IBM Data Server Client: CLIENT

IBM Data Server Runtime Client: RTCL

-N: indicates the non-interactive installation method. If this parameter is specified,-B and-p must be specified.

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.