一、查看表空间使用情况
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
t
s
a
v
a
i
l
a
,
s
y
s
.
s
m
ts_avail a, sys.sm
tsavaila,sys.smts_used b, sys.sm$ts_free c
WHERE a.tablespace_name = b.tablespace_name
AND a.tablespace_name = c.tablespace_name;
二、查看表空间文件(修改语句使用到)
select tablespace_name, file_id, file_name, round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name
三、cmd命令 sqlplus sys as sysdba
执行下面语句
alter database datafile ‘C:\APP\ADMINISTRATOR\PRODUCT\12.1.0\DBHOME_1\DATABASE\SDE_TBS’ resize 8000m