欢迎来到天天文库
浏览记录
ID:43095486
大小:221.50 KB
页数:29页
时间:2019-09-29
《ORACLE教程DBA_les05_undo》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ManagingUndoDataObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:DescribethepurposeofundodataImplementAutomaticUndoManagementCreateandconfigureundosegmentsObtainundosegmentinformationfromthedatadictionaryManagingUndoDataOverviewTwomethodsformanag
2、ingundodataexistsAutomaticUndoManagementManualUndoManagementThislessondiscussesAutomaticUndoManagementThetermundoreplaceswhatwasknowninpreviousversionsofOracleasrollbackUndoSegmentUpdatetransactionOldimageNewimageUndosegmentTableUndoSegments:PurposeTransactionrollb
3、ackTransactionrecoveryUndosegmentReadconsistencyReadConsistencyImageatstartofstatementNewimageTableSELECT*FROMtableTypesofUndoSegmentsSYSTEM:UsedforobjectsintheSYSTEMtablespaceNon-SYSTEM:Usedforobjectsinothertablespaces:AutoMode:RequiresanUNDOtablespaceManualMode:
4、Private:AcquiredbyasingleinstancePublic:AcquiredbyanyinstanceDeferred:Usedwhentablespacesaretakenofflineimmediate,temporary,orforrecoveryAutomaticUndoManagement:ConceptsUndodataismanagedusinganUNDOtablespaceYouallocateoneUNDOtablespaceperinstancewithenoughspacefor
5、theworkloadoftheinstance.TheOracleserverautomaticallymaintainsundodatawithintheUNDOtablespace.AutomaticUndoManagement:ConfigurationConfiguretwoparametersintheinitializationfile:UNDO_MANAGEMENTUNDO_TABLESPACECreateatleastoneUNDOtablespace.Initializationfileundo1db0
6、1.dbfUNDOTablespaceAutomaticUndoManagement:InitializationParametersUNDO_MANAGEMENT:SpecifieswhetherthesystemshoulduseAUTOorMANUALmode.UNDO_TABLESPACE:SpecifiesaparticularUNDOtablespacetobeused.UNDO_MANAGEMENT=AUTOUNDO_TABLESPACE=UNDOTBSAutomaticUndoManagement:UNDO
7、TablespaceYoumaycreatetheUNDOtablespacewiththedatabasebyaddingaclauseintheCREATEDATABASEcommandOrcreateitlaterbyusingtheCREATEUNDOTABLESPACEcommandCREATEDATABASEdb01...UNDOTABLESPACEundo1DATAFILE'undo1db01.dbf'SIZE20MAUTOEXTENDONCREATEUNDOTABLESPACEundo1DATAFILE'un
8、do1db01.dbf'SIZE20M;AutomaticUndoManagement:AlteringanUNDOTablespaceTheALTERTABLESPACEcommandcanmakechangestoUNDOtablespaces.Thefollowingexample
此文档下载收益归作者所有