Frequently Used DB2 instance creation statements on AIX

Source: Internet
Author: User

Frequently Used DB2 instance creation statements on AIX:

# Useradd-g db2iadm1-m db2inst6
# Useradd-g db2fadm1-m db2fenc6
# Db2icrt-u db2fenc6-p 60034 db2inst6
# Chuser fsize =-1 fsize_hard =-1 data =-1 data_hard =-1 stack =-1 stack_hard =-1 rss =-1 rss_hard =-1 nofiles =-1 nofiles_hard = -1 db2inst6
# Db2 get dbm cfg | grep-I svcename
# Db2 update dbm cfg using SVCENAME DB2_db2inst6
# Db2set-lr | grep-I db2comm = tcpip
# Db2iauto-on db2inst6

Enable self_tuning memory.

Db2 update db cfg for sample using SELF_TUNING_MEM ON immediate
Db2 get db cfg for sample | grep-I database_memory
Db2 get db cfg for sample | grep-I sortheap
Db2 get db cfg for sample | grep-I sheapthres_shr
Db2 get db cfg for sample | grep-I locklist
Db2 get db cfg for sample | grep-I self_tuning

Db2 "update database configuration for sample using SELF_TUNING_MEM ON"
Db2 "update database configuration for sample using pckcachesz automatic"
Db2 "update database configuration for sample using locklist automatic"
Db2 "update database configuration for sample using MAXLOCKS automatic"
Db2 "update database configuration for sample using sortheap automatic"
Db2 "update database configuration for sample using SHEAPTHRES_SHR AUTOMATIC"
Db2 "update database configuration for sample using DATABASE_MEMORY AUTOMATIC"

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.