将linux数据库用rman备份到远端win共享目录

将win下的共享目录挂载到linux下即可

#挂载windows共享目录
mount -o rw,uid=oracle,gid=oinstall,username=yallonking,password='oraking' //192.168.137.1/back_dir /tmp/back_dir

如果出现
[root@OELx64 ~]# mount -o rw,uid=oracle,gid=oinstall,username=yallonking,password='oraking' //192.168.137.1/back_dir /tmp/back_dir
mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

是因为文件过大导致,可以采取以下措施
1、将备份脚本修改,拆分备份文件

可采取以下备份脚本
run {
allocate channel c1 type disk maxpiecesize=512m;
allocate channel c2 type disk maxpiecesize=512m;
backup as compressed backupset database format '/tmp/back_dir/db_full_%U_%p_%T_%s.bak' tag 'dbl0';
backup current controlfile format '/tmp/back_dir/contorlfile_%T_%U_%s.ctlbak';
release channel c1;
release channel c2;
}

2、设置win下的注册表项(win7 用samba或者cifs)

Set “HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache” to “1″.
Set “HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size” to “3″.
Restart the “server” service.

#卸载共享目录
umount /tmp/back_dir

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26143577/viewspace-744773/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26143577/viewspace-744773/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值