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
- export LD_ASSUME_KERNEL=2.2.5
- export JAVA_HOME=/opt/IBMJava2-131
- export PATH=$PATH:$JAVA_HOME/bin:/opt/IBM/db2/V8.1/bin
- 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
- Db2jstrt 50000
- Db2start
- Db2
- 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.