1.1 现象描述
登录数据库失败,系统提示如下错误信息:
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Jul 14 10:20:37 2011
Copyright (c) 1982, 2008, Oracle. All rights reserved.
ERROR:
ORA-09925: Unable to create audit trail file
HPUX-ia64 Error: 2: No such file or directory
Additional information: 9925
ORA-01075: you are currently logged on
1.2 可能原因
审计日志目录满或者审计日志目录不存在。
1.3 定位思路
1. 检查审计日志目录是否存在。
ls –a
目录不存在时,系统显示如下错误信息:
HPUX-ia64 Error: 2: No such file or directory
2. 检查审计日志目录是否处于满状态。
1.4 处理步骤
检查审计日志。
o 如果审计日志目录不存在,则创建日志目录。
% mkdir $ORACLE_BASE/diag/rdbms/$ORACLE_SID/$ORACLE_SID/adump
o 如果审计日志是满状态,则清空日志文件。
% rm -f 审计日志文件名
验证登录数据库是否成功并退出。
a. 以oracle用户登录数据库所在机器。
b. 以sysdba用户连接数据库。
% sqlplus / as sysdba
登录成功,系统显示如下信息:
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Jul 14 10:30:27 2011
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
c. 退出Oracle。
SQL> quit