|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
甚至一个有经验的Windows管理者也可以轻松部署并开始学习它,而你不需投入一分钱来了解这个数据库。备份|数据|数据库
Oracle9i入手下手Rman供应plusarchivelog选项,极年夜的简化了Rman备份的操纵。
当你界说plusarchivelog语句时,RMAN实行以下步骤的操纵:
1。运转一个ALTERSYSTEMARCHIVELOGCURRENT命令
2。运转BACKUPARCHIVELOGALL命令。注重假如备份优化被启用,RMAN只会备份未备份过的日记
3。备份BACKUP命令中界说的文件
4。运转ALTERSYSTEMARCHIVELOGCURRENT命令
5。备份一切的剩下的回档日记
测试备份剧本:
backupdatabaseformat/opt/oracle/orabak/full_%d_%T_%splusarchivelogformat/opt/oracle/orabak/arch_%d_%T_%sdeleteallinput;
测试日记:
[oracle@jumperoracle]$rmantarget/RecoveryManager:Release9.2.0.4.0-ProductionCopyright(c)1995,2002,OracleCorporation.Allrightsreserved.connectedtotargetdatabase:CONNER(DBID=3152029224)RMAN>run{2>backupdatabase3>format/opt/oracle/orabak/full%d_%T_%s4>plusarchivelog5>format/opt/oracle/orabak/arch_%d_%T_%s6>deleteallinput;}Startingbackupat04-NOV-04currentlogarchivedusingtargetdatabasecontrolfileinsteadofrecoverycatalogallocatedchannel:ORA_DISK_1channelORA_DISK_1:sid=12devtype=DISKchannelORA_DISK_1:startingarchivelogbackupsetchannelORA_DISK_1:specifyingarchivelog(s)inbackupsetinputarchivelogthread=1sequence=163recid=6stamp=541351580channelORA_DISK_1:startingpiece1at04-NOV-04channelORA_DISK_1:finishedpiece1at04-NOV-04piecehandle=/opt/oracle/orabak/arch_CONNER_20041104_7comment=NONEchannelORA_DISK_1:backupsetcomplete,elapsedtime:00:00:02channelORA_DISK_1:deletingarchivelog(s)archivelogfilename=/opt/oracle/oradata/conner/archive/1_163.dbfrecid=6stamp=541351580Finishedbackupat04-NOV-04Startingbackupat04-NOV-04usingchannelORA_DISK_1channelORA_DISK_1:startingfulldatafilebackupsetchannelORA_DISK_1:specifyingdatafile(s)inbackupsetincludingcurrentSPFILEinbackupsetincludingcurrentcontrolfileinbackupsetinputdatafilefno=00004name=/opt/oracle/oradata/conner/eygle01.dbfinputdatafilefno=00001name=/opt/oracle/oradata/conner/system01.dbfinputdatafilefno=00002name=/opt/oracle/oradata/conner/undotbs01.dbfinputdatafilefno=00003name=/opt/oracle/oradata/conner/users01.dbfchannelORA_DISK_1:startingpiece1at04-NOV-04aaaachannelORA_DISK_1:finishedpiece1at04-NOV-04piecehandle=/opt/oracle/orabak/full_CONNER_20041104_8comment=NONEchannelORA_DISK_1:backupsetcomplete,elapsedtime:00:04:04Finishedbackupat04-NOV-04Startingbackupat04-NOV-04currentlogarchivedusingchannelORA_DISK_1channelORA_DISK_1:startingarchivelogbackupsetchannelORA_DISK_1:specifyingarchivelog(s)inbackupsetinputarchivelogthread=1sequence=164recid=7stamp=541351832channelORA_DISK_1:startingpiece1at04-NOV-04channelORA_DISK_1:finishedpiece1at04-NOV-04piecehandle=/opt/oracle/orabak/arch_CONNER_20041104_9comment=NONEchannelORA_DISK_1:backupsetcomplete,elapsedtime:00:00:02channelORA_DISK_1:deletingarchivelog(s)archivelogfilename=/opt/oracle/oradata/conner/archive/1_164.dbfrecid=7stamp=541351832Finishedbackupat04-NOV-04RMAN>
经由过程plusarchivelog,简化了备份操纵,同时确保必要的日记都被备份。
[oracle@jumperorabak]$ls-ltotal751628-rw-r-----1oracledba156160Nov415:26arch_CONNER_20041104_7-rw-r-----1oracledba60928Nov415:30arch_CONNER_20041104_9-rw-r-----1oracledba768679936Nov415:30full_CONNER_20041104_8
本文作者:
eygle,Oracle手艺存眷者,来自中国最年夜的Oracle手艺论坛itpub.
www.eygle.com是作者的团体站点.你可经由过程Guoqiang.Gai@gmail.com来接洽作者.接待手艺切磋交换和链接互换.
原文出处:
http://www.eygle.com/ha/Use.Rman.Plus.Archivelog.Option.htm
MySQLAB公司的一个高级开发者者表示,“这个特点使得MySQL可以根据你当前的系统的需要来进行调整。” |
|