How does one install the DB2 database in linux?

Source: Internet
Author: User
Tags ibm db2

The following article describes how to install the DB2 database correctly in the linux operating system, if you are interested in installing the DB2 database correctly in the linux operating system, you can click to view the following articles.

1. install linux

Configure the network to ensure the network is smooth.

2. Install WebSphere and JDK

(1) restart the system, log on as the root user, copy the content on the installation CD to the/home directory, and decompress the *. tgz file.

(2) install WebSphere, the default installation to the/opt directory subdirectory/opt/IBM/WebSphere; install DB2 database will automatically configure JDK to subdirectory/opt/IBMJava2-131.

(3) set to show hidden files, configuration file/root/. bashrc, add the following configuration

 
 
  1. export LD_ASSUME_KERNEL=2.2.5  
  2. export JAVA_HOME=/opt/IBMJava2-131  
  3. export PATH=$PATH:$JAVA_HOME/bin:/opt/IBM/db2/V8.1/bin  
  4. export CLASSPATH=:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar 

3. Install the DB2 database

(1) restart the system and decompress the c554vml.tar file with the root user.

(2) install and run db2setup and install the database instance. The configuration result is as follows:

Product to be installed: IBM DB2 general database Lite version

Installation type: Typical

Selected components:

Product message-en_US.iso88591

Basic Client Support

DB2 LDAP support

Product message-zh_CN.gbk

Product message-zh_CN.utf8

Code Page conversion table-Unicode support

Code Page conversion table

ICU Utility

Java help HTML)-en_US.iso88591

Product message-zh_CN.eucCN

Copy

SQL Process

Control Center help HTML)-en_US.iso88591

Java public file

Step 1

DB2 database installation wizard

Java help HTML)-zh_CN.eucCN

Java support

Configuration Assistant

Runtime Environment

Communication support-TCP/IP

Manage servers

DB2 data source support

Basic DB2 UDB support

Sample database Source

DB2 UDB Lite product feature

Control Center

Control Center help HTML)-zh_CN.eucCN

Language:

Language: CN

Language: EN

Target Directory:/opt/IBM/db2/V8.1

Required space: 412 MB

Create an instance:

Instance name: falvw

Authentication: SERVER

Start the instance Upon reboot: Yes

TCP/IP configuration:

Service name: db2c_falvw

Port: 50000

Instance user information:

Username: falvw

Group Name: db2grp1

Home Directory:/home/falvw

Protected user information:

Username: falvwfh

Group Name: db2fgrp1

Main Directory:/home/falvwfh

(3) create a database

Create a subdirectory/home/db2data

Run su falvw

 
 
  1. Db2jstrt 50000
  2. Db2start
  3. Db2
  4. Run create database falvw on/home/db2data/

Now, the server configuration is complete. The above content is an introduction to installing the DB2 database in linux. I hope you will have 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.