Windows2003 + NFS For RMAN Backup standbydb
異地備份將WH DB backup 到CQ/LH 解決方案:
最終確認採用NFS For RMAN Backup standbydb
1、異地部署NFS Server 設定共享目錄
2、本地mount遠端目錄,執行rman備份指令碼(本策略部署在standbydb)
# cat /root/rmanbackup/mount_rman.sh
umount -l /mnt
mount -t nfs -o timeo=3,udp IP:/NFS_linux /mnt
su - oracle -c "sh /home/oracle/dba/rmanbackup/rman_backup_lv10.sh"
ping 127.0.0.1 -c 30
cp /u01/app/oracle/oradata/ygzhoudb/control01.ctl /mnt/fullbackup/ygzhoudb/`date +%Y%m%d%H%M%S`_control01.ctl
ping 127.0.0.1 -c 30
cd ~
umount /mnt
umount -l /mnt
mount -t nfs -o timeo=3,udp IP:/NFS_linux /mnt
su - oracle -c "sh /home/oracle/dba/rmanbackup/rman_backup_lv10.sh"
ping 127.0.0.1 -c 30
cp /u01/app/oracle/oradata/ygzhoudb/control01.ctl /mnt/fullbackup/ygzhoudb/`date +%Y%m%d%H%M%S`_control01.ctl
ping 127.0.0.1 -c 30
cd ~
umount /mnt
# cat /home/oracle/dba/rmanbackup/rman_backup_lv10.sh
ORACLE_HOME=/u01/app/oracle/product/11.2.0.;export ORACLE_HOME
ORACLE_SID=ygzhoudb;export ORACLE_SID
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
PATH=$ORACLE_HOME/bin:$PATH:.;export PATH
rman target / log/mnt/fullbackup/ygzhoudb/`date +%Y%m%d%H%M%S`_rmanbackup.log <run {
allocate channel db01 type disk ;
allocate channel db02 type disk ;
#allocate channel db03 type disk ;
ORACLE_SID=ygzhoudb;export ORACLE_SID
ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE
PATH=$ORACLE_HOME/bin:$PATH:.;export PATH
rman target / log/mnt/fullbackup/ygzhoudb/`date +%Y%m%d%H%M%S`_rmanbackup.log <
allocate channel db01 type disk ;
allocate channel db02 type disk ;
#allocate channel db03 type disk ;
#allocate channel db04 type disk ;
set limite allocate channel db01 kbytes 4000000;
set limite allocate channel db01 kbytes 4000000;
#set limite allocate channel db01 kbytes 4000000;
#set limite allocate channel db01 kbytes 4000000;
#set limite allocate channel db01 kbytes 4000000;
delete noprompt obsolete recovery window of 15 days;
backup incremental level 0 database format '/mnt/fullbackup/ygzhoudb/database_level0_%T_%U.bak';
#filesperset 1;
backup incremental level 0 database format '/mnt/fullbackup/ygzhoudb/database_level0_%T_%U.bak';
#filesperset 1;
backup archivelog all format '/mnt/fullbackup/ygzhoudb/archivelog_%T_%U.bak' filesperset 20;
}
}
exit;
EOF
EOF
以上為最終確定指令碼。
測試中遇到以下error,在備份32GB的datafile途中,自動斷開備份
Redo thread mounted by this instance: 1
Oracle process number: 451
Unix process pid: 31440, image: oracle@ygzhou(TNS V1-V3)
*** 2012-11-13 08:59:22.772
*** SESSION ID:(1231.30025) 2012-11-13 08:59:22.772
*** CLIENT ID:() 2012-11-13 08:59:22.772
*** SERVICE NAME:(SYS$USERS) 2012-11-13 08:59:22.772
*** MODULE NAME:(backup full datafile) 2012-11-13 08:59:22.772
*** ACTION NAME:(0000017 STARTED16) 2012-11-13 08:59:22.772
ORA-27052: unable to flush file data
Linux-x86_64 Error: 5: Input/output error
Additional information: 1
ORA-19510: failed to set size of 94333 blocks for file ''/mnt/fullbackup/ygzhoudb/database_20121113_vgnq6k3j_1_1.bak" (block si
ze=8192)
ORA-27059: could not reduce file size
Linux-x86_64 Error: 1: Operation not permitted
Additional information: 2
Oracle process number: 451
Unix process pid: 31440, image: oracle@ygzhou(TNS V1-V3)
*** 2012-11-13 08:59:22.772
*** SESSION ID:(1231.30025) 2012-11-13 08:59:22.772
*** CLIENT ID:() 2012-11-13 08:59:22.772
*** SERVICE NAME:(SYS$USERS) 2012-11-13 08:59:22.772
*** MODULE NAME:(backup full datafile) 2012-11-13 08:59:22.772
*** ACTION NAME:(0000017 STARTED16) 2012-11-13 08:59:22.772
ORA-27052: unable to flush file data
Linux-x86_64 Error: 5: Input/output error
Additional information: 1
ORA-19510: failed to set size of 94333 blocks for file ''/mnt/fullbackup/ygzhoudb/database_20121113_vgnq6k3j_1_1.bak" (block si
ze=8192)
ORA-27059: could not reduce file size
Linux-x86_64 Error: 1: Operation not permitted
Additional information: 2
將4通道更改為2通道、並設定備份集 < 4GB
懷疑NFS 單顆雙核CPU導致、後續將nfs server端半雙工1Gb網路卡切換為全雙工測試
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24867586/viewspace-749194/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rman backup script(引用)
- Rman backup standby databaseDatabase
- DP rman backup scripts
- oracle & NFS & backup & event & 10298OracleNFS
- Oracle 學習(Rman Backup)Oracle
- rman backup database force 功能Database
- hp-ux rman 使用nfsUXNFS
- V$RMAN_BACKUP_JOB_DETAILSAI
- RMAN cumulative and differential incremental backupREM
- linux 配置nfs(rman 備份)LinuxNFS
- How to use rman backup a noarchivelog databaseHiveDatabase
- oracle 11g rman backup scriptOracle
- 轉貼_RMAN-DBMS_BACKUP_RESTOREREST
- RMAN - backup archivelog all 與 backup database plus archivelog 區別HiveDatabase
- 理解RMAN backup database plus archivelog命令DatabaseHive
- NBU report error 6 when RMAN backupError
- RMAN : Consistent Backup, Restore and Recovery using RMAN (Doc ID 162855.1)REST
- Using V$BACKUP_ASYNC_IO / V$BACKUP_SYNC_IO to Monitor RMAN PerformanceORM
- How to restore and recover a database from an RMAN backup_881395.1RESTDatabase
- rman backup ENCRYPTION(備份加密特性)測試!加密
- RMAN backup validate database on databases in noarchivelog modeDatabaseHive
- rman backup as copy database format '/tmp/%U.dbf'DatabaseORM
- Backup And Recovery User's Guide-RMAN架構-RMAN庫(Repository)GUIIDE架構
- RMAN backup fails with Ora-00245 And Rman-08132 [ID 1365484.1]AI
- RMAN備份資料到NFS提示ORA-27054NFS
- Backup And Recovery User's Guide-RMAN架構-關於RMAN環境GUIIDE架構
- Rman Backup Failed With Error Rman-00600 [8201] (Doc ID 412786.1)AIError
- Using RMAN REPORT NEED BACKUP with Different Retention Policies
- RMAN Backup Shell Script Example (Doc ID 137181.1)
- 使用RMAN backup和restore方式部署物理備庫REST
- zt:Different type of RMAN backup compression in 11G
- NFS儲存rman備份時的mount選項NFS
- Backup And Recovery User's Guide-RMAN架構-RMAN命令列客戶端及RMAN通道(channel)GUIIDE架構命令列客戶端
- Backup And Recovery User's Guide-RMAN架構-RMAN通道-通道和裝置GUIIDE架構
- Backup And Recovery User's Guide-從RMAN開始-指令碼化RMAN操作GUIIDE指令碼
- Backup And Recovery User's Guide-從RMAN開始-概覽RMAN環境GUIIDE
- 理解RMAN backup database plus archivelog delete all input命令DatabaseHivedelete
- RMAN-06100: no channel to restore a backup or copy of datafileREST