文档详情

吉林大学大型数据库设计与实现dba-08.ppt

发布:2025-06-11约6.42千字共48页下载文档
文本预览下载声明

ManagingTablespacesandDataFiles

ObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:DescribethelogicalstructureofthedatabaseCreatetablespacesChangethesizeoftablespacesAllocatespacefortemporarysegmentsChangethestatusoftablespacesChangethestoragesettingsoftablespacesImplementOracleManagedFiles

OverviewControlfilesDatafilesRedologfilesDatabase

DatabaseLogicalPhysicalTablespaceDatafileOSblockOracle

blockSegmentExtentDatabaseStorageHierarchy

SYSTEMandNon-SYSTEMTablespacesSYSTEMtablespace:CreatedwiththedatabaseContainsthedatadictionaryContainstheSYSTEMundosegmentNon-SYSTEMtablespaces:SeparatesegmentsEasespaceadministrationControlamountofspaceallocatedtoauser

CreatingTablespacesCREATETABLESPACEuserdata DATAFILE/u01/oradata/userdata01.dbfSIZE100MAUTOEXTENDONNEXT5MMAXSIZE200M;

SpaceManagementinTablespacesLocallymanagedtablespaces:FreeextentsrecordedinbitmapEachbitcorrespondstoablockorgroupofblocksBitvalueindicatesfreeorusedDictionary-managedtablespaces:DefaultmethodFreeextentsrecordedindatadictionarytables

LocallyManagedTablespacesReducedcontentionondatadictionarytablesNoundogeneratedwhenspaceallocationordeallocationoccursNocoalescingrequiredCREATETABLESPACEuserdataDATAFILE/u01/oradata/userdata01.dbfSIZE500MEXTENTMANAGEMENTLOCALUNIFORMSIZE256K;

DictionaryManagedTablespacesExtentsaremanagedinthedatadictionaryEachsegmentstoredinthetablespacecanhaveadifferentstorageclauseCoalescingrequiredCREATETABLESPACEuserdataDATAFILE/u01/oradata/userdata01.dbfSIZE500MEXTENTMANAGEMENTDICTIONARY DEFAULTSTORAGE(initial1MNEXT1M);

ChangingtheStorageSettingsALTERTABLESPACEuserdataMINIMUMEXTENT2M;ALTERTABLESPACEuserdataDEFAULTSTORAGE(INITIAL 2MNEXT 2MMAXEXTENTS 999);

UndoTablespaceUsedtostoreundosegmentsCannotcontainanyotherobjectsExtentsarelo

显示全部
相似文档