ORA-01658 表空間大小不足

解決方法:

1.查詢各個表空間的利用率

 

select

a.TABLESPACE_NAME,

a.total,nvl(b.used,0) USED,

nvl((b.used/a.total)*100,0) PCT_USED

from

(select TABLESPACE_NAME,

sum(bytes)/(1024*1024) total

from sys.dba_data_files

group by TABLESPACE_NAME) a,

(select TABLESPACE_NAME,bytes/(1024*1024) used

from sys.SM$TS_USED) b

where a.TABLESPACE_NAME=b.TABLESPACE_NAME(+);

 

 

 

2、查看表空间文件路径
select tablespace_name,file_id,bytes/1024/1024,file_name
   from dba_data_files order by file_id;

 

 

==解决办法
1.增加数据文件

ALTER TABLESPACE game

ADD DATAFILE ''/oracle/oradata/db/GAME02.dbf'' SIZE 1000M;

2.手动增加数据文件尺寸

ALTER DATABASE DATAFILE ''/oracle/oradata/db/GAME.dbf''

RESIZE 4000M;

3.设定数据文件自动扩展

ALTER DATABASE DATAFILE ''/oracle/oradata/db/GAME.dbf

AUTOEXTEND ON NEXT 100M

MAXSIZE 10000M;

 

http://liyueling.iteye.com/blog/629125

你可能感兴趣的:(ora)