1 环境信息
数据库版本:10GR2,11GR2
操作系统版本:CentOS 6.2
2 问题描述
RMAN备份目录原来为linux上面挂载NFS,改成linux挂载windows samba共享后,RMAN备份时报错,报错信息如下
input datafile fno=00035 name=/oradata/o122g4/web_tbs01.dbf
input datafile fno=00036 name=/oradata/o122g4/slcl_icp_upgrade_tbs01.dbf
input datafile fno=00037 name=/oradata/o122g4/incometest01.dbf
channel ch1: starting piece 1 at 31-MAY-13
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch1 channel at 05/31/2013 10:39:31
ORA-19504: failed to create file "/nfsbackup/o122g4/rman/2data_o122g4_20130531_142_1"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 22: Invalid argument
RMAN>
Recovery Manager complete.
3 解决方案为:
如果遇到这个报错需要关闭数据库异步IO ,异步IO操作在后台运行,IO操作和应用程序可以同时运行,提高了系统性能,因此禁用异步IO对性能应该有一些影响的,不过没有测试过异步IO和同步IO具体的性能差别多大.
3.1 具体操作如下:
sql> alter system set filesystemio_options=asynch scope=spfile;
如果是11g数据库需要修改disk_asynch_io为false,10g默认为false
sql> alter system set disk_asynch_io=false scope=spfile;
修改后重启数据库
sql> shutdown immediate;
sql> startup;
重启后再执行RMAN备份,问题解决
参考文档
[ID 464267.1]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21605631/viewspace-762945/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21605631/viewspace-762945/