DB2 Programming Skills (ix) _DB2

Source: Internet
Author: User
Tags db2
The DB2 tutorial being looked at is: DB2 Programming Tips (ix). 4.8 See what database is available under this instance
DB2 LIST DATABASE DIRECTORY [On/home/db2inst1]
4.9 View and change the configuration of the database head
Note that in most cases, when you change the configuration of your data, it will not take effect until all the connections have been broken.

To view the configuration of the database head
DB2 get DB CFG for head


Change the value of a setting for the database head
4.9.1 the size of the sorted heap
DB2 Update DB CFG for head using SORTHEAP 2048
To change the size of the sort heap to 2048 pages, it is best to set the value larger for more applications.
4.9.2 change the size of the things log
DB2 Update DB CFG for head using logfilsiz 40000
The size of the item to the database and the processing of things to adapt, if things are larger, you should change the value of a bit larger. Otherwise, it is easy to handle log file full errors.

4.9.3 to modify the heap memory size when there is not enough heap memory in the program
DB2 Update DB CFG for head using APPLHEAPSZ 40000
The value cannot be too small, otherwise there will not be enough memory to run the application.

4.10 View and change the configuration of a database instance
View database Instance Configuration
DB2 get dbm CFG
Change database Instance Compounding

4.10.1 turns on lock monitoring.
DB2 update dbm CFG using Dft_mon_lock on
4.10.2 Change Diagnostics Error capture level
DB2 update dbm CFG using Diaglevel 3
0 to not record information
1 for logging errors only
2 Logging service and non-service errors
The default is 3, logging DB2 errors and warnings
4 is to record all the information, including the successful execution of the information
In general, please do not use 4, will cause DB2 to run very slowly.


<

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.