ITPub博客

首页 > 数据库 > Oracle > dba_ts_quotas

dba_ts_quotas

原创 Oracle 作者:yaoronghui2005 时间:2009-09-17 17:51:42 0 删除 编辑

describe tablespace quotas to all users

[@more@]
TABLESPACE_NAMEVARCHAR2(30)NOT NULLTablespace name
USERNAMEVARCHAR2(30)NOT NULLUser with resource rights on the tablespace
BYTESNUMBERNumber of bytes charged to the user
MAX_BYTESNUMBERUser's quota in bytes, or -1 if no limit
BLOCKSNUMBERNOT NULLNumber of Oracle blocks charged to the user
MAX_BLOCKSNUMBERUser's quota in Oracle blocks, or -1 if no limit

其中bytes,blocks = select sum(bytes),sum(blocks) from dba_extents where owner='TEST' 从该数据目录视图中可以直接过去当前用户占用的表空间的实际大小 this is important for me

SUM(BYTES) SUM(BLOCKS)
524288 64

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

下一篇: 日常积累
请登录后发表评论 登录
全部评论
  • 博文量
    153
  • 访问量
    176623