Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Oracle9i - Display Table Space Size Status

Oracle9i - Display Table Space Size Status

Ratings:

5.0

(1)
|Views: 502 |Likes:
Published by api-3766428

More info:

Published by: api-3766428 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

SELECTtspace.tablespace_name,

tspace.total_space Total_Space,
ROUND((tspace.total_space-free.total_free),2) as Used_Space,
free.total_free,
ROUND((tspace.total_space-free.total_free)/tspace.total_space*100) as pct_used,
ROUND(free.total_free/tspace.total_space*100) as pct_free

FROM
(SELECTtablespace_name,

SUM(bytes)/1024/1024 total_space
FROM dba_data_files
GROUP BY tablespace_name) tspace,

(SELECTtablespace_name,

ROUND(SUM(bytes)/1024/1024,2) total_free
FROM dba_free_space
GROUP BY tablespace_name) free

WHERE
tspace.tablespace_name = free.tablespace_name (+)
AND ((ROUND(free.total_free/tspace.total_space*100)) < 100)

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
kcr.dba6380 liked this
dhirajj liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->