ORACLE调优性能.ppt

  1. 1、本文档共33页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ORACLE调优性能

Performance Tuning By Example Zhu Chao Chao_Ping@ How to use oracle Know The database How Oracle Store the data How Oracle Access the data How Oracle manage concurrency How Oracle Do Select/DML Know the application How application use the data Store/Manage the data as it is used How oracle store the data Data is stored in tables Heap table (Most commonly used) Partitioned table Index organized table Cluster Hash Cluster Index Materialized View External Tables How oracle access the data Single Table Access Path Full Table Scan ROWID unique scan Index unique scan Index range scan Index (fast) full scan Bitmap Index Index and-equal Table Join Hash Join Nested loop join Sort-merge join How oracle manage concurrency Row Level Lock SCN(System Change Number) and rollback segment Readers don’t block writers Writers don’t block readers Writers don’t block writers (not the same row) --Row Level Lock Support tens of thousands of users How Oracle process SQL Stage 1: Create a Cursor Stage 2: Parse the Statement (Most expensive step) Stage 3: Bind Any Variables Stage 4: Run the Statement (Most expensive step) Stage 5: Fetch Rows of a Query (can be expensive) Stage 6: Close the Cursor Optimizer Optimizer decide the SQL execution plan, which is critical to SQL performance. RBO (Rule Based Optimizer) Since oracle 5(maybe?) No change since oracle 7.3,desupported in oracle 10 Stable, generate the execution plan according fixed rules Not necessary good Stable Do not support new oracle features(like IOT, partition, materialized view,…) CBO (Cost based optimizer) Since oracle 7.3 Support all oracle features Better than RBO in most case, Can be bad in some case Choose the best execution plan according to its internal 算法 Can use event 10053 to find why oracle choose this Need to analyze schema to get the best execution plan SQL Tuning Requirements: Know How Oracle Store the data Know how oracle process SQL Know how oracle access the data Target: Use less resource, let oracle d

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档