欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程是通过网络精心收集筛选的最优节选:“【oracle备份ora】Oracle逻辑备份到NFS ORA-31641-31641--考试-教育-母婴”,请注意:文中所谈及的内容不代表本站的真正观点,也请不要相信各种联系方式。下面是关于网络上【oracle备份ora】Oracle逻辑备份到NFS ORA-31641-31641--考试-教育-母婴的整理详细信息
操作前的准备
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、问题分析
在OS上NFS NAS的一个卷,发现ORACLE 做EXPDP及RMAN(物理备份)时都不能直接写到上去,但EXP是可以的。后检查发现是ORACLE的一个小BUG,可以通过修改参数饶过去:
3、问题解决
SQL>alter system set event='10298 trace name context forever, level 32'scope=spfile ;
重
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
