將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
#掛載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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用RMAN備份資料庫資料庫
- 利用RMAN備份重建資料庫資料庫
- oracle資料庫使用rman備份指令碼Oracle資料庫指令碼
- 遠端備份資料庫和檔案的方法資料庫
- NAS如何遠端備份資料
- RMAN備份恢復典型案例——資料庫卡頓資料庫
- WINDOWS自動打包目錄指令碼 複製到遠端備份伺服器儲存Windows指令碼伺服器
- 如何將Docker中GitLab資料備份到宿主Linux上DockerGitlabLinux
- 在DG備庫備份資料庫並恢復到一個主機上,報錯RMAN-06820資料庫
- 使用 SSHFS 將遠端伺服器目錄掛載到 Windows 本地伺服器Windows
- 資料庫定時備份linux篇資料庫Linux
- 帝國CMS備份資料壓縮存放目錄
- innobackupex遠端備份
- SQLServer遠端備份SQLServer
- 【RMAN】RMAN備份至ASMASM
- Windows oracle 11g rman備份恢復到linux系統WindowsOracleLinux
- Linux CentOS更改MySQL資料庫目錄位置LinuxCentOSMySql資料庫
- 【RMAN】在備庫執行rman備份時報錯RMAN-06820 ORA-17629
- Linux基礎命令---mysqldump資料庫備份LinuxMySql資料庫
- 資料庫備份資料庫
- 透過搭建恢復目錄實現RMAN異地備份和恢復
- 用rman遷移資料庫資料庫
- ORACLE DG從庫 Rman備份恢復Oracle
- RMAN備份概述
- 【RMAN】RMAN的備份保留策略
- linux實現mysql資料庫每天自動備份定時備份LinuxMySql資料庫
- 企業網盤伺服器資料異地備份、遠端備份、增量備份解決方案伺服器
- 快速實現本地資料備份與FTP遠端資料遷移FTP
- 在Linux中,如何備份一個資料庫?Linux資料庫
- RMAN備份恢復典型案例——RMAN備份&系統變慢
- mysql 資料庫 備份MySql資料庫
- 資料庫備份策略資料庫
- MongoDB資料庫備份MongoDB資料庫
- 使用Xtrabackup遠端備份MysqlMySql
- RMAN備份進度
- rman 備份指令碼指令碼
- RMAN的備份原理
- oracle資料庫備份之exp增量備份Oracle資料庫
- Linux下MySQL資料庫的備份與恢復LinuxMySql資料庫