DB2 9.7 for Linux 5.4 Installation Steps

Source: Internet
Author: User
Tags parse error

1Decompress the installation package

# Gunzip v9.7_linuxia32_server.tar.gz

# Tar-xvf v9.7_linuxia32_server.tar

2, Enter the decompressed file directory, and execute the installation:(We choose to install it manually)

Note:DB2_installFor manual InstallationDb2_setupInstall Images

#./Db2_install ------- no ----- aese

3, CreateDB2Groups and users required for running:

# Groupadd-g 901 db2grp

# Groupadd-g 902 db2fgrp

# Groupadd-g 903 db2agrp

# Useradd-g db2grp-u 801-d/home/db2inst1-m-s/bin/bash db2inst1--Manage current instance

# Useradd-g db2fgrp-u 802-d/home/db2fenc-m-s/bin/bash db2fenc

# Useradd-g db2agrp-u 803-d/home/db2das-m-s/bin/bash db2das --Manage all instances

4, Set the password:

Passwd db2inst1

Passwd db2fenc

Passwd db2das

5, Create an instance

# Cd/opt/ibm/db2/V9.7/instance

#./Dascrt-u db2das

#./Db2icrt-u db2inst1 db2inst1

Note:DBI1922NThe host name is not valid.Failed to parse error reported, in/Etc/hostsAdd resolution parameters to the file.

Note:

Dascrt:CreatedDB2 adminstration serverEach server has only one suchServer,DB2Management (such as the Operation Control Center) is required, and its management user isDb2das.

Db2icrt:The instance is created, and its name is generally the same as the management user name.Db2inst1.

6, StartDB2

# Su-db2das

$ Db2admin start----StartDB2Manage servers

Sql00009w The DB2 Administration Server is already active.

 

$ Su-db2inst1

$ Db2start----Start a database instance

05/07/2012 01:30:04 0 0 SQL1063N DB2START processing was successful.

SQL1063N DB2START processing was successful.

  • 1
  • 2
  • 3
  • Next Page

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.