欢迎来到天天文库
浏览记录
ID:6722759
大小:69.50 KB
页数:8页
时间:2018-01-23
《3-2.模式对象管理(索引)》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、SRC:Oracle8iAdministrator’sGuide(14)ManagingIndexes·GuidelinesforManagingIndexes·CreatingIndexes·AlteringIndexes·MonitoringSpaceUseofIndexes·DroppingIndexesGuidelinesforManagingIndexeslOracleprovidesseveralindexingschemes:lB*-treeindexes(currentlythemostcommon)lB*-treeclusterindexeslhashclu
2、sterindexeslreversekeyindexeslbitmapindexeslfunction-basedindexesldomainindexeslIndexesarelogicallyandphysicallyindependentofthedataintheassociatedtable.lOracleautomaticallyreflectschangestodata,suchasaddingnewrows,updatingrows,ordeletingrows,inallrelevantindexeswithnoadditionalactionbyuser
3、s.CreateIndexesAfterInsertingTableDatalYoushouldcreateanindexforatableafterinsertingorloadingdata(viaSQL*LoaderorImport)intothetable.lItismoreefficienttoinsertrowsofdataintoatablethathasnoindexesandthencreatetheindexesforsubsequentaccess.lYoumustalsocreatetheindexforaclusterbeforeinsertinga
4、nydataintothecluster.lIftheindexisextremelylarge,youmaywanttoperformthefollowingtasks.lToManageaLargeIndex:1.Createanewtemporarysegmenttablespace.2.Altertheindexcreator’stemporarysegmenttablespace.3.Createtheindex.4.Removethetemporarysegmenttablespaceandre-specifythe8creator’stemporarysegme
5、nttablespace,ifdesired.1.LimittheNumberofIndexesperTablelThereisatrade-offbetweenthespeedofretrievingdatafromatableandthespeedofupdatingthetable.SpecifyTransactionEntryParameterslByspecifyingtheINITRANSandMAXTRANSparametersduringthecreationofeachindex,youcanaffecthowmuchspaceisinitiallyandc
6、aneverbeallocatedfortransactionentriesinthedatablocksofanindex’ssegment.SpecifyIndexBlockSpaceUselWhenanindexiscreatedforatable,datablocksoftheindexarefilledwiththeexistingvaluesinthetableuptoPCTFREE.EstimateIndexSizeandSetStorageParameterslThemaximumsizeofasingleindexentryisapproximatelyon
7、e-halfthedatablocksize.Aswithtables,youcanexplicitlysetstorageparameterswhencreatinganindex.SpecifytheTablespaceforEachIndexlIndexescanbecreatedinanytablespace.Anindexcanbecreatedinthesameordifferenttablespaceasthetableitindexes.lIfyouusedifferenttablesp
此文档下载收益归作者所有