Backup and Recovery StrategiesWord文档格式.docx

上传人:b****4 文档编号:6379934 上传时间:2023-05-06 格式:DOCX 页数:19 大小:25.75KB
下载 相关 举报
Backup and Recovery StrategiesWord文档格式.docx_第1页
第1页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第2页
第2页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第3页
第3页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第4页
第4页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第5页
第5页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第6页
第6页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第7页
第7页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第8页
第8页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第9页
第9页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第10页
第10页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第11页
第11页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第12页
第12页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第13页
第13页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第14页
第14页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第15页
第15页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第16页
第16页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第17页
第17页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第18页
第18页 / 共19页
Backup and Recovery StrategiesWord文档格式.docx_第19页
第19页 / 共19页
亲,该文档总共19页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

Backup and Recovery StrategiesWord文档格式.docx

《Backup and Recovery StrategiesWord文档格式.docx》由会员分享,可在线阅读,更多相关《Backup and Recovery StrategiesWord文档格式.docx(19页珍藏版)》请在冰点文库上搜索。

Backup and Recovery StrategiesWord文档格式.docx

Todecideonbackupstrategies,startwithyourdatarecoveryrequirementsandyourdatarecoverystrategy.Eachtypeofdatarecoverywillrequirethatyoutakecertaintypesofbackup.

Failurescanrunthegamutfromusererror,datafileblockcorruptionandmediafailuretosituationslikethecompletelossofadatacenter.Howquicklyyoucanresumenormaloperationofyourdatabaseisafunctionofwhatkindsofrestoreandrecoverytechniquesyouincludeinyourplanning.Eachrestoreandrecoverytechniquewillimposerequirementsonyourbackupstrategy,includingwhichfeaturesoftheOracledatabaseyouusetotake,storeandmanageyourbackups.

Whenthinkingaboutrecoverystrategies,askyourselfquestionslikethese:

∙Ifadiskfailedanddestroyedsomeofthedatabasefiles,suchasdatafilesorredologs,howwouldyourecoverthelostfiles?

Asdescribedin"

PlanningaResponsetoMediaFailure:

RestoreandMediaRecovery"

youshouldbeabletohandlethelossofdatafiles,controlfiles,andonlineredologs.

∙Ifalogicerrorinanapplicationorausererrorcausedthelossofimportantdatafromoneorseveraltablesortablespaces,howcouldyourecoverthatdata,andwhatwouldhappentodatabaseupdatessincetheerror?

Couldyoudeterminethecauseoftheerror,topreventitfromhappeningagain?

PlanningaResponsetoUserError:

Point-in-TimeRecoveryandFlashbackFeatures"

techniquesavailabletoyouincludepoint-in-timerecoveryofthewholedatabaseoroneormoretablespaces,importingdatafromearlierlogicalexportswithoneofthedataimportutilities,andusingtheOracledatabase'

sflashbackfeatures.

∙Iftheinstancealertlogindicatesthatoneormoretablescontainscorruptblocks,howcanyourepairthecorruption?

Doesthetablespacehavetoremainavailableduringtherepair?

PlanningaResponsetoDatafileBlockCorruption:

BlockMediaRecovery"

theRMANBLOCKRECOVERcommandcanhelpyouinthissituation.Also,troubleshootrecoverywiththeSQL*PlusRECOVER...TESTcommand.

∙Iftheentiredatacenterisdestroyed,canyouperformdisasterrecovery?

Assumethatallyouhaveisanarchivetapecontainingbackups.Howwouldyourecoverthedatabase?

Howlongwouldthatrecoverytake?

∙Ifyouwerenotavailabletorecoveryourdatabase,couldsomeoneelserecoveritinyourabsence?

Areyourrecoveryproceduressufficientlyautomatedanddocumented?

Withtheseneedsinmind,decidehowyoucantakeadvantageoffeaturesrelatedtobackupandrecovery,andlookathoweachfeaturemeetssomerequirementofyourbackupstrategy.Forexample:

∙UsingRecoveryManagersimplifiesmostbackupandrecoveryoperationscomparedtouser-managedbackupandrecovery.Itautomatesmanagementofmostbackupfiles,includingthedeletionofbackupsandarchivedredologsfromdiskortapewhennolongerneededtomeetrecoverygoals.Itprovidesdetailedreportingonbackupactivities,canverifythatyouravailablebackupscanbeusedtorecoveryourdatabase.Finally,RMANmakespossiblemanyrecoverytechniquesnotavailableifyouareusinguser-managedbackupandrecovery,suchasincrementalbackups.

∙FlashbackDatabasewillhelpyourestoreadatabasetoaprevioustimemuchfasterthanmediarecovery.However,youmustdecideinadvancetokeepflashbacklogs,andkeepingflashbacklogsrequiresthatyouconfigureaflashrecoveryarea.

∙Blockmediarecoverymaybebetterthandatafilemediarecoveryifavailabilityiscritical.WhileblockmediarecoveryispossibleevenifyoudonotbaseyourbackupandrecoverystrategyonRMAN,RMAN-basedblockmediarecoverycanbeperformedmorequicklyandwithlesseffort.

Onceyoudecidewhichfeaturestouseinyourrecoverystrategy,youcanplanyourbackupstrategy,answeringthefollowingquestions,amongothers:

∙Howandwherewillyoustoreyourrecovery-relatedfiles?

Willyouuseaflashrecoveryarea?

WillyouuseanASMdiskgroup?

Willyoustorebackupsontapeorotherofflinestorage,oronlyondisk?

∙Atwhatintervalswillyoutakescheduledbackups?

Andwhatformofphysicalbackupswillyoutakeineachsituation?

∙Whatsituationsrequireyoutotakeadatabasebackupoutsideoftheregularschedule?

Sometimesyoumusttakeanunscheduledbackuptoensurethatyoucanrecoveryourdata,suchasafteranOPENRESETLOGSorafterchangestoyourdatabasesuchasNOLOGGINGoperationsthatdonotappearintheredolog.Youmayalsohavebusinessrequirementsthatrequirebackupsforauditingpurposesorotherreasonsnotrelatedtodatabaserecovery.

∙Howcanyouvalidateyourbackups,toensurethatyoucanrecoveryourdatabasewhennecessary?

∙Howdoyoumanagerecordsofyourbackups?

∙Doyouhavedetailedrecoveryplansthatcovereachtypeoffailure?

HowdoyourDBAscanexecutetheseplansinacrisis?

Canscriptsbewrittentoautomateexecutionoftheseplansinacrisis?

∙CanyouapplyOracledatabaseavailabilitytechnologies,suchasDataGuardorRealApplicationClusters,toimproveavailabilityduringadatabasefailure?

Howdoesusingtheseavailabilitytechnologiesaffectyourbackupandrecoverystrategy?

Theseareofcourseonlyafewoftheconsiderationsyoushouldtakeintoaccount.Availableresources(hardware,media,staff,budget,andsoon)willalsobefactorsinyourdecision.

PlanningDataRecoveryStrategy

Yourdatarecoverystrategyshouldincluderesponsestoanynumberofdatabasefailurescenarios.Thekeytoaneffective,efficientstrategyisenvisioningfailuremodes,matchingOracledatabaserecoverytechniquesandtoolstothefailuremodesinwhichtheyareuseful,andthenmakingsureyouincorporatethenecessarybackuptypestosupportthoserecoverytechniques.

Tohelpmatchfailuremodestorecoverytechniquesthatcanhelpresolvethem,refertothefollowingsections:

∙PlanningaResponsetoUserError:

Point-in-TimeRecoveryandFlashbackFeatures

∙PlanningaResponsetoMediaFailure:

RestoreandMediaRecovery

∙PlanningaResponsetoDatafileBlockCorruption:

BlockMediaRecovery

Point-in-TimeRecoveryandFlashbackFeatures

Yourbackupandrecoverystrategyshouldenableyoutohandlesituationsinwhichauserorapplicationmakesunwantedchangestodatabasedata,suchasdeletingthecontentsofatableormakingincorrectupdatesduringabatchrun.Thegoalinsuchacasewillbetorestoretheaffectedpartsofyourdatabasetotheirstatebeforetheusererror.

Dependingonthesituation,yourappropriateresponsewillbeoneofthefollowing:

∙Ifyouhaveperformedalogicalbackupbyexportingthecontentsoftheaffectedtables,sometimesyoucanimportthedatabackintothetable.Thistechniquepresumesthatyouareregularlyexportinglogicalbackupsofyourdata,andthatanychangesbetweenexportsareunimportant.

∙Youcanperformpoint-in-timerecovery,bringingonetablespaceorthewholedatabasebacktoitsstatebeforethetimeoftheerror.Ineithercase,youneedbackupsfrombeforethetimeoftheerror,plustheredologsfromthetimeofthebackuptothetimeoftheerror.

Note:

Oracle'

sFlashbackTechnologyprovidesfasterandlessdisruptivealternativestomediarecoveryinmanycircumstances.

∙OracleFlashbackDatabaseisaphysical-levelrecoverymechanismsimilartomediarecovery,butgenerallyfasterandnotrequiringtherestoreofdatafrombackup.

∙OracleFlashbackTableandOracleFlashbackDropworkatthelogicallevel,undoingunwantedchangestotables,includingreversingtheeffectsofDROPTABLEstatements.

∙OracleFlashbackQueryandOracleFlashbackVersionQueryareusefulinviewingpastcontentsoftablesandinvestigatinghowandwhenlogicalcorruptionsaffectedyourdatabase.

InformationaboutthesefeaturesiscollectedinOracleDatabaseBackupandRecoveryAdvancedUser'

sGuide.Thisdocumentwillalludetosuchfeatureswheretheycanbehelpfulandprovidepointersformoreinformation.Familiarizeyourselfwiththesefeaturesbeforeplanningyourbackupandrecoverystrategy,becauseyoumayfindthattheycanbequitevaluableandrequirelimitedadvancedplanning.

RestoreandMediaRecovery

AmediafailureoccurswhenaproblemexternaltothedatabasepreventsOraclefromreadingfromorwritingtoafileduringdatabaseoperations.Typicalmediafailuresincludephysicalfailures,suchasheadcrashes,andtheoverwriting,deletionorcorruptionofadatabasefile.Mediafailuresarelesscommonthanuserorapplicationerrors,butyourbackupandrecoverystrategyshouldprepareforthem.

Thetypeofmediafailuredeterminestherecoverytechniquetouse.Forexample,thestrategyyouusetorecoverfromacorrupteddatafileisdifferentfromthestrategyforrecoveringfromthelossofthecontrolfile.

Example:

OnlineRedoLogRecovery

Themethodofrecoveryfromlossofallmembersofanonlineloggroupdependsonanumberoffactors,suchas:

∙Thestateofthedatabase(open,crashed,closedconsistently,andsoon)

∙Whetherthelostredologgroupwascurrent

∙Whetherthelostredologgroupwasarchived

Forexample:

∙Ifyoulosethecurrentgroup,andthedatabaseisnotclosedconsistently(eitheritisopen,orithascrashed),thenyouwillhavetorestorean

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2