hide columns

classic Classic list List threaded Threaded
2 messages Options
big
Reply | Threaded
Open this post in threaded view
|

hide columns

big
Hi,
In 19c

The following displays 5 columns. is there any way to have just tablespace and Pct.Free columns?
select df.tablespace_name "Tablespace",
totalusedspace "Used MB",
(df.totalspace - tu.totalusedspace) "Free MB",
df.totalspace "Total MB",
round(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace))
"Pct. Free"
from
(select tablespace_name,
round(sum(bytes) / 1048576) TotalSpace
from dba_data_files
group by tablespace_name) df,
(select round(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name
from dba_segments
group by tablespace_name) tu
where df.tablespace_name = tu.tablespace_name and round(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace)) < 40 ;



Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: hide columns

ErmanArslansOracleBlog
Administrator
yes. just select those colums.. change your sql a little bit. or select from your select :)