ORA-09817: Write to audit file failed 解决方法

本文介绍了如何解决Oracle数据库中出现的ORA-09817错误,该错误通常由磁盘空间不足引起。通过检查磁盘使用情况并释放足够的空间,可以有效解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

连接Oracle 报错:ORA-09817: Write to audit file failed.

 

[oracle@qs-dmm-rh1 dave]$ sqlplus sys/oracle as sysdba;

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Mar 17 16:35:02 2011

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

 

ERROR:

ORA-09817: Write to audit file failed.

--这种错误基本是磁盘空间满了

Enter user-name:

ERROR:

ORA-01017: invalid username/password; logon denied

 

Enter user-name:

ERROR:

ORA-01017: invalid username/password; logon denied

 

SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus

[oracle@qs-dmm-rh1 dave]$ oerr ora 9817

09817, 00000, "Write to audit file failed."

// *Cause:  ORACLE was unable to write an entry to the file used as the

//          audit trail.

// *Action: Check the UNIX error number for a possible operating system error.

//          If there is no error, contact Oracle Support Services.

[oracle@qs-dmm-rh1 dave]$ df -lh

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda3              13G   12G  136K 100% /

/dev/sda1              99M   12M   83M  12% /boot

tmpfs                 506M     0  506M   0% /dev/shm

[oracle@qs-dmm-rh1 dave]$

 

 

删除部分文件后:

 

[oracle@qs-dmm-rh1 u01]$ df -lh

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda3              13G  9.1G  2.8G  77% /

/dev/sda1              99M   12M   83M  12% /boot

tmpfs                 506M     0  506M   0% /dev/shm

 

再次连接正常:

 

[oracle@qs-dmm-rh1 u01]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Mar 17 17:06:43 2011

 

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

SQL> select open_mode from v$database;

 

OPEN_MODE

----------

MOUNTED


要是测试环境 数据库模式最好的非归档模式 

具体可以参考:http://blog.youkuaiyun.com/lxpbs8851/article/details/7194083


测试环境在删除文件的时候 可以去删除 归档文件

具体目录可以在 pfile里面找到

删除了之后要进行Rman Crosscheck 不然会出现问题

具体的操作: http://blog.youkuaiyun.com/lxpbs8851/article/details/7193979


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值