其他
使用数据泵导出时遇到 ORA-27054 错误解决办法
作者 | JiekeXu
来源 | JiekeXu之路(ID: JiekeXu_IT)
转载请联系授权 | (微信ID:xxq1426321293)
大家好,我是 JiekeXu,很高兴又和大家见面了,今天分享一篇案例 使用数据泵导出时遇到 ORA-27054 错误解决办法。本文首发于微信公众号【JiekeXu之路】,欢迎点击上方蓝字关注我,标星或置顶,更多干货第一时间到达!
今天使用数据泵导出数据时,由于源端、目标端不在同一网段,无法使用 scp 传输 dmp 文件,便在两端挂载了一个 NFS 文件系统。但是导出时遇到如下错误 ORA-27054 错误。
使用 expdp 语句如下:
expdp jieke/jieke schemas=hr directory=dumpdir dumpfile=hr.dmp LOGFILE=hr.log
Export: Release 11.2.0.3.0 - Production on Wed Nov 25 18:34:40 2020
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/backup/jiekexu/jiekexu_full_NEW_01.dmp"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 5
Additional information: 18
原因:
From IBM AIX documentation, it is clear that all mount point information is supposed to be present in the '/etc/filesystems' file located on the system.
When mount information is not present in '/etc/filesystems' file it can lead to abnormalities.
从IBM AIX文档中可以清楚地看到,所有挂载点信息都应该出现在系统上的'/etc/filesystems'文件中。
如果挂载信息没有出现在'/etc/filesystems'文件中,可能会导致异常。
文件夹 MOUNT NFS 时未加相关参数,需要追加参数:
rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0
解决办法:
改成如下
mount -t nfs -o rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0 10.10.10.10:/oracle/backup/ /backup
则不会出现问题了。
在 MOS 文档中,查到一样的错误,也可以修改参数文件 init.ora
event="10298 trace name context forever, level 32"
sql> alter system set events '10298 trace name context forever, level 32';
or
sql> alter system set events '10298 trace name context forever, level 32' scope=spfile;
不过这个办法暂时没有测试,如果遇到此问题时,小伙伴们可以自行测试一下。
MOS 上说此问题一般出现在 10g、11g 中,在实际中也是 Release 11.2.0.3.0 、 Release 10.2.0.5.0 均遇到了此错误。如果不是以上问题,可查看参考文档中其余三篇 Doc 文章解决。
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
IBM AIX on POWER Systems (64-bit)
参考文档:
Errors ORA-31640 ORA-27054 Encountered With DataPump Import (IMPDP) Involving NFS (Doc ID 462652.1)
ORA-19504 ORA-27054 Errors mounting NFS file system (Doc ID 370513.1)
Intermittent ORA-27054 Writing To NFS (Control File Backups, Exports) (Doc ID 2302321.1)
ORA-27054 ERRORS WHEN RUNNING RMAN WITH NFS (Doc ID 387700.1)
好咯,今天的分享就到这里了,如果本文对您有一丁点儿帮助,请多支持“在看”与转发,不求小费了哪怕是一个小小的赞,您的鼓励都将是我熬夜写文章最大的动力,让我有一直写下去的动力,最后一起加油,奥利给!
————————————————————————————