How to install and uninstall a DB2 database on linux (1)

Source: Internet
Author: User
Tags db2 express

This article describes how to install and uninstall a DB2 database in a linux environment for your reference.

Install db2 express_c 9.5 on redhat linux enterpise v5 on the VM

1. Upload the db2 linux installation package to the linux server through ftp.

2. decompress the tar-zxvf db2 file package

3. Enter the decompressed directory for cd expc.

4. Execute the command "this is the installation wizard, it is best to use this, instead of db2_install"
./Db2setup

5. Open the Installation Wizard

Select agree to select a typical installation select a location for storing the response File
Default installation path:/opt/ibm/db2/V9.5
New DAS user dasusr1 group name: dasadm1
Instance settings: Select create instance
User name with instance: db2inst1 group name: db2iadm1
Protected User Username: db2fenc1 group name: db2fadm1

6. After completing the settings, click Finish to start database and instance installation.

7. After the installation is complete, check whether the installation is successful, and the installation example database is optional. We recommend that you install it if you want to learn it)
For details, see the db2 express-c Installation check and installation example database.

It is mainly to learn a command db2fs (Note: You should log on to the instance with [db2inst1] and then execute db2fs)
NOTE: If no error is reported after db2fs is executed, but no response is returned,
Execute this command: xhost + db2inst1


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.