ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 将linux数据库用rman备份到远端win共享目录

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

原创 Linux操作系统 作者:YallonKing 时间:2012-09-21 18:49:07 0 删除 编辑
将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博客 ” ,链接:https://blog.itpub.net/26143577/viewspace-744773/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-08-07

  • 博文量
    72
  • 访问量
    290050