Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3013208
  • 博文数量: 535
  • 博客积分: 15788
  • 博客等级: 上将
  • 技术积分: 6507
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 09:11
文章分类

全部博文(535)

文章存档

2016年(1)

2015年(1)

2014年(10)

2013年(26)

2012年(43)

2011年(86)

2010年(76)

2009年(136)

2008年(97)

2007年(59)

分类:

2008-03-21 10:24:55

oracle硬盘没有空间了,oracle不能启动,报错如下:
[oracle@rewin-db oracle]$ sqlplus "/as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on Wed Mar 19 15:05:35 2008

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

ERROR:
ORA-09817: Write to audit file failed.
Linux Error: 28: No space left on device
ORA-09945: Unable to initialize the audit trail file
Linux Error: 28: No space left on device

解决办法:
把 /oracle/ora9.2/rdbms/audit 目录下的文件删掉

启动后查看oracle重做表空间占用空闲空间较大,为15G,表空间被用过了,收不回去,创建一个换过去!

顾UNDO的表空间最好不要设为UNLIMITED!方法如下:


-- 创建备用undo表空间
SQL> create undo tablespace UNDOTBS2 datafile '/ora_disk/rewin/UNDOTBS2.dbf' size 1000m;
需要设置一下自动增长??

Tablespace created

-- 切换undo表空间

SQL> alter system set undo_tablespace=UNDOTBS2 scope=spfile;

SQL> shutdown immediate

- drop原表空间
drop tablespace UNDOTBS1 including contents and datafiles;

-- 创建原undo表空间
SQL> create undo tablespace UNDOTBS1 datafile '/ora_disk/rewin/UNDOTBS1.dbf' size 1000m;

Tablespace created

-- 切换undo表空间
SQL> alter system set undo_tablespace=UNDOTBS1 scope=spfile;

System altered.

-- 关闭重起并把备用undo表空间drop
SQL> shutdown immediate
/
SQL> startup
/
SQL> drop tablespace UNDOTBS2 including contents and datafiles;

有关缩小表空间的方法2:
注意在使用OEM查看表空间时要看清是否只有一个dbf文件.
alter database datafile '/u03/oradata/undotbs01.dbf' resize 2000M

阅读(2922) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~