文档详情

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

发布:2025-06-08约3.43千字共28页下载文档
文本预览下载声明

StorageStructureandRelationships

ObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:DescribethelogicalstructureofthedatabaseListthesegmenttypesandtheirusesListthekeywordsthatcontrolblockspaceusageObtaininformationaboutstoragestructuresfromthedatadictionaryListthecriteriaforseparatingsegments

OverviewDatabaseLogicalPhysicalTablespaceDatafileOSblockOracle

blockSegmentExtent

TypesofSegmentsTableClusterTable

partitionIndex

TypesofSegmentsIndex-organized

tableIndex

partitionUndo

segmentTemporary

segment

TypesofSegmentsLOB

segmentBootstrap

segmentNestedtable

StorageClausePrecedenceOracledefaultTablespaceSegment

ExtentAllocationandDeallocationAllocatedwhenthesegmentis:CreatedExtendedAlteredDeallocatedwhenthesegmentis:DroppedAlteredTruncated

UsedandFreeExtentsDatafileFreeextentUsedextentFileheader

DatabaseBlockMinimumunitofI/OConsistsofoneormoreOSblocksSetattablespacecreationDB_BLOCK_SIZEisthedefaultblocksize

DatabaseBlockContentsHeaderFreespaceData

BlockSpace

UtilizationParametersINITRANSMAXTRANSPCTFREEPCTUSED

DataBlockManagementTwomethodsareavailableformanagingdatablocks:AutomaticSegment-SpaceManagementManualConfiguration

AutomaticSegment-Space

ManagementItismethodofmanagingfreespaceinsidedatabasesegmentsTrackingin-segmentfreeandusedspaceisdoneusingbitmapsasopposedtofreelistsThismethodprovides:EaseofmanagementBetterspaceutilizationBetterperformanceforconcurrentINSERToperationsRestriction:CannotbeusedfortablespaceswhichwillcontainLOBs.

AutomaticSegment-Space

ManagementBitmapsegmentscontainabitmapthatdescribesthestatusofeachblockinthesegmentwithrespecttoitsavailablespace.Themapiscontainedinaseparatesetofblocksreferredtoasbitmappedblocks(BMBs).Wheninsertinganewrow,theserversearchesthemapforablockwithsufficientspace.Astheamountofspaceavailablei

显示全部
相似文档