DB2 installation process (CentOS)

Source: Internet
Author: User
Tags db2 installation

DB2 installation process (CentOS) installation. /install create an instance: groupadd database useradd prod-g databaseuseradd prodfenc-g databasmcm/opt/ibm/db2/V9.7/instance. /db2icrt-a server-u prodfenc prod configure instance parameters: cd ~ Prodvi. bashrc # Add at the end. /sqllib/db2profile sets the instance to start su proddb2iauto-on prod at each login to start instance db2start # You must log on with the instance owner and run this command to list all instances db2ilist to view the current instance db2 get instance current instance Configuration Parameter db2 get dbm cfg create/View/connect database db2 create database LEONdb2 list database directorydb2 connect to LEON view tablespace (details) db2 list tablespaces show detail CREATE an 8 k page upper-case buffer pool db2 "create BUFFERPOOL LEON_BU_8K immediate size 2000 PAGESIZE 8 k" db2 drop bufferpool limit CREATE bufferpool leon_bp_8k immediate size 5000 pagesize 8 k create tablespace (8 K page size) mkdir-p/database # can only be created to this layer. The container directory is created by the database. If you create a directory, the following error DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command will be reported when creating The tablespace. during SQL processing it returned: SQL0298N Bad container path. SQLSTATE = 428B2chown-R prod: database db2 "create tablespace LEONSPACE0 pagesize 8192 managed by database using (FILE '/database/container1' 5000) bufferpool leon_bp_8k"

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.