linux db2查询表空间,db2中怎么查看表空间的使用情况(SQL)

找到了

Deprecated SQL administrative routines and their replacement routines or views

In order to provide expanded support in DB2 Version 9 for the existing administrative routines, some of the DB2 UDB for Linux, UNIX, and Windows Version 8 routines have been replaced with new, more comprehensive routines or views.

Applications that use the DB2 UDB for Linux, UNIX, and Windows Version 8 table functions should be modified to use the new functions or administrative views. The new table functions have the same base names as the original functions but are suffixed with '_Vxx' for the version of the product in which they were added (for example, _V91). In most cases, the new table functions and administrative views return additional information. The administrative views will always be based on the most current version of the table functions, and therefore allow for more application portability. Since the columns might vary from one release to the next (that is, some are added and some are deleted), it is recommended that specific columns be selected from the administrative views, or that the result set be described if a SELECT * statement is used by an application.

SNAPSHOT_TBS_CFG table function

Returns configuration information from a table space snapshot.

>>-SNAPSHOT_TBS_CFG--(--dbname--,--dbpartitionnum--)-----------><

比如:

select * from table(snapshot_tbs_cfg('STUDY',-1));

其中STUDY是数据库名

-1 表示当前活动的数据库分区

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值