暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle 数据库损坏-ORA-09925: 无法创建审计跟踪文件

askTom 2016-07-20
1225

问题描述

实际上,当我的数据库运行时,我更改了我的参数文件。更改后我关闭了我的数据库。我再次尝试以sysdba的身份连接到我的数据库。但是我无法连接到该数据库。它显示了一些错误。
那么我的解决方案是什么。我如何连接到原始数据库。


实际上我想对我的数据库执行审计。在我的参数文件中,我从两个参数audit_trail和audit_file_dest中删除了注释标记 (#)。之后我关闭了我的数据库。再次尝试启动。它显示 [ORA-09925: 无法创建审计跟踪文件
Linux-x86_64错误: 2: 没有这样的文件或目录
附加信息: 9925
ORA-01075: 您当前登录]
以上错误,但我给出了正确的目的地。
之后,我再次在参数文件中注释了这两个参数audit_trail和audit_file_dest,并尝试启动db。
但是它再次显示相同的错误
[ORA-09925: 无法创建审计跟踪文件
Linux-x86_64错误: 2: 没有这样的文件或目录
附加信息: 9925
ORA-01075: 您当前登录]
在评论了这些参数之后,我也无法连接。
那么问题是什么,对我来说解决方案是什么。


专家解答

你确定目的地存在吗and你可以写信给它吗?

MOS note 69642.1有以下处理此问题的说明:

If you are prompted for a password and then receive error ORA-09925 "Unable
    to create audit trail file" or error ORA-09817 "write to audit file failed",
    along with "SVR4 Error: 28: No space left on device", do the following: 

    Check your "pfile". It is typically in the "$ORACLE_HOME/dbs" directory
    and will be named "init.ora, where "" is the value of
    "ORACLE_SID" in your environment. If the "init.ora" file has
    the "ifile" parameter set, you will also have to check the included file
    as well. You are looking for the parameter "audit_file_dest". 

    Alternatively retreive the parameter by typing: show parameter audit_file_dest .
 
    If "audit_file_dest" is set, change to that directory; otherwise change to
    the default directory , from version 10.2 onwards the first default value 
    for parameter AUDIT_FILE_DEST is: $ORACLE_BASE/admin/$ORACLE_SID/adump, 
    the second default value for the directory is: $ORACLE_HOME/rdbms/audit 
    (this is the only default directory for pre 10.2 RDBMS versions). 
 
    Make sure that if the first default directory exists, that it is also writable,
    otherwise if this directory exist but is not writable, an error 
    ORA-09925  "Unable to create audit trail file" is raised.

    If not any of the default directories exist, then create one. Ensure that you have
    enough space to create the audit file. The audit file is generally 600 bytes 
    in size. If it does exist, verify you can write to the directory:
 
    % touch afile 
 
    If it could not create the called "afile", you need to change the permissions
    on your audit directory: 
 
    % chmod 751  


您还可以在MOS note 1993887.1中找到更多说明。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论