1. 查看表空间的名字及文件所在的位置 select tablespace_name, file_id, file_name, round(bytes / (1024 * 1024), 0) total_space from sys.dba_data_files order by tablespace_name; 2. 指定表空间查看数据文件目录 select name from v$datafile where ts# in (select ts# from v$tablespace wh…
1. 全部表空间的大小select tablespace_name, sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;TABLESPACE_NAME SUM(BYTES)/1024/1024-------------------- --------------------UNDOTBS1 65SYSAUX 520USERS …