版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Performance Tuning: Overview,Objectives,After completing this lesson, you should be able to do the following: Write appropriate tuning goals Apply the tuning methodology Balance performance and safety trade-offs Identify common tuning problems Log a performance Service Request with Oracle Support,Ge
2、neral Tuning Session,Tuning sessions have the same procedure: 1.Define the problem and state the goal. 2.Collect current statistics. 3.Consider some common performance errors. 4.Build a trial solution. 5.Implement and measure the change. 6.Decide: “Did the solution meet the goal?” No? Then go to ste
3、p 3 and repeat. Yes? Then create a new baseline.,Defining the Problem,To discover and define the problem: Listen to user feedback Check the alert log and trace files for errors Check the parameter file for any diagnostic or inappropriate parameter setting Check memory, I/O, and CPU usage. Identify p
4、rocesses with resource usage anomalies Identify and tune SQL statements that are heavy consumers of CPU or I/O Collect instance and operating system (OS) statistics,Setting the Priority,Choose the problem that has the greatest impact: Analyze system performance in terms of work done (CPU or service
5、time) versus time spent waiting for work (wait time). Determine which component consumes the greatest amount of time. Drill down to tune that component, if appropriate.,Tuning Methodology:Setting the Priority Example,Time Model System Stats DB/Inst: ORCL Snaps: 1-11 - Ordered by % of DB time desc, S
6、tatistic name Statistic Time (s) % of DB time - - - sql execute elapsed time 467.0 77.1 DB CPU 414.2 68.4 parse time elapsed 200.5 33.1 hard parse elapsed time 109.0 18.0 DB time 605.8,Common Tuning Problems,The most common tuning problems: SQL statements Session management Shared pool sizing and co
7、ntention Buffer cache sizing and contention Data block contention Redo log and redo buffer tuning Undo tuning I/O issues Locking issues,ADDM Tuning Session,ADDM tuning session has the same procedure as the general tuning session, but combines steps: 1.View the ADDM report. A.Collect current statisti
8、cs; compare with previous set. B.Compare to performance issues knowledge base. C.Define the problem and make recommendations. 2.Review recommendations. D.Build a trial solution. 3.Implement the recommendation. E.Implement and measure the change. 4.Review the next ADDM report. F.Decide: “Did the solu
9、tion meet the goal?”,Effective Tuning Goals,Effective tuning goals are: Specific Measurable Achievable,Tuning Objectives,The objectives of tuning are: Minimizing response time Increasing throughput Increasing load capabilities Decreasing recovery time,DB Time,DB Time = DB Wait Time + DB CPU Time,CPU
10、 and Wait Time Tuning Dimensions,Scalableapplication,Possiblyneeds SQLtuning,Needsinstance/RACtuning,CPUtime,Waittime,No gain achievedby addingCPUs/nodes,DB time = DB CPU time + DB wait time,Tuning Life Cycle Phases,Application life cycle can be divided into different phases: Application design and
11、development Testing: Database configuration Deployment: Adding a new application to an existing database Production: Troubleshooting and tuning,Tuning Steps During Life Cycle,1.Tune the design. 2.Tune the application. 3.Tune memory. 4.Tune I/O. 5.Tune contention. 6.Tune the operating system.,Applica
12、tion Design and Development,The application can be tuned even in the design and development phases by building and tuning test cases. Check normalization against major functions. Check data structures against access times. Look at points where processes are serialized. Tune the major reports. Tune t
13、he high-volume processes.,Testing: Database Configuration,The testing phase allows tuning at a deeper level: Check physical layout. Monitor for resource contention. Memory utilization Locks Disk hot spots Test for resource exhaustion.,Deployment,Deployment of: New application and database Take basel
14、ine. Monitor growth and performance. New application in existing database Take baseline before deployment. Take baseline after deployment. Compare baselines.,Production,Tuning is reactive. You need to know: What has changed? Where is the baseline?,Collecting a Baseline Set of Statistics,A baseline s
15、et of statistics is used to: Provide a set of statistics that are collected when the system is operating within the bounds set Compare the baseline statistics with current statistics Create a hypothesis about what has changed onthe system,Performance Versus Safety Trade-Offs,Factors that affect perf
16、ormance: Multiple control files Multiple redo log members in a group Frequent checkpointing Backing up data files Performing archiving Block check sums Number of concurrent users and transactions,Filing a Performance Service Request,File a Performance Service Request: Is the problem instancewide or
17、query specific? Identify the root cause. Provide Statspack or AWR reports, and OS statistics. Provide Remote Diagnostics Agent (RDA) reports. Provide SQL_TRACE reports.,RDA Report,Monitoring and Tuning Tool: Overview,Alert log,Trace files,Performance views,Optimizer statistics,SQL statistics,Base st
18、atistics,Histograms,Metrics,Service statistics,ASH,tkprof,trcsess,System statistics,Session statistics,Wait model,Time model,Alerts,ASH reports,Services,Monitoring and Tuning Tool: Overview,Statspack,AWR,EM performance pages,Metric baseline,EM policies,ADDM,Advisors,Direct SGA monitor,Hang analyzer,Baselines,AWR baselines,Compare periods,Services,Practice Overview: Write Tuning Goals,This practice covers the following topics: Transform a problem definition into a goal Make a goal measura
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026恒安标准人寿保险有限公司天津分公司招聘笔试参考题库及答案详解
- 2026陕西西安国际港务区新筑社区医院招聘39人笔试参考题库及答案详解
- 投资决策2026年投资咨询服务协议
- 商业伦理培训服务协议2026年版
- 线上心理咨询兼职合同2026版
- 内容审核与发布协议2026执行
- 市场定位与市场细分合作协议
- 2026江西吉安市泰和县新睿人力资源服务有限公司面向社会招聘项目制人员1人笔试模拟试题及答案详解
- 宁银消金2027届暑期实习生招募笔试备考试题及答案详解
- 2026陕西西安市第一医院康复医学科招聘医师3名笔试备考试题及答案详解
- 2026年宁波余姚市泗门镇人民政府公开招聘编外工作人员7人笔试参考试题及答案解析
- 凉山州2025年四川凉山州第一批引进人才(559人)笔试历年参考题库典型考点附带答案详解
- (2026年)检验检测机构资质认定“一单一库”的学习与解读(2026年实施)课件
- 24J113-1 内隔墙-轻质条板(一)
- 鞍区占位术后护理
- 脊髓损伤的并发症及预防
- 2024年贵州省中考理科综合试卷(含答案解析)
- 唐诗宋词人文解读智慧树知到期末考试答案章节答案2024年上海交通大学
- (高清版)WST 311-2023 医院隔离技术标准
- 初中地理(中考)会考模拟试题(五)
- 大班数学活动《10的分与合》课件
评论
0/150
提交评论