赞
踩
1、检查对应数据库内存是否够用(重点在空闲比例)
select dbf.tablespace_name,
dbf.totalspace "总量(M)",
dbf.totalblocks as 总块数,
dfs.freespace "剩余总量(M)",
dfs.freeblocks "剩余块数",
(dfs.freespace / dbf.totalspace) * 100 "空闲比例"
from (select t.tablespace_name,
sum(t.bytes) / 1024 / 1024 totalspace,
sum(t.blocks) totalblocks
from dba_data_files t
group by t.tablespace_name) dbf,
(select tt.tablespace_name,
sum(tt.bytes) / 1024 / 1024 freespace,
sum(tt.blocks) freeblocks
from dba_free_space tt
group by tt.tablespace_name) dfs
where trim(dbf.tablespace_name) = trim(dfs.tablespace_name)
2、如果空闲比例不够使 使用以下 增加数据文件允许 自动增长
ALTER TABLESPACE CWBASE0001 ADD DATAFILE
'D:\TRD_2.DBF' SIZE 1024M AUTOEXTEND ON NEXT 8M MAXSIZE 10240M;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。