ORA-09925: Unable to create audit trail file


  當我修改ORACLE_SID為新的SID,想進行數據庫還原時,用sqlplus報如下錯誤

[oracle@dbtest ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Thu May 4 15:26:01 2017

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

ERROR:
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 13: Permission denied
Additional information: 9925
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 13: Permission denied
Additional information: 9925

  當發生上面錯誤的時候,有以下三種可能:

  1. 磁盤空間已滿,導致無法創建審核文件,使用df -h查詢磁盤空間;
  2. 磁盤inodes已經占用完了,導致無法打開新的文件,使用df -i查看inode使用情況;
  3. 路徑權限不足,無法創建審核文件,查看路徑權限情況ls -l。

但是三種可能都會有不同差異的報錯:

磁盤空間不足或inodes用完:Linux-x86_64 Error: 28: No space left on device

權限不足:Linux-x86_64 Error: 30: Read-only file system  或者 Linux Error: 13: Permission denied

根據上面報錯情況,是由於權限不足,經過檢查,是因為/U01路徑的權限是root:root,修改為Oracle:oinstall之后正常

  當inode占用完是,需要刪除對應路徑下面的一些文件,如下inode已使用100%。

[grid@node1]$ df -i /u01/app/grid/product/11.2.0/grid/rdbms/audit
Filesystem Inodes   IUsed    IFree IUse% Mounted on
/dev/xvdaz 13107200 13107200 0     100%  /u01       <<<<<<<<----------- Here, IUse% is 100

  此時刪除該路徑下面一些不用的文件就可以。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM