-
查当前位置
-
select group_id,id,path,auto_extend,max_size from v$datafile;
查大小
-
select
-
a.tablespace_name "表空间名称" ,
-
(total - free) / (1024 * 1024 ) "使用(m)" ,
-
free / (1024 * 1024) "剩余(m)" ,
-
total / (1024 * 1024) "大小(m)" ,
-
round((total - free) / total, 4) * 100 "使用率 %"
-
from
-
(
-
select
-
tablespace_name, sum(bytes) free
-
from
-
dba_free_space
-
group by
-
tablespace_name
-
)a,
-
(
-
select
-
tablespace_name, sum(bytes) total
-
from
-
dba_data_files
-
group by
-
tablespace_name
-
) b
-
where
-
a.tablespace_name = b.tablespace_name and a.tablespace_name='temp';
-
-
或者 ls -lh /home/dmdba/dmdbms/data/dmserver/temp*
调大
alter tablespace temp resize datafile '/home/dmdba/dmdbms/data/dmserver/temp.dbf' to 128;
调小
-
sp_trunc_ts_file (ts_id ,file_id, to_size);
-
sp_trunc_ts_file (3 ,0, 64);