共計 1433 個字符,預計需要花費 4 分鐘才能閱讀完成。
本篇內容主要講解“怎么解決 sqlplus 連接報錯 ORA-09925”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓丸趣 TV 小編來帶大家學習“怎么解決 sqlplus 連接報錯 ORA-09925”吧!
問題如下
marven@hpserver2 ~]$ sqlplus /as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Wed Feb 1 15:55:07 2012Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 30: Read-only file system
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 30: Read-only file system
Additional information: 9925
ORA-01075: you are currently logged on
看問題剛開始以為是文件目錄權限的問題,排查了好一會,Oracle 目錄權限沒問題,可是在 Oracle_HOME 路徑下每一層 vi test.txt 都無法寫成功,最后沒有排查出來,重啟主機之后好了,測試 vi test.txt 可以,sqlplus 連接也沒問題了,現在講網上搜集到的這類問題做一總結。
原因一:目錄權限問題 – 目錄權限被改,無權限向目錄寫審計數據
oracle bin 目錄(實際是整個 oracle 目錄)的屬主被更改: –ls -al bin
解決方法
chown -R oracle.oinstall /opt/orace
原因二:確實磁盤沒空間了 –df -h
原因三:磁盤 Inodes 用光 –df -i
如:
$ sqlplus Plus: Release .. Production Thu May , , Oracle. : Unable audit trail x86_64 Error: : Unable audit trail x86_64 Error:
當發生上面錯誤的時候,有以下三種可能:
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%。
到此,相信大家對“怎么解決 sqlplus 連接報錯 ORA-09925”有了更深的了解,不妨來實際操作一番吧!這里是丸趣 TV 網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!