DB Admin: Used, auto and max space of datafile/s of the given tablespace in Mb


Given tablespace used, auto and max in Mb

 
set lines 200
set pagesize 150
break on report
compute sum of mbytes on report
col file_name format a70
select
file_id,
file_name,
bytes/1024/1024 CURRENT_USED_MB,
autoextensible,
maxbytes/1024/1024 CAN_GROW_TO_MAX_MB
from
dba_data_files
where
tablespace_name=upper('&Tbs_Name');

Sample output:

Leave a Reply

Your email address will not be published. Required fields are marked *