暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片

使用数据泵导出时遇到 ORA-27054 错误解决办法

1931

今天使用数据泵导出数据时,由于源端、目标端不在同一网段,无法使用 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

image.png

原因:

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"

不过这个办法暂时没有测试,如果遇到此问题时,小伙伴们可以自行测试一下。

image.png

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)

————————————————————————————
公众号:JiekeXu之路
墨天轮:https://www.modb.pro/u/4347
CSDN:https://blog.csdn.net/JiekeXu
腾讯云:https://cloud.tencent.com/developer/user/5645107
————————————————————————————

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论