Whether Automatic Storage is enabled for the DB2 tablespace (1)

Source: Internet
Author: User

How can I determine whether automatic storage is enabled for a created DB2 database tablespace? This article describes three common Check Methods for your reference.

Method 1:

Use the snapshot tool of DB2 to take snapshots of the table space, for example:
$ Db2 get snapshot for tablespaces on sample
......
Tablespace name = SYSCATSPACE
Tablespace ID = 0
Tablespace Type = Database managed space
Tablespace Content Type = All permanent data. Regular table space.
Tablespace Page size (bytes) = 4096
Tablespace Extent size (pages) = 4
Automatic Prefetch size enabled = Yes
Buffer pool ID currently in use = 1
Buffer pool ID next startup = 1
Using automatic storage = Yes
......
You can confirm that automatic storage is enabled for the tablespace by setting "Using automatic storage" to "Yes" output from the snapshot.

Method 2:

Use the following snapshot table functions provided by DB2:
$ Db2 "select char (TBSP_NAME), 30)
TBSP_NAME, TBSP_ID, TBSP_USING_AUTO_STORAGE from
Table (snap_get_tbsp ('sample',-1) as tbsp"

The Automatic Storage is enabled for the tablespace where TBSP_USING_AUTO_STORAGE is "1". If there is "0", it is not enabled.


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.