在Oracle中获取磁盘空间的使用情况,吐血推荐

类别:数据库 点击:0 评论:0 推荐:
Select Distinct
    SysDate,
       s.user#           As UserID,
       u.name            As UserName,
       s.ts#             As TableSpaceID,
       d.tablespace_name As TableSpaceName,
       s.FILE#           As DataFileID,
       d.file_name       As DataFileName,
       d.bytes           As Bytes,
       d.maxbytes        As MaxBytes,
       d.user_bytes      As UserBytes,
       d.autoextensible  As AutoExtensible,
       d.increment_by    As InCrementBy,
       d.status          As Status
From sys.seg$ s, sys.user$ u, dba_data_files d
Where s.user# = u.user#
And   s.file# = d.file_id;

本文地址:http://com.8s8s.com/it/it20392.htm