【Oracle故障】ORA-27054 NFS file system where the file is created or resides is not mounted with correct options
在資料備份過程中,由於目標是使用NFS檔案系統,因此在匯入的時候遇到了BUG,報錯如下:
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/exp/bak/expdp_01.dmp"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 6
通過查詢metalink id :387700.1
文檔上說可能的問題有以下幾種:
a) The mount table (eg; /etc/mnttab) can be read to check the mount options
b) The NFS mount is mounted with the "hard" option
c) The mount options include rsize>=32768 and wsize>=32768
d) For RAC environments, where NFS disks are supported, the "noac" mount option is used.
文檔上指出通過設定event 10298事件可以避免,不過設定event 10298需要重啟資料庫生效,目前為生產環境,這方法不能用。
通過調整上述的參數,hard,rsize,wsize都不能解決。
最後檢查NFS的配置,發現用戶端的/etc/filesystems中未加入mount nfs檔案系統的條目
增加以下條目後,重新mount,解決。
#vi /etc/filesystems
/exp:
dev = /exp
vfs = nfs
nodename = 192.168.1.20
mount = true
options = rw,bg,hard,intr,proto=tcp,vers=3,rsize=65536,wsize=65536,timeo=600
account = false
#umount /oraexp
#mount /oraexp
建議大家以後遇到類似問題,先檢查/etc/filesystems檔案,這個問題都是由於大家都喜歡使用以下方式mount nfs導致。
mount -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=65536,wsize=65536,timeo=600 192.168.1.20:/exp /exp
//相關metalink 文檔如下:
ORA-19504 ORA-27054 Errors mounting NFS file system [ID 370513.1]
RMAN Backup Fails With RMAN-03009 ORA-19504 ORA-27054 NFS file system where the file is created or resides is not mounted with correct options [ID 1472448.1]
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options [ID 781349.1]
//另外設定10298的過程如下:
1) set the Event 10298 in the init file
event="10298 trace name context forever, level 32"
if you are using the spfile then the following can be done
SQL> alter system set event='10298 trace name context forever, level 32'scope= spfile ;
Once you set the above parameter restart the instance check as follows
SQL> select name, value from v$parameter where name = 'event';
NAME VALUE
---------- ------------------------------------------------------------
Event 10298 trace name context forever, level 32
1 row selected.
更多Oracle相關資訊見Oracle 專題頁面 http://www.bkjia.com/topicnews.aspx?tid=12