oracle exp imp

本文介绍了一种在使用EXPDP进行数据备份时遇到的问题及解决方案。主要问题是由于CIFS挂载选项导致的数据泵作业异常终止。通过调整挂载选项解决了问题。
部署运行你感兴趣的模型镜像

impdp system/password directory=ABC TABLE_EXISTS_ACTION=replace dumpfile=test.dmp schemas=blogs logfile=impdp.log 



环境描述:

需要通过EXPDP将数据备份到远端的cifs设备上,但是在进行备份的时候,写入文件报错:

;;;
Export: Release 10.2.0.4.0 - 64bit Production on 星期二, 20 3月, 2012 3:30:01

Copyright (c) 2003, 2007, Oracle. All rights reserved.
;;;
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39097: Data Pump job encountered unexpected error -31643
ORA-39065: unexpected master process exception in FILE
ORA-31643: unable to close dump file "/data_bak/ftp_dir/system_full_data12-03-20.dmp"
ORA-19510: failed to set size of 1 blocks for file "/data_bak/ftp_dir/system_full_data12-03-20.dmp" (blocksize=4096)
ORA-27045: unable to close the file
Linux-x86_64 Error: 5: Input/output error
Additional information: 4
~

[@more@]

问题解决:

原始挂载方式:

sudo mount //cifshost/Ora_bak ./ftp_dir/ -o username=user,password=passwd,rw,file_mode=0777,dir_mode=0777,uid=500,gid=501 -t cif

由于cifs本身有对数据的缓存及优化,最终导致和expdp程序句柄操作存在冲突导致了程序执行异常;

新的挂载方式:

//cifshost/Ora_bak /data_bak/ftp_dir cifs username=user,password=passwd,directio,noperm,rsize=32768

,wsize=32768,rw,file_mode=0777,dir_mode=0777,uid=500,

gid=501,


您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值