DB2 tablespace size limit

Source: Internet
Author: User

The size of the DB2 tablespace is not infinite. In the DB2 world, the size of the table and DB2 tablespace is mainly limited by pagesize and its corresponding addressing capabilities.

In DB2 v8, the page address is 3 bytes, that is, the 24 power of 2 is available, that is, 16,777,216 pages can be addressable. Based on this restriction, the following table space and table size restrictions are obtained:

# Of pages Page size Limit of table/tablespace
16,777,216 4 K 64 GB
16,777,216 8k 128 GB
16,777,216 16k 256 GB
16,777,216 32 K 512 GB

In DB2 v9, the page address is expanded to 4 bytes, that is, the addressing capability is increased by 4 times. The specific restrictions are as follows:

# Of pages Page size Limit of table/tablespace
536,870,912 4 K 2 TB
536,870,912 8 K 4 TB
536,870,912 16 K 8 TB
536,870,912 32 K 16 TB

Note: in DB2 v8, the DB2 tablespace of the large type is only used by the LOB and LONG data types, but there is no similar restriction in DB2 v9. The default DB2 tablespace type is large, if you upgrade from DB2 v8 to v9, You need to manually convert the tablespace from regular to large.

Alter tablespace tablespace_name CONVERT TO LARGE

Batch import of DB2 stored procedures

How to create a temporary DB2 table

DB2 connection Server Configuration

Learn about the DB2 lock types

Solution to db2 tablespace lock

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.