自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

DB2數(shù)據(jù)庫中表空間的大小限制

數(shù)據(jù)庫
DB2數(shù)據(jù)庫中,表和表空間的大小主要受到pagesize和其對應尋址能力限制。本文將為您詳細分析DB2數(shù)據(jù)庫中表和表空間的大小的限制,供您參考,希望對您有所幫助。

DB2數(shù)據(jù)庫中,表和表空間的大小主要受到pagesize和其對應尋址能力限制。本文將為您詳細分析DB2數(shù)據(jù)庫中表和表空間的大小的限制,供您參考,希望對您有所幫助。

在DB2 v8中,頁地址為3個字節(jié),也就是2的24次方可用,就是16,777,216頁可以被尋址,基于這個限制得到如下表空間和表大小的限制:

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

在DB2 v9中,頁地址擴展為4個字節(jié),也就是尋址能力提升4倍,具體的限制如下所示:

# 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

注意:在DB2 v8中,large類型的表空間只是為LOB和LONG數(shù)據(jù)類型所使用,而在DB2 v9中沒有類似的限制,默認的表空間類型就是large,如果從DB2 v8升級到v9就需要手動的把表空間從regular轉換為large

ALTER TABLESPACE tablespace_name CONVERT TO LARGE

DB2 v8中的典型報錯#p#

多所有容器擴容

db2 " ALTER TABLESPACE tablespace-name EXTEND (ALL 1000000)"

DB21034E The command was processed as an SQL statement because it was not avalid Command Line Processor command. During SQL processing it returned:

SQL1139N The total size of the table space is too big. SQLSTATE=54047
 
對其中一個容器擴容

db2 " ALTER TABLESPACE tablespace-name  EXTEND (FILE '/dir/filename' 3000000)"

DB21034E The command was processed as an SQL statement because it was not avalid Command Line Processor command. During SQL processing it returned:

SQL1139N The total size of the table space is too big. SQLSTATE=54047
 
加容器

db2 " ALTER TABLESPACE tablespace-name  ADD (FILE '/dir/filename' 500000)"

DB21034E The command was processed as an SQL statement because it was not avalid Command Line Processor command. During SQL processing it returned:

SQL1139N The total size of the table space is too big. SQLSTATE=54047
 
通過檢查可以看到#p#

LIST TABLESPACES SHOW DETAIL

...

Tablespace ID                       = 8

 Name                                       = tablespace-name

 Type                                       = Database managed space

 Contents                                = Any data

 State                                        = 0x0000

  Detailed explanation:

    Normal

 Total pages                            = 16388000

 Useable pages                       = 16387840

 Used pages                            = 16387840

 Free pages                               = 0

 High water mark (pages)       = 16387840

 Page size (bytes)                   = 4096

 Extent size (pages)                 = 32

 Prefetch size (pages)              = 128

 Number of containers             = 4

 Minimum recovery time          =2009-06-26-04.47.15.000000

...

可以明顯看到頁數(shù)量已經(jīng)接近了最大限制
 

責任編輯:段燃 來源: ITPUB
相關推薦

2010-11-03 11:26:39

DB2表空間

2010-09-01 09:13:29

DB2表空間

2010-09-01 14:46:16

DB2表空間

2010-11-01 11:45:06

DB2管理頁大小

2010-08-18 09:18:10

DB2求剩余數(shù)據(jù)庫空間

2011-03-11 16:02:03

DB2數(shù)據(jù)庫安裝

2010-11-03 16:32:10

DB2創(chuàng)建數(shù)據(jù)庫

2010-08-25 10:50:48

DB2數(shù)據(jù)庫

2010-07-27 09:45:35

DB2數(shù)據(jù)庫設計

2010-09-01 13:38:41

DB2數(shù)據(jù)復制

2010-08-31 17:34:46

DB2

2010-11-01 13:45:16

DB2數(shù)據(jù)庫的優(yōu)勢

2015-10-29 15:06:36

DB2重定向恢復數(shù)據(jù)

2010-07-28 10:13:06

DB2查詢Table

2010-08-26 16:15:25

DB2數(shù)據(jù)庫管理

2010-11-01 11:30:41

DB2數(shù)據(jù)庫權限

2010-09-30 11:49:21

DB2數(shù)據(jù)庫權限

2010-11-03 16:21:18

DB2數(shù)據(jù)庫授權

2009-07-06 17:34:26

遠程復制DB2

2009-04-01 14:07:44

表空間備份恢復
點贊
收藏

51CTO技術棧公眾號