版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
FollowingaTuningMethodologyObjectivesAftercompletingthislesson,youshouldbeabletodothefollowing:DetermineperformanceproblemsManageperformanceDescribetuningmethodologiesIdentifygoalsfortuningDescribeautomaticSQLtuningfeaturesListmanualSQLtuningstepsPerformanceProblemsInadequateconsumableresourcesCPUI/OMemory(maybedetectedasanI/Oproblem)DatacommunicationsresourcesHigh-loadSQLContentionFactorstoBeManagedSchemaDatadesignIndexesApplicationSQLstatementsProceduralcodeInstanceDatabaseUserexpectationsHardwareandnetworktuningFullNotesPageTuningGoalsReducetheresponsetimeReduceresourceusageFullNotesPageOverviewofSQLTuning1. Identifycausesofpoorperformance.2. IdentifyproblematicSQL.Automatic:ADDM,TopSQLManual:V$views,statspack3. Applyatuningmethod.ManualtuningAutomaticSQLtuning4. Implementchangesto:SQLstatementconstructsAccessstructuressuchasindexesIdentifyingHigh-LoadSQLIdentifyhigh-loadorproblematicSQLDynamicperformanceviewsStatspackADDMTopSQLreportManualTuning1. Gatherinformationaboutthereferencedobjects.2. Gatheroptimizerstatistics.3. Reviewexecutionplans.4. RestructureSQLstatements.5. Restructureindexesandcreatematerializedviews.6. Maintainexecutionplans.GatherInformationAbout
ReferencedObjectsSQLtextStructureoftablesandindexesOptimizerstatisticsViewsOptimizerplan:currentandpriorGatheringOptimizerStatisticsGatherstatisticsforalltables.Gathernewstatisticswhenexistingstatisticsbecomestale.FullNotesPageReviewingtheExecutionPlanDrivingtablehasthebestfilter.Fewestnumberofrowsarebeingreturnedtothenextstep.Thejoinmethodisappropriateforthenumberofrowsbeingreturned.Viewsareusedefficiently.TherearenounintentionalCartesianproducts.Eachtableisbeingaccessedefficiently.ExaminethepredicatesintheSQLstatementandthenumberofrowsinthetable.Afulltablescandoesnotmeaninefficiency.FullNotesPageRestructuringtheSQLStatementsComposepredicatesbyusingANDand=.AvoidtransformedcolumnsintheWHEREclause.Avoidmixed-modeexpressionsandbewareofimplicittypeconversions.WriteseparateSQLstatementsforspecifictasksanduseSQLconstructsappropriately.UseEXISTS
orIN
forsubqueriesasrequired.Cautiouslychangetheaccesspathandjoinorderwithhints.FullNotesPageRestructuringtheIndexesRemoveunnecessaryindexestospeedtheDML.Indextheperformance-criticalaccesspaths.Reordercolumnsinexistingconcatenatedindexes.Addcolumnstotheindextoimproveselectivity.Createappropriateindexesbasedonusagetype:B*treeBitmapBitmapjoinConcatenatedConsiderindex-organizedtables.MaintainingExecutionPlansOverTimeStoredoutlinesStoredstatisticsLockingstatisticsAutomaticSQLTuningAutomaticSQLtuningfacilitatesthesesteps:Gatherinformationonthereferencedobjects.Verifyoptimizerstatistics.Reviewexecutionplans.RestructureSQLstatements.Restructureindexesandcreatematerializedviews.Maintainexecutionplans.FourtypesofanalysisareperformedinautomaticSQLtuning:StatisticsanalysisSQLprofilingAccesspathanalysisSQLstructureanalysisFullNotesPageAutomaticTuningMechanismsYoucanperformautomaticSQLtuningusing:SQLTuningAdvisorSQLAccessadvisorSQLTuningAdvisorTheSQLTuningAdvisordoesthefollowing:Acceptsinputfrom:AutomaticDatabaseDiagnosticMonitor(ADDM)AutomaticWorkloadRepository(AWR)CursorcacheCustomSQLasdefinedbytheuserProvides:RecommendationsRationaleExpectedbenefitsSQLcommandsforimplementingtherecommendationsSQLAccessAdvisorTheSQLAccessAdvisordoesthefollowing:Providescomprehensiveadviceonschemadesignbyacceptinginputfrom:CursorcacheAutomaticWorkloadRepository(AWR)User-definedworkloadHypotheticalworkloadifaschemacontainsdimensionsorprimary/foreignkeyrelationshipsAnalyzestheentireworkloadandrecommends:CreatingnewindexesasneededDroppinganyunusedindexesCreatingnewmaterializedviewsandmaterializedviewlogsSummaryInthislesson,youshouldhavelearnedhowto:ManageperformanceStartearly;beproactiveSetmeasurableobjectivesMonitorrequirementscomplianceHandleexceptionsandchangesIdentifyperformanceproblemsInadequateconsumableresourcesInadequatedesignresourcesCriticalresourcesExcessivedemandSummaryInthislesson,you
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 煮呢機(jī)擋車(chē)工崗前基礎(chǔ)在崗考核試卷含答案
- 氧化鎢制備工班組管理能力考核試卷含答案
- 橋梁工程員工培訓(xùn)
- 老年人入住老人家屬聯(lián)系制度
- 酒店客房?jī)r(jià)格調(diào)整制度
- 酒店財(cái)務(wù)報(bào)銷(xiāo)審批制度
- 超市庫(kù)存管理及盤(pán)點(diǎn)制度
- 2025-2026學(xué)年北京市通州區(qū)高三(上)期末語(yǔ)文試卷
- 農(nóng)村舊房改造合同協(xié)議書(shū)
- 活產(chǎn)概念培訓(xùn)課件
- 干細(xì)胞臨床研究:知情同意的倫理審查要點(diǎn)
- 檢測(cè)實(shí)驗(yàn)室安全管理與操作規(guī)程
- 2025云南保山電力股份有限公司招聘(100人)筆試歷年參考題庫(kù)附帶答案詳解
- (新教材)2026年人教版八年級(jí)下冊(cè)數(shù)學(xué) 21.1 四邊形及多邊形 課件
- 教師職業(yè)行為規(guī)范手冊(cè)
- 急性胸痛患者的快速識(shí)別與護(hù)理配合
- 法律研究與實(shí)踐
- 《智能物聯(lián)網(wǎng)技術(shù)與應(yīng)用》課件 第八章 數(shù)字孿生技術(shù)
- 單招第四大類考試試題及答案
- 《建設(shè)工程總承包計(jì)價(jià)規(guī)范》
- 高考數(shù)學(xué)尖子生強(qiáng)基計(jì)劃講義+強(qiáng)基真題解析 專題06 導(dǎo)數(shù)的應(yīng)用(解析版)
評(píng)論
0/150
提交評(píng)論