重温expdp时遇到ORA-27054的错误

OS:AIX 5300-09-05-0943

DB:Oracle 10.2.0.1

------------------------------------------------------------

今天在做数据迁移,为了减少落地次数,就挂了个NFS目录来用,结果不巧遇到ORA-27054的错误,虽然知道这错误和NFS的挂载参数有关,也知道是Bug,但是还是小折腾了一会。

最开始的时候直接挂载,没有带任何参数,自然就出错了:

Export: Release 10.2.0.1.0 - 64bit Production on Sunday, 31 March, 2013 16:48:17
Copyright (c) 2003, 2005, Oracle.  All rights reserved.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/dumpdir/ISTAML.20130331.dmp"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 6

于是按照要求,使用必须参数,重新挂载该目录:

[fxqdb1@root]# umount /dumpdir
[fxqdb1@root]# mount -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=65535,wsize=65535,timeo=600 10.0.0.2:/dumpdir /dumpdir
[fxqdb1@root]# mount
  node       mounted        mounted over    vfs       date        options      
-------- ---------------  ---------------  ------ ------------ --------------- 
         /dev/hd4         /                jfs2   Dec 18 20:20 rw,log=/dev/hd8 
         /dev/hd2         /usr             jfs2   Dec 18 20:20 rw,log=/dev/hd8 
         /dev/hd9var      /var             jfs2   Dec 18 20:20 rw,log=/dev/hd8 
         /dev/hd3         /tmp             jfs2   Dec 18 20:20 rw,log=/dev/hd8 
         /dev/hd1         /home            jfs2   Dec 18 20:21 rw,log=/dev/hd8 
         /proc            /proc            procfs Dec 18 20:21 rw              
         /dev/hd10opt     /opt             jfs2   Dec 18 20:21 rw,log=/dev/hd8 
         /dev/oradatalv   /oradata         jfs2   Dec 18 20:21 rw,log=/dev/hd8 
         /dev/dbbaklv     /dbbak           jfs2   Dec 18 20:21 rw,log=/dev/loglv00
         /dev/tivolilv    /tivoli          jfs2   Dec 18 20:21 rw,log=/dev/hd8 
         /dev/fxqdbbak    /fxqdbbak        jfs2   Dec 18 20:30 rw,log=/dev/loglv01
         /dev/fslv00      /ptf             jfs2   Dec 18 20:31 rw,log=/dev/hd8 
10.0.0.2 /dumpdir         /dumpdir         nfs3   Mar 31 16:51 bg,hard,intr,rsize=65535,wsize=65535,sec=sys,rw

以为会OK,结果还是报同样的错,最后没办法就把该NFS文件系统写入到系统的filesystems配置文件中,在重新挂载,问题搞定:



[fxqdb1@root]# smitty mknfsmnt
                                                               Add a File System for Mounting


Type or select values in entry fields.
Press Enter AFTER making all desired changes.
  
                                                        [Entry Fields]
* Pathname of mount point                            [/dumpdir]                                                                                            /
* Pathname of remote directory                       [/dumpdir]
* Host where remote directory resides                [10.0.0.2]
  Mount type name                                    []
* Security method                                    [sys]                                                                                                +
* Mount now, add entry to /etc/filesystems or both?   both                                                                                                +
* /etc/filesystems entry will mount the directory     no                                                                                                  +
   on system restart. 
* Mode for this NFS file system                       read-write                                                                                          +
* Attempt mount in foreground or background           background                                                                                          +
  Number of times to attempt mount                   []                                                                                                    #
  Buffer size for read                               [65535]                                                                                               #
  Buffer size for writes                             [65535]                                                                                               #
  NFS timeout. In tenths of a second                 []                                                                                                    #
  NFS version for this NFS filesystem                 any                                                                                                 +
  Transport protocol to use                           any                                                                                                 +
  Internet port number for server                    []                                                                                                    #
* Allow execution of setuid and setgid programs       yes                                                                                                 +
   in this file system?
* Allow device access via this mount?                 yes                                                                                                 +
* Server supports long device numbers?                yes                                                                                                 +
* Mount file system soft or hard                      hard                                                                                                +
  Minimum time, in seconds, for holding              [3]                                                                                                   #
   attribute cache after file modification
  Allow keyboard interrupts on hard mounts?           yes                                                                                                 +
  Maximum time, in seconds, for holding              [60]                                                                                                  #
   attribute cache after file modification
  Minimum time, in seconds, for holding              [30]                                                                                                  #
   attribute cache after directory modification
  Maximum time, in seconds, for holding              [60]                                                                                                  #
   attribute cache after directory modification
  Minimum & maximum time, in seconds, for            []                                                                                                    #
   holding attribute cache after any modification
  The maximum number of biod daemons allowed         [6]                                                                                                   #
   to work on this file system
* Use acls on this mount?                             no                                                                                                  +
  Number of NFS retransmits                          []                                                                                                    #
* Exchange POSIX pathconf information?                no                                                                                                  +
* Inherit group IDs?                                  no                                                                                                  +


或者

[fxqdb1@root]# /usr/sbin/mknfsmnt -f '/dumpdir' -d '/dumpdir' -h '10.0.0.2' -M 'sys''-B' '-a' -t 'rw' -w 'bg' -b '65535' -c '65535' '-Y' '-Z' '-X' '-H' '-j' '-q' '-g'                                                          

至此,问题解决,ORA-27054的其他参考信息,参见:

转到底部转到底部

2012-11-19BULLETINPUBLISHED2
没有任何注释注释 (0)为此文档评级通过电子邮件发送此文档的链接在新窗口中打开文档可打印页

In this Document

 Purpose
 Scope
 Details
 RAC including RACone and single instance RAC
  Single Instance (non-RAC)
 References

Applies to:

Oracle Server - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2]
Information in this document applies to any platform.
Oracle Clusterware, Oracle Real Application Clusters, NAS


Purpose

The purpose of this bulletin is to document the options with which the NAS systems should be mounted. This note does not cover the new dNFS feature that was introduced in 11g.

Scope

This document is relevant to all environments using Oracle Clusterware & RAC.

Details

RAC including RACone and single instance RAC

 

In the table below 
  • Binaries is the shared mount points where the Oracle Home and CRS_HOME is installed.
  • Datafiles includes Online Logs, Controlfile and Datafiles
  • nfsvers and vers are identical on those OS platforms that has nfsvers.  The ver option is an alternative to the nfsvers option. It is included for compatibility with other operating systems
  • Please note that the mount options on each of the following cells are applicable only to those type of files listed in the column heading.
  • For RMAN backup sets, image copies, and Data Pump dump files, the "NOAC" mount option should not be specified - that is because RMAN and Data Pump do not check this option and specifying this can adversely affect performance.

 

Operating System

Mount options for    Binaries ##

Mount options for Oracle DatafilesMount options for CRS Voting Disk and OCR
Sun Solaris *

rw,bg,hard,nointr,rsize=32768,
wsize=32768,proto=tcp,noac,

vers=3,suid

rw,bg,hard,nointr,rsize=32768,
wsize=32768,proto=tcp,noac,
forcedirectio, vers=3,suid
rw,bg,hard,nointr,rsize=32768,
wsize=32768,proto=tcp,vers=3,
noac,forcedirectio
AIX (5L) **

rw,bg,hard,nointr,rsize=32768,
wsize=32768,proto=tcp,

vers=3,timeo=600

cio,rw,bg,hard,nointr,rsize=32768,
wsize=32768,proto=tcp,noac,
vers=3,timeo=600

cio,rw,bg,hard,intr,rsize=32768,
wsize=32768,tcp,noac,
vers=3,timeo=600

HPUX 11.23 ***  --rw,bg,vers=3,proto=tcp,noac,
hard,nointr,timeo=600,
rsize=32768,wsize=32768,suid
rw,bg,vers=3,proto=tcp,noac,
forcedirectio,hard,nointr,timeo=600,
rsize=32768,wsize=32768,suid
rw,bg,vers=3,proto=tcp,noac,
forcedirectio,hard,nointr,timeo=600
,rsize=32768,wsize=32768,suid
WindowsNot SupportedNot SupportedNot Supported
Linux x86
#
****

rw,bg,hard,nointr,rsize=32768,
wsize=32768,tcp, vers=3,
timeo=600, actimeo=0

rw,bg,hard,nointr,rsize=32768,
wsize=32768,tcp,actimeo=0,
vers=3,timeo=600

rw,bg,hard,nointr,rsize=32768,
wsize=32768,tcp,noac,actimeo=0,
vers=3,timeo=600

Linux x86-64 #
****
rw,bg,hard,nointr,rsize=32768,
 wsize=32768,tcp,vers=3,
timeo=600, actimeo=0
rw,bg,hard,nointr,rsize=32768, 
wsize=32768,tcp,actimeo=0, 
vers=3,timeo=600
rw,bg,hard,nointr,rsize=32768, 
wsize=32768,tcp,noac,vers=3,
timeo=600,actimeo=0
Linux - Itaniumrw,bg,hard,nointr,rsize=32768, 
wsize=32768,tcp,vers=3,
timeo=600, actimeo=0
rw,bg,hard,nointr,rsize=32768, 
wsize=32768,tcp,actimeo=0, 
vers=3,timeo=600
rw,bg,hard,nointr,rsize=32768, 
wsize=32768,tcp,noac,vers=3,
timeo=600,actimeo=0

* NFS mount option “forcedirectio” is required on Solaris platforms when mounting the OCR/CRS files when using Oracle 10.1.0.4 or 10.2.0.2 or later (Oracle unpublished bug 4466428) 
** AIX is only supported with NAS on AIX 5.3 TL04 and higher with Oracle 10.2.0.1 and later (NetApp) 
*** NAS devices are only supported with HPUX 11.23 or higher ONLY 


# These mount options are for Linux kernels 2.6 and above. For older kernels please check Note 279393.1

Due to Unpublished bug 5856342, it is necessary to use the following init.ora parameter when using NAS with all versions of RAC on Linux (x86 & X86-64 platforms) until 10.2.0.4. This bug is fixed and included in 10.2.0.4 patchset.
filesystemio_options = DIRECTIO

 Single Instance (non-RAC)

Operating System

Mount options for BinariesMount options for Oracle Datafiles
Sun Solaris *
(8, 9, 10)

rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,proto=tcp,suid

rw,bg,hard,rsize=32768,wsize=32768,vers=3,[forcedirectio or llock],nointr,proto=tcp,suid
AIX (5L) **

rw,bg,hard,rsize=32768,wsize=32768,vers=3,intr,timeo=600,proto=tcp

rw,bg,hard,rsize=32768,wsize=32768,vers=3,cio,intr,timeo=600,proto=tcp

HPUX 11.23 ****rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp,suidrw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp, suid, forcedirectio
WindowsNot SupportedNot Supported
Linux x86
#
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcprw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp
Linux x86-64 #rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcprw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp
Linux - Itaniumrw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcprw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp

See above (after the configuration for RAC) for the legends

 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值