Recovery Manager Maintenance TasksWord文档下载推荐.docx

上传人:b****2 文档编号:1466722 上传时间:2023-04-30 格式:DOCX 页数:29 大小:29.07KB
下载 相关 举报
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第1页
第1页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第2页
第2页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第3页
第3页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第4页
第4页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第5页
第5页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第6页
第6页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第7页
第7页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第8页
第8页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第9页
第9页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第10页
第10页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第11页
第11页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第12页
第12页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第13页
第13页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第14页
第14页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第15页
第15页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第16页
第16页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第17页
第17页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第18页
第18页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第19页
第19页 / 共29页
Recovery Manager Maintenance TasksWord文档下载推荐.docx_第20页
第20页 / 共29页
亲,该文档总共29页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

Recovery Manager Maintenance TasksWord文档下载推荐.docx

《Recovery Manager Maintenance TasksWord文档下载推荐.docx》由会员分享,可在线阅读,更多相关《Recovery Manager Maintenance TasksWord文档下载推荐.docx(29页珍藏版)》请在冰点文库上搜索。

Recovery Manager Maintenance TasksWord文档下载推荐.docx

SeeAlso:

OracleDatabaseBackupandRecoveryAdvancedUser'

sGuideformorein-depthinformationaboutmanagingtheRMANrepositorywhenusingarecoverycatalog

ManagingtheRMANRepositoryWithoutaRecoveryCatalog

TheauthoritativeRMANrepositoryisalwaysstoredinthedatabasecontrolfile.Therepositorycontentscanalsobestoredinarecoverycatalogdatabase,asanadjuncttotheinformationstoredinthecontrolfile.

WhileRMANisdesignedtoworkwithoutarecoverycatalog,ifyouchoosenottousearecoverycatalog,youmustperformsomeadditionaladministrativetasks.

OracleDatabaseAdministrator'

sGuideforaconceptualoverviewofthecontrolfileandmoredetailsaboutmanagingcontrolfiles.

BackingUpandRestoringtheControlFile

Ifyouarenotusingarecoverycatalog,thecontrolfileisthesolestoragefortheRMANrepository,soitisdoublyimportantthatyouprotectit.Maintainalternatecontrolfilesthroughmultiplexingoroperatingsystemmirroring,andbackupthecontrolfilefrequently.

ConfigureCONTROLFILEAUTOBACKUPtoONtoensureextraprotectionforyourcontrolfile.

Solongasacontrolfileautobackupisavailable,RMANcanrestoretheSPFILEandbackupcontrolfile,andmountthedatabase.Afterthecontrolfileismounted,youcanrestoretheremainderofthedatabase.

Notethat,ifyourestoreacontrolfilefromautobackup,anypersistentsettingsyousetwiththeCONFIGUREcommandwillreverttothevaluestheyhadatthetimeofthecontrolfileautobackup.YoushouldreviewthesettingswiththeSHOWALLafterrestoringthecontrolfile.

∙"

BackingUpControlFileswithRMAN"

tolearnaboutmanualandautomaticcontrolfilebackups

∙OracleDatabaseBackupandRecoveryAdvancedUser'

sGuidetolearnhowtorestoreadatabasewhenthecurrentcontrolfileandrecoverycatalogareunavailable

MonitoringtheOverwritingofControlFileRecords

Whenyoudonotusearecoverycatalog,thecontrolfileisthesolesourceofinformationaboutRMANbackups.Asyoumakebackups,Oraclerecordsthesebackupsinthecontrolfile.TopreventthecontrolfilefromgrowingwithoutboundtoholdRMANrepositorydata,recordscanbere-usediftheyareolderthanathreshholdyouspecify.

TheCONTROL_FILE_RECORD_KEEP_TIMEinitializationparameterdeterminestheminimumageindaysofarecordbeforeitcanbeoverwritten:

CONTROL_FILE_RECORD_KEEP_TIME=integer

Forexample,iftheparametervalueis14,thenanyrecordaged14daysandolderisacandidateforreuse.Informationinanoverwrittenrecordislost.Theoldestrecordavailableforre-usewillbeusedfirst.

WhenOracleneedstoaddnewRMANrepositoryrecordstothecontrolfile,butnorecordisolderthanthethreshhold,Oracleattemptstoexpandthesizeofthecontrolfile.Iftheunderlyingoperatingsystempreventstheexpansionofthecontrolfile(duetoadiskfullcondition,forinstance),Oracleoverwritestheoldestrecordinthecontrolfileandlogsthisactioninthealertlog.

ThedefaultvalueofCONTROL_FILE_RECORD_KEEP_TIMEis7days.Ifyouarenotusingarecoverycatalog,thensettheCONTROL_FILE_RECORD_KEEP_TIMEvaluetoslightlylongerthantheoldestfilethatyouneedtokeep.Forexample,ifyoubackupthedatabaseonceaweek,thenyouneedtokeepeverybackupatleastaweek.SetCONTROL_FILE_RECORD_KEEP_TIMEtoavaluesuchas10or14.

Caution:

Regardlessofwhetheryouusearecoverycatalog,neveruseRMANwhenCONTROL_FILE_RECORD_KEEP_TIMEissetto0.Ifyoudo,thenyoumaylosebackuprecords.

ManagingtheOverwritingofControlFileRecords:

Scenario

Assumethefollowingscenario:

∙Youdonotusearecoverycatalog.

∙CONTROL_FILE_RECORD_KEEP_TIMEissetto14.

∙Allrecordscurrentlyinthecontrolfilearebetween1and13daysold.

∙Thecontrolfileisatthemaximumsizepermittedbytheoperatingsystem.

Youmakeabackupofthedatabase.BecauseOraclecannotexpandthecontrolfilebeyondtheoperatingsystemfilesizelimit,itbeginsoverwritingrecordsinthecontrolfile,startingwiththoserecordsaged13days.Foreachrecordthatitoverwrites,itrecordsanentryinthealert.logsimilartotheoneshownhere:

kccwnc:

followingcontrolfilerecordwrittenover:

RECID#72Recno72Recordtimestamp

07/28/0022:

15:

21

Thread=1Seq#=3460

Backupsetkey:

stamp=372031415,count=17

Lowscn:

0x0000.3af33f36

07/27/0021:

00:

08

Nextscn:

0x0000.3af3871b

07/27/0023:

23:

54

Resetlogsscnandtime

scn:

0x0000.00000001

08/05/9910:

46:

44

Blockcount=102400Blocksize=512

Toguardagainstthistypeofscenario,usearecoverycatalog.Ifyoucannotusearecoverycatalog,thendothefollowingifpossible:

∙Storethecontrolfileinafilesystemratherthanrawdisk,sothatitcanexpandasneeded.

∙Monitorthealert.logtomakesurethatOracleisnotoverwritingcontrolfilerecords.

sGuideforaconceptualoverviewofcontrolfilerecordsandhowtheyarere-used

InteractionofFlashRecoveryAreaandCONTROL_FILE_RECORD_KEEP_TIME

Wheacontrolfilerecordcontaininginformationaboutafilecreatedintheflashrecoveryareaisabouttobereused(becausetherecordisolderthanCONTROL_FILE_RECORD_KEEP_TIME),ifthefileiseligiblefordeletionthenthedatabasewillattempttodeletethefilefromtheflashrecoveryarea.Otherwise,Oraclewillexpandthesizeofthecontrolfilesectioncontainingtherecordforthisfile,loggingtheexpansioninthealertlogwithamessagelikethisexample:

tringtoexpandcontrolfilesectionnnnnforOracleManagedFiles

wherennnnistherecordtypenumber.

IfOracleisunabletoexpandthecontrolfilesection,becausethecontrolfileisatthemaximumsizesupportedunderthehostoperatingsystem,youwillseethiswarninginthealertlog:

WARNING:

OracleManagedFilefilenameisunknowntocontrolfile.Thisisthe

resultoflimitationincontrolfilesizethatcouldnotkeepallrecoveryarea

files.

Thismeansthatthecontrolfilecannotholdallflashrecoveryareafilesneededtosatisfytheconfiguredretentionpolicy.

Thereareseveralwaystoavoidoralleviatethisproblem:

∙Useacontrolfileoflargerblocksize,preferablyonewith32Kblocksize.Toachievethis,youmustsettheSYSTEMtablespaceblocksizetobegreaterthanorequaltothecontrolfileblocksize,andyouneedtore-createthecontrolfileafterchangingDB_BLOCK_SIZE.

∙Makethefilesintheflashrecoveryareaeligiblefordeletion,bybackingthemuptotertiarystoragesuchastapewiththeRMANcommandBACKUPRECOVERYAREA,orbychangingtheretentionpolicytoashorterrecoverywindoworlowerdegreeofredundancy.

MaintainingtheRMANRepositoryintheControlFile

RMANprovidesseveralcommandsthatenableyoutocheckanddeleterecordsofbackupsaswellasphysicallyremovebackups.

CrosscheckingBackups

Toensurethatdataaboutbackupsintherecoverycatalogorcontrolfileissynchronizedwithcorrespondingdataondiskorinthemediamanagementcatalog,performacrosscheck.TheCROSSCHECKcommandoperatesonlyonfilesthatarerecordedintherecoverycatalogorthecontrolfile.

Thissectioncontainsthesetopics:

∙AboutRMANCrosschecks

∙CrosscheckingSpecificBackupSetsandCopies

∙CrosscheckingBackupsofSpecificDatabaseFiles

AboutRMANCrosschecks

CrosschecksupdateoutdatedRMANrepositoryinformationaboutbackupswhoserepositoryrecordsdonotmatchtheirphysicalstatus.Forexample,ifauserremovesarchivedlogsfromdiskwithanoperatingsystemcommand,therepositorystillindicatesthatthelogsareondisk,wheninfacttheyarenot.

Ifthebackupisondisk,thentheCROSSCHECKcommanddetermineswhethertheheaderofthefileisvalid.Ifthebackupisontape,thenthecommandsimplychecksthatthebackupexists.ThepossiblestatusvaluesforbackupsareAVAILABLE,UNAVAILABLE,andEXPIRED.Viewthestatusofbackupsinoneofthefollowinglocations:

∙TheLISTcommandoutput

∙V$BACKUP_FILES

∙VariousrecoverycatalogviewssuchasRC_DATAFILE_COPY,RC_ARCHIVED_LOG,andsoforth

Note:

TheCROSSCHECKcommanddoesnotdeleteoperatingsystemfilesorremoverepositoryrecords.YoumustusetheDELETEcommandfortheseoperations.

DeletingBackups"

tolearnhowtodeletefilesandupdaterepositoryrecords

∙OracleDatabaseRecoveryManagerReferenceforCROSSCHECKcommandsyntaxandadescriptionoftherepositorystatusvalues

CrosscheckingSpecificBackupSetsandCopies

YoucanusetheLISTcommandtoreportyourbackupsandthenusetheCROSSCHECKcommandtocheckthatthesefilesstillexist.TheDELETEEXPIREDcommanddeletesrepositoryrecordsforbackupsthatfailthecrosscheck.

Tocrosscheckspecifiedbackups:

1.IdentifythedesiredbackupsthatyouwanttocheckbyissuingaLISTcommand.Forexample,issue:

2.LISTBACKUP;

#listsallbackupsets,proxycopies,andimagecopies

3.

4.Checkwhetherthespecifiedbackups.Forexample,enter:

5.CROSSCHECKBACKUP;

#checksbackupsets,proxycopies,andimagecopies

6.CROSSCHECKCOPYOFDATABASE;

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

当前位置:首页 > 总结汇报 > 学习总结

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

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