前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用数据泵导出时遇到 ORA-27054 错误解决办法

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

作者头像
JiekeXu之路
发布2020-12-15 11:44:28
1.1K0
发布2020-12-15 11:44:28
举报
文章被收录于专栏:JiekeXu之路JiekeXu之路

今天使用数据泵导出数据时,由于源端、目标端不在同一网段,无法使用 scp 传输 dmp 文件,便在两端挂载了一个 NFS 文件系统。但是导出时遇到如下错误 ORA-27054 错误。

使用 expdp 语句如下:

代码语言:javascript
复制
expdp jieke/jieke schemas=hr directory=dumpdir dumpfile=hr.dmp LOGFILE=hr.log
代码语言:javascript
复制
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

原因:

代码语言:javascript
复制
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 时未加相关参数,需要追加参数:

代码语言:javascript
复制
rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0

解决办法:

改成如下

代码语言:javascript
复制
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"

代码语言:javascript
复制
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 文章解决。

代码语言:javascript
复制
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)

参考文档:

代码语言:javascript
复制
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)

好咯,今天的分享就到这里了,如果本文对您有一丁点儿帮助,请多支持“在看”与转发,不求小费了哪怕是一个小小的赞,您的鼓励都将是我熬夜写文章最大的动力,让我有一直写下去的动力,最后一起加油,奥利给!

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2020-11-25,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 JiekeXu之路 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档