ITPub博客

首页 > 数据库 > 数据库开发技术 > DB2 查看表空间是否自动存储

DB2 查看表空间是否自动存储

原创 数据库开发技术 作者:like052629 时间:2015-07-06 14:33:03 0 删除 编辑
db2 get snapshot for tablespaces on cms
  Tablespace Type                          = Database managed space
  Tablespace Content Type                  = All permanent data. Large table space.
  Tablespace Page size (bytes)             = 4096
  Tablespace Extent size (pages)           = 32
  Automatic Prefetch size enabled          = Yes
  Buffer pool ID currently in use          = 1
  Buffer pool ID next startup              = 1
  Using automatic storage                  = Yes             --使用了自动存储器
  Auto-resize enabled                      = Yes
  File system caching                      = No
2、使用 DB2 提供的如下快照表函数
db2 => select char((TBSP_NAME),30) as TBSP_NAME,TBSP_ID,TBSP_USING_AUTO_STORAGE from table(snap_get_tbsp('CMS',-1)) as tbsp


TBSP_NAME                      TBSP_ID              TBSP_USING_AUTO_STORAGE
------------------------------ -------------------- -----------------------
SYSCATSPACE                                       0                       1
TEMPSPACE1                                        1                       1
USERSPACE1                                        2                       1
SYSTOOLSPACE                                      3                       1
SYSTOOLSTMPSPACE                                  4                       1
为1则启动自动存储

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28258625/viewspace-1724476/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-11-18

  • 博文量
    120
  • 访问量
    551552