/*查看表空间物理文件的名称及大小*/SELECT tablespace_name,file_id,file_name,round(bytes / (1024 * 1024), 0) total_space...表空间名称,
trunc(b.b3/1024/1024/1024,2) 表空间总大小G,
trunc(b.b2/1024/1024.../1024,2) 表空间文件已有大小G, --同一表空间DBF文件目前大小总和
round((b.b2-a.a2)/1024/1024...a.a2)/1024/1024/1024,2) 剩余大小G,
trunc((b.b3/1024/1024-(b.b2-a.a2)/1024/1024)/1024,2) 可用表空间...sum(bytes) b2,sum(maxbytes) b3 from dba_data_files group by tablespace_name) b
where a.a1=b.b1;
/*增加表空间