Get the usage of disk space in Oracle,

xiaoxiao2021-03-06  64

Select Distinct

Sysdate,

S.user # as userid,

u.Name as username,

S.TS # as tablespaceid,

D. TableSpace_name as tablespaceename,

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;

转载请注明原文地址:https://www.9cbs.com/read-111428.html

New Post(0)