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

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

JiekeXu之路 2020-11-26
814

作者 | 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 2020Copyright (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 ProductionWith the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,Data Mining and Real Application Testing optionsORA-39000: bad dump file specificationORA-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 optionsAdditional information: 5Additional 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 laterOracle Database Exadata Cloud Machine - Version N/A and laterOracle Database Exadata Express Cloud Service - Version N/A and laterOracle Cloud Infrastructure - Database Service - Version N/A and laterIBM 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
      ————————————————————————————


      Oracle 12c 及以上版本补丁更新说明及下载方法(收藏版)

      案例|RAC 添加表空间误将数据文件放本地处理办法

      11g RAC 在线存储迁移实现 OCR 磁盘组完美替换

      震惊:Oracle 11gR2 RAC ADG 并没有高可用

      如何通过 Shell 监控异常等待事件和活跃会话 

      我的 OCM 之路|书写无悔青春追梦永不止步

      Oracle 19c 之多租户 PDB 连接与访问(三)

      Oracle 12C 最新补丁下载与安装操作指北

      DBA 常用的软件工具有哪些(分享篇)?

      深入了解 Oracle Flex ASM 及其优点

      Oracle 11g 临时表空间管理

      Oracle 每日一题系列合集

      一键三连分享、在看与点赞”,给我充点儿电吧~
      文章转载自JiekeXu之路,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

      评论