Oracle逻辑备份到NFS ORA-31641
1、1、问题现象
(1)创建逻辑备份目录
#su - oracle
$sqlplus / as sysdba
SQL>create directory bkdir as '/testnfs';
(2)确认管理理员目录
sql>select * from dba_directories;
注意:同时使用df查看操作系统是否存在,因为Oracle并不关心该目录是否存在,如果不存在,则出错
(3)给testuser用户赋予在指定目录的操作权限
sql>grant read,write on directory bkdir to testuser;
sql>exit
(4)导出数据
$expdp testuser/testuser@orcl schemas=testuser dumpfile=expdb.dmp DIRECTORY=bkdir;
提示以下内容
Export: Release 11.2.0.2.0 - Production on 星期五 4月 26 13:26:27 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORA-39001: 参数值无效
ORA-39000: 转储文件说明错误
ORA-31641: 无法创建转储文件 "/testnfs/expdb.dmp"
ORA-27054: 创建文件或文件驻留的 NFS 文件系统未使用正确的选项装载
Additional information: 5
Additional information: 18


2、2、问题分析
在OS上NFS NAS的一个卷,发现ORACLE 做EXPDP及RMAN(物理备份)时都不能直接写到上去,但EXP是可以的。后检查发现是ORACLE的一个小BUG,可以通过修改参数饶过去:
3、3、问题解决
SQL>alter system set event='10298 trace name context forever, level 32'scope= spfile ;
重