SELECT t.tablespace_name,
round(SUM(bytes / (1024 * 1024)), 0) ts_size,
file_id,
file_name
FROM dba_tablespaces t, dba_data_files d
WHERE t.tablespace_name = d.tablespace_name
GROUP BY t.tablespace_name, file_id, file_name
SELECT SUM(bytes) / (1024 * 1024) AS free_space, tablespace_name
FROM dba_free_space
GROUP BY tablespace_name;
SELECT a.tablespace_name,
a.bytes total,
b.bytes used,
c.bytes free,
(b.bytes * 100) / a.bytes "% USED ",
(c.bytes * 100) / a.bytes "% FREE "
FROM sys.sm$ts_avail a, sys.sm$ts_used b, sys.sm$ts_free c
WHERE a.tablespace_name = b.tablespace_name
AND a.tablespace_name = c.tablespace_name;
SELECT FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE FROM dba_data_files;
ALTER DATABASE DATAFILE 'datafile路径名字' RESIZE 2000M;
ALTER DATABASE DATAFILE '... ' AUTOEXTEND ON | OFF NEXT 20M MAXSIZE 300M;