Cost Based Optimizer CBO: Configuration Roadmap
|
|
- Jean Jacobs
- 5 years ago
- Views:
Transcription
1 Cost Based Optimizer CBO: Configuration Roadmap Christian Antognini Sandro Crepaldi DOAG Regionaltreffen Hamburg/Nord , Hamburg
2 Disclaimer > The CBO changes from release to release > It s difficult to give general advice about many releases > Therefore, this presentation focuses on the most important versions at present» Oracle9i Release 2» Oracle 10g Release 1 > When information applies to only one version, one of the following icons will be used CBO: A Configuration Roadmap
3 Correctly configuring the CBO (1) > At least since Oracle9i the CBO works well, i.e. it generates good execution plans for most SQL statements > This is only true when» It is correctly configured» The database has been designed to take advantage of all its features > Correctly configuring the CBO is not an easy job This is no good reason for not doing it however! CBO: A Configuration Roadmap
4 Correctly configuring the CBO (2) > There is no single configuration that is good for every system» Each application has its own requirements» Each system has its own characteristics > Therefore, I m not able to provide you with the magic configuration > I can only show you how I proceed to do such a configuration CBO: A Configuration Roadmap
5 Configuration = INIT.ORA parameters + statistics > Statistics» Object statistics» System statistics > Basic» OPTIMIZER_MODE» OPTIMIZER_FEATURES_ENABLE» OPTIMIZER_DYNAMIC_SAMPLING» OPTIMIZER_INDEX_COST_ADJ» OPTIMIZER_INDEX_CACHING > Query transformation» QUERY_REWRITE_ENABLED» QUERY_REWRITE_INTEGRITY» STAR_TRANSFORMATION_ENABLED > Memory» WORKAREA_SIZE_POLICY» PGA_AGGREGATE_TARGET» HASH_AREA_SIZE» SORT_AREA_SIZE» BITMAP_MERGE_AREA_SIZE > Miscellaneous» DB_FILE_MULTIBLOCK_READ_COUNT» CURSOR_SHARING» SKIP_UNUSABLE_INDEXES» PARALLEL_*» Many undocumented parameters CBO: A Configuration Roadmap
6 Set the right parameter! (1) > Each INIT.ORA parameter has been introduced for a specific reason! > Understanding how it changes the behavior of the CBO is essential > Don t tweak the configuration randomly, instead» Understand the current situation» Define the goal to be achieved» Find out which parameter should be changed to achieve the goal CBO: A Configuration Roadmap
7 Choose the right tool! CBO: A Configuration Roadmap
8 Set the right parameter! (2) OPTIMIZER_FEATURES_ENABLED DB_FILE_MULTIBLOCK_READ_COUNT system statistics OPTIMIZER_INDEX_COST_ADJ OPTIMIZER_INDEX_CACHING object statistics OPTIMIZER_DYNAMIC_SAMPLING PGA_AGGREGATE_TARGET WORKAREA_SIZE_POLICY BITMAP_MERGE_AREA_SIZE HASH_AREA_SIZE SORT_AREA_SIZE QUERY_REWRITE_ENABLED OPTIMIZER_MODE CBO: A Configuration Roadmap
9 Configuration roadmap Once set to their optimal value they should not be modified further; the only exception is when tweaking the index related parameters does not achieve good results! OPTIMIZER_MODE OPTIMIZER_FEATURES_ENABLE DB_FILE_MULTIBLOCK_READ_COUNT OPTIMIZER_DYNAMIC_SAMPLING gather system and object statistics PGA_AGGREGATE_TARGET WORKAREA_SIZE_POLICY auto manual HASH_AREA_SIZE SORT_AREA_SIZE BITMAP_MERGE_AREA_SIZE test the application most of the execution plans are good yes no gather missing histograms OPTIMIZER_INDEX_COST_ADJ OPTIMIZER_INDEX_CACHING CBO: A Configuration Roadmap
10 Object statistics > The object statistics describe the data stored in the database» Table statistics: number of rows, number of blocks below the high water mark and average row length» Column statistics: number of distinct values, number of NULL values and data distribution (a.k.a. histograms)» Index statistics: number of distinct keys, high, number of leaf blocks and clustering factor > The CBO can generate good execution plans only if the statistics are good as well, i.e. they must reflect existing data > Missing, not up-to-date, or wrong statistics can lead to poor execution plans > Object statistics are automatically gathered CBO: A Configuration Roadmap
11 Gathering object statistics (1) > Gather statistics for tables, columns and indexes at the same time» DBMS_STATS.GATHER_SCHEMA_STATS» DBMS_STATS.GATHER_TABLE_STATS > Use small estimate percentage (<10%)» Oracle increases the specified value if necessary» For very large tables reduce it to 1% or less > Activate table monitoring to refresh the statistics when data is changed (by default a threshold of 10% is used)» DBMS_STATS.ALTER_SCHEMA_TAB_MONITORING» STATISTICS_LEVEL = TYPICAL (default) > For partitioned tables gather statistics at all levels > For large tables gather statistics in parallel CBO: A Configuration Roadmap
12 Gathering object statistics (2) > Histograms are essential, gather them for all columns containing skewed data that are referenced in WHERE clauses» Even for non-indexed columns!» For simplicity use SIZE SKEWONLY, if it takes too much time try SIZE AUTO; if it is still too slow or the chosen number of buckets it not good, manually specify the list of columns» To get the most out of them, bind variables must not be used > The following command is a good starting point dbms_stats.gather_schema_stats( ownname => user, estimate_percent => 5, cascade => TRUE, method_opt => 'FOR ALL COLUMNS SIZE SKEWONLY', options => 'GATHER STALE' ); CBO: A Configuration Roadmap
13 Gathering object statistics (3) > All procedures that gather optimizer statistics no longer have hardcoded default values, instead, they are stored in the data dictionary» You can get and set them with the DBMS_STATS procedures GET_PARAM and SET_PARAM SQL> SELECT sname, nvl(to_char(sval1),spare4) value 2 FROM sys.optstat_hist_control$; SNAME VALUE CASCADE DBMS_STATS.AUTO_CASCADE ESTIMATE_PERCENT DBMS_STATS.AUTO_SAMPLE_SIZE DEGREE NULL METHOD_OPT FOR ALL COLUMNS SIZE AUTO NO_INVALIDATE DBMS_STATS.AUTO_INVALIDATE GRANULARITY AUTO > Check the definition of the scheduler window group MAINTENANCE_WINDOW_GROUP CBO: A Configuration Roadmap
14 System statistics (1) > System statistics are essential for a successful configuration > The CBO used to base its estimations on the number of I/O needed to execute a SQL statement (a.k.a. I/O cost model ) > With system statistics a new model, called CPU cost model, is enabled > They give information about the performance of the system where Oracle runs» Performance of the I/O subsystem» Average I/O size for multi-block read operations» Performance of the CPU > To use the I/O cost model, when system statistics have been gathered, specify the hint NO_CPU_COSTING CBO: A Configuration Roadmap
15 System statistics (2) > There are two kinds of system statistics > Without workload» Not really useful» They are automatically gathered at startup if they don t exist dbms_stats.gather_system_stats('noworkload'); > With workload» They should be gathered when the system is charged with a common workload» The instance is monitored for a period of time (interval) dbms_stats.gather_system_stats( gathering_mode => 'interval', interval => 30 ); Statistics are gathered over the next 30 minutes CBO: A Configuration Roadmap
16 System statistics (3) SQL> SELECT pname, pval1 2 FROM sys.aux_stats$ 3 WHERE 4 sname = 'SYSSTATS_MAIN'; PNAME PVAL CPUSPEEDNW IOSEEKTIM 10 IOTFRSPEED 4096 CPUSPEED 928 SREADTIM MREADTIM MBRC 9 MAXTHR SLAVETHR > Without workload» CPUSPEEDNW: CPU speed in millions of operations per second» IOSEEKTIM: I/O seek time [ms]» IOFRSPEED: I/O transfer speed [B/s] > With workload» CPUSPEED: CPU speed in millions of operations per second» SREADTIM: single-block read time [ms]» MREADTIM: multi-block read time [ms]» MBRC: average number of blocks read during a multi-block read operation» MAXTHR: max. throughput [MB/s]» SLAVETHR: max. slave throughput [MB/s] CBO: A Configuration Roadmap
17 OPTIMIZER_MODE > This is the most important parameter, unfortunately, too often it is not set, i.e. its default value is used» Default value is CHOOSE - ALL_ROWS is used if object statistics are available, otherwise RULE - In some situations ALL_ROWS has to be used even if no statistics are available (e.g. for partitioned tables)» Default value is ALL_ROWS > If fast delivery of the last row is important, ALL_ROWS should be used» Typical example: reporting systems and data warehouses > If fast delivery of the first row(s) is important, FIRST_ROWS_n should be used» Where n is [ ] row(s)» Typical example: OLTP systems CBO: A Configuration Roadmap
18 OPTIMIZER_FEATURES_ENABLE > Each database version introduces new features in the optimizer > OPTIMIZER_FEATURES_ENABLE can be used to set which version of the optimizer should be used» Valid values are database versions (e.g , 9.0.1, 9.2.0, )» A complete list of the features which are enabled/disabled by each version is available in the Oracle Database Reference manual» The default value is the current database version» Not all new features are enabled/disabled by this parameter, this means that even if you set it to in, for example, Oracle9i you won t get the optimizer! > It could be useful to set it when an application is upgraded to a new database version, otherwise leave it at the default value CBO: A Configuration Roadmap
19 DB_FILE_MULTIBLOCK_READ_COUNT (1) > DB_FILE_MULTIBLOCK_READ_COUNT specifies the maximum number of blocks that Oracle reads during a multi-block operation (e.g. full table scan) > Three common situations lead to multi-block reads that are smaller than the specified value» Oracle reads headers with single-block reads» Oracle never does an I/O that spans more extents» Oracle never reads a block that is already in the buffer cache > Multi-block reads are a performance feature, therefore, the parameter should be set to achieve the best performance» Higher values do not provide better performance in all cases!» It makes no sense to exceed the maximum physical I/O size CBO: A Configuration Roadmap
20 DB_FILE_MULTIBLOCK_READ_COUNT (2) > When system statistics with workload are not used this parameter has a direct impact on the full table scan costs, therefore, too high values lead to excessive full scans» Without system statistics I / O Cost FTS» System statistics without workload Blocks DFMBRC / Blocks I O Cost FTS 1+ A ln(dfmbrc) + B ln( DFMBRC) > When system statistics with workload are used, MBRC in SYS.AUX_STATS$ is used instead of DFMBRC to compute the cost of full table scans CBO: A Configuration Roadmap
21 DB_FILE_MULTIBLOCK_READ_COUNT (3) > A simple full table scan with different values gives useful information about the impact of this parameter and, therefore, assists in finding the best value Gain in % DFMBRC / MBRC I/O cost without I/O system cost statistics without I/O system I/O cost statistics without def. I/O cost def. system statistics I/O system cost statistics without System 1 def. system statistics I/O System System (max. cost 55 with 1 MB/s) def. system (max. 55 (max. 55 statistics MB/s) System 12 MB/s) System (max MB/s) System (max. 40 MB/s) (max. System 40 3 MB/s) (max. 58 MB/s) System 3 (max. System 584 MB/s) (max. 230 MB/s) CBO: A Configuration Roadmap
22 OPTIMIZER_DYNAMIC_SAMPLING (1) > The CBO used to base its estimations on statistics found in the data dictionary only > With dynamic sampling some statistics can be gathered during the parse phase as well, this means that some queries are executed against the referenced objects to gather additional information > The statistics gathered by dynamic sampling are not stored in the data dictionary, they are simply shared at cursor level > The value of the parameter OPTIMIZER_DYNAMIC_SAMPLING specifies how and when dynamic sampling is used» Range: from 0 to 10 (0=dynamic sampling disabled) CBO: A Configuration Roadmap
23 OPTIMIZER_DYNAMIC_SAMPLING (2) Level On which table? All non-analyzed tables, if at least one table» Is part of a join, subquery or non-mergeable view» Has no index» Has more blocks than the number of blocks used for the sampling All non-analyzed tables All tables which fulfill the level-2 criterion plus all tables for which a standard selectivity estimation is used All tables which fulfill level-3 criteria plus all tables which have single table predicates referencing more than two attributes # Blocks Param Hint All All CBO: A Configuration Roadmap
24 OPTIMIZER_DYNAMIC_SAMPLING (3) > Default values» If OPTIMIZER_FEATURES_ENABLE : 2» If OPTIMIZER_FEATURES_ENABLE = 9.2.0: 1» If OPTIMIZER_FEATURES_ENABLE 9.0.1: 0 > Level 1 and 2 are not very useful, in fact the tables should be analyzed on a regular basis!» An exception is when temporary tables are used, in fact, usually, no statistics are available for them > Level 3 and up are useful for improving selectivity estimations of predicates» If the CBO is not able to do correct estimations start by setting it to 4» It is possible to do such corrections with SQL profiles as well CBO: A Configuration Roadmap
25 PGA management > It is possible to choose between two methods to manage the PGA» Manual: the DBA has full control over the size of the PGA» Automatic: the DBA delegates the management of the PGA to Oracle > Except in the following situations it is recommended to use automatic PGA management» Very large PGA needed (>100MB, see Metalink note ) - Except if you want to set _PGA_MAX_SIZE» Fine tuning is needed» Shared server (former MTS) is used > Usually a larger PGA makes merge/hash joins and sort operations faster, therefore, you should devote the unused memory that is available on the system to it > The PGA size has an influence on the costs computed by the CBO CBO: A Configuration Roadmap
26 Manual PGA management > To enable manual PGA management the INIT.ORA parameter WORKAREA_SIZE_POLICY must be set to MANUAL > Then the following INIT.ORA parameters should be set» HASH_AREA_SIZE» SORT_AREA_SIZE» BITMAP_MERGE_AREA_SIZE > It is practically impossible to give advice about their value, anyway, here some general rules» Usually a minimal value of 512KB to 1MB should be used» For small PGAs, to take advantage of hash join, the HASH_AREA_SIZE should be at least 3-4 times the SORT_AREA_SIZE > Each parameter specifies the maximum amount of memory that can be used by each server process CBO: A Configuration Roadmap
27 Automatic PGA management > To enable auto PGA management the INIT.ORA parameter WORKAREA_SIZE_POLICY must be set to AUTO > Contrary to manual PGA management, the INIT.ORA parameter PGA_AGGREGATE_TARGET specifies the total amount of memory use for all PGAs, i.e. not for the single server processes > In some situations the PGA_AGGREGATE_TARGET could also be exceeded» It s a target, not a maximum value!» This usually happens when a value which is too small is specified CBO: A Configuration Roadmap
28 OPTIMIZER_INDEX_COST_ADJ > This parameter is used to change the cost of table accesses through index scans > Range of values (default 100)» Values greater than 100 make index scans more expensive» Values lower than 100 make index scans less expensive > Correction for an index range scan I / O Cost ( BLevel + ( LeafBlocks + ClustFactor) Selectivity) > Correction for an index unique scan I / O Cost ( BLevel + 1) OICA 100 OICA 100 > This parameter flattens costs and makes the clustering factor much less significant, therefore, small values should be carefully specified! With system statistics the default value is usually good CBO: A Configuration Roadmap
29 OPTIMIZER_INDEX_CACHING > This parameter is used to specify the expected amount (in percent) of index blocks cached in the buffer cache during a nested loop join» This parameter has no influence on index range scans! > Range of values (default 0)» Values greater than 0 make nested loops less expensive > Correction for an index range scan I / O Cost OIC + ClustFactor Selectivity 100 > Correction for index unique scan ( BLevel + LeafBlocks Selectivity) 1 OIC I / O Cost BLevel > With system statistics the default value is usually good CBO: A Configuration Roadmap
30 Core messages > The CBO works well if it is correctly configured! > Correctly configuring the CBO is not an easy job This is no good reason for not doing it! > from Trivadis At the core it's all about data. > Understanding how each parameter changes the behavior of the CBO is essential CBO: A Configuration Roadmap
31 Thank you for your attention Questions?
Tuning with Statistics
Tuning with Statistics Wolfgang Breitling breitliw@centrexcc.com Agenda The DBMS_STATS Package Uses of DBMS_STATS beyond analyze The stattab Table Transferring Statistics with the stattab Table Means to
More informationImproving Database Performance: SQL Query Optimization
CHAPTER 21 Improving Database Performance: SQL Query Optimization Performance tuning is the one area in which the Oracle DBA probably spends most of his or her time. If you re a DBA helping developers
More informationOracle FLEXCUBE Private Banking May 2011
Oracle FLEXCUBE Private Banking May 2011 Database configuration parameters and Recommended Schedule Maintenance Oracle Part Number E51529-01 Document Control Date Version Description Author 30 th November
More informationUsing Perceptive Content with an Oracle Database
Using Perceptive Content with an Oracle Database Best Practices Version: 7.2.x Written by: Product Knowledge, R&D Date: June 2017 2017 Lexmark. All rights reserved. Lexmark is a trademark of Lexmark International
More informationPASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year
PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : 1Z1-054 Title : Oracle Database 11g: Performance Tuning Vendors : Oracle
More informationKillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX
KillTest Q&A Exam : 1Z1-054 Title : Oracle Database 11g: Performance Tuning Version : DEMO 1 / 19 1. After running SQL Performance Analyzer (SPA), you observe a few regressed SQL statements in the SPA
More informationDie Wundertüte DBMS_STATS: Überraschungen in der Praxis
Die Wundertüte DBMS_STATS: Überraschungen in der Praxis, 14. Mai 2018 Dani Schnider, Trivadis AG @dani_schnider danischnider.wordpress.com BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
More informationPitfalls & Surprises with DBMS_STATS: How to Solve Them
Pitfalls & Surprises with DBMS_STATS: How to Solve Them Dani Schnider, Trivadis AG @dani_schnider danischnider.wordpress.com BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN
More informationDemystifying WORKLOAD System Statistics Gathering
Technology Demystifying WORKLOAD System Statistics Gathering You must have system statistics if you want the optimizer to evaluate correctly the cost of full table scans vs. index access. But you have
More informationManaging Performance Through Versioning of Statistics
Managing Performance Through Versioning of Statistics Claudia Fernandez Technical Services Manager claudia@leccotech.com LECCOTECH www.leccotech.com NoCOUG, August 2003 "Managing Performance Through Versioning
More informationWhen should an index be used?
When should an index be used? Christian Antognini Trivadis AG Zürich, Switzerland Introduction One of the biggest problems tuning a SQL statement or judging if its execution plan is optimal, is to decide
More informationTroubleshooting Oracle Performance
Troubleshooting Oracle Performance Trivadis AG Christian Antognini christian.antognini@trivadis.com BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN 1
More informationD B M G Data Base and Data Mining Group of Politecnico di Torino
Database Management Data Base and Data Mining Group of tania.cerquitelli@polito.it A.A. 2014-2015 Optimizer operations Operation Evaluation of expressions and conditions Statement transformation Description
More informationOracle 1Z0-054 Exam Questions and Answers (PDF) Oracle 1Z0-054 Exam Questions 1Z0-054 BrainDumps
Oracle 1Z0-054 Dumps with Valid 1Z0-054 Exam Questions PDF [2018] The Oracle 1Z0-054 Oracle Database 11g: Performance Tuning exam is an ultimate source for professionals to retain their credentials dynamic.
More informationHow Can I Tune it if I Can t Change the Code
How Can I Tune it if I Can t Change the Code SAGE Computing Services Customised Oracle Training Workshops and Consulting Penny Cookson - Managing Director Agenda Identifying the problem First steps Tune
More informationMigrating? Don't forget the Optimizer.
Migrating? Don't forget the Optimizer. What is the most important component of the Oracle database engine? My vote goes to the optimizer. Everything the database does is SQL, and every piece of SQL has
More informationOracle EXAM - 1Z Oracle Database 11g: Performance Tuning. Buy Full Product.
Oracle EXAM - 1Z0-054 Oracle Database 11g: Performance Tuning Buy Full Product http://www.examskey.com/1z0-054.html Examskey Oracle 1Z0-054 exam demo product is here for you to test the quality of the
More informationOracle Database 11gR2 Optimizer Insights
Oracle Database 11gR2 Optimizer Insights Marcus Bender Distinguished Sales Consultant Presales Fellow Strategic Technical Support (STU) ORACLE Deutschland GmbH, Geschäftsstelle Hamburg Parallel Execution
More informationEstimating Cardinality: Use of Jonathan Lewis CBO methodology
Estimating Cardinality: Use of Jonathan Lewis CBO methodology Dave Abercrombie Principal Database Architect, Convio NoCOUG Fall Conference 2010 1 2009 Convio, Inc. Cost-Based Oracle Fundamentals By Jonathan
More informationOracle Database 11g: SQL Tuning Workshop
Oracle University Contact Us: Local: 0845 777 7 711 Intl: +44 845 777 7 711 Oracle Database 11g: SQL Tuning Workshop Duration: 3 Days What you will learn This Oracle Database 11g: SQL Tuning Workshop Release
More informationTuning SQL without the Tuning Pack. John Larkin JP Morgan Chase
Tuning SQL without the Tuning Pack John Larkin JP Morgan Chase Who am I Originally a mainframe COBOL programmer DBA for the last 23 years, the last 15 with Oracle. UNIX (Solaris, Aix, Windows, Linux) Recently
More information<Insert Picture Here> Inside the Oracle Database 11g Optimizer Removing the black magic
Inside the Oracle Database 11g Optimizer Removing the black magic Hermann Bär Data Warehousing Product Management, Server Technologies Goals of this session We will Provide a common
More informationQuery Optimizer, Who Influences & How it works ++ optimization techniques
Query Optimizer, Who Influences & How it works ++ optimization techniques AIOUG : ODevC Yatra 2018, India Chandan Tanwani Senior Application Engineer Oracle Financial Services Software Ltd. Copyright 2018
More information1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.
1 Copyright 2011, Oracle and/or its affiliates. All rights 2 Copyright 2011, Oracle and/or its affiliates. All rights Optimizer Statistics CPU & IO DATA DICTIONARY OPTIMIZER STATISTICS Index Table Column
More informationWolfgang Breitling.
Wolfgang Breitling (breitliw@centrexcc.com) 2 a) cost card operation ------- -------- -------------------------------------------------------------- 2,979 446 SELECT STATEMENT 2,979 446 SORT ORDER BY FILTER
More informationOracle 9i Application Development and Tuning
Index 2NF, NOT 3NF or BCNF... 2:17 A Anomalies Present in this Relation... 2:18 Anomalies (Specific) in this Relation... 2:4 Application Design... 1:28 Application Environment... 1:1 Application-Specific
More informationIT100: Oracle Administration
IT100: Oracle Administration IT100 Rev.001 CMCT COURSE OUTLINE Page 1 of 8 Training Description: Introduction to Oracle Administration and Management is a five-day course designed to provide Oracle professionals
More informationTECHNOLOGY: Testing Performing Through Changes
TECHNOLOGY: Testing Performing Through Changes By Arup Nanda Measure the impact of changes on SQL workload with SQL performance analyzer. Here is a not-so-uncommon scenario: a query is running slowly.
More informationExam Name: Oracle Database 11g: Performance Tuning
Exam Code: 1z1-054 Exam Name: Oracle Database 11g: Performance Tuning Vendor: Oracle Version: DEMO Part: A 1: You are managing an online transaction processing (OLTP) system. Many users complain about
More informationOh! I see a problem. cost = blevel + ceil(selectivity * leaf_blocks) + ceil(selectivity * clustering_factor)
Oh! I see a problem There are several assumptions built into the Cost Based Optimizer that can make it generate an unsuitable plan. Oracle Corp. keeps introducing refinements to the optimiser code to work
More informationUpgrading from Oracle Database 9i to 10g: What to expect from the Optimizer. An Oracle White Paper July 2008
Upgrading from Oracle Database 9i to 10g: What to expect from the Optimizer An Oracle White Paper July 2008 NOTE: The following is intended to outline our general product direction. It is intended for
More informationUsing Oracle STATSPACK to assist with Application Performance Tuning
Using Oracle STATSPACK to assist with Application Performance Tuning Scenario You are experiencing periodic performance problems with an application that uses a back-end Oracle database. Solution Introduction
More informationOracle 10g Dbms Stats Gather Table Stats Examples
Oracle 10g Dbms Stats Gather Table Stats Examples Summary of DBMS_COMPRESSION Subprograms Permissions for Managing and Querying Cube Materialized Views Example of SQL Aggregation Upgrading 10g Analytic
More information20 Essential Oracle SQL and PL/SQL Tuning Tips. John Mullins
20 Essential Oracle SQL and PL/SQL Tuning Tips John Mullins jmullins@themisinc.com www.themisinc.com www.themisinc.com/webinars Presenter John Mullins Themis Inc. (jmullins@themisinc.com) 30+ years of
More informationOracle DB-Tuning Essentials
Infrastructure at your Service. Oracle DB-Tuning Essentials Agenda 1. The DB server and the tuning environment 2. Objective, Tuning versus Troubleshooting, Cost Based Optimizer 3. Object statistics 4.
More informationProjects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES
Corporate Trainer s Profile Corporate Trainers are having the experience of 4 to 12 years in development, working with TOP CMM level 5 comapnies (Project Leader /Project Manager ) qualified from NIT/IIT/IIM
More informationAdvanced Oracle SQL Tuning v3.0 by Tanel Poder
Advanced Oracle SQL Tuning v3.0 by Tanel Poder /seminar Training overview This training session is entirely about making Oracle SQL execution run faster and more efficiently, understanding the root causes
More informationTHE DBMS_STATS PACKAGE
SQL TUNING WITH STATISTICS Wolfgang Breitling, Centrex Consulting Corporation This paper looks at the DBMS_STATS package and how it can be used beyond just the gathering of statistics in the tuning effort,
More informationOracle Database 12c Performance Management and Tuning
Course Code: OC12CPMT Vendor: Oracle Course Overview Duration: 5 RRP: POA Oracle Database 12c Performance Management and Tuning Overview In the Oracle Database 12c: Performance Management and Tuning course,
More informationOracle Sql Tuning- A Framework
Oracle Sql Tuning- A Framework Prepared by Saurabh Kumar Mishra Performance Engineering & Enhancement offerings (PE2) Infosys Technologies Limited (NASDAQ: INFY) saurabhkumar_mishra@infosys.com This paper
More informationOracle. Exam Questions 1Z Oracle Database 11g Release 2: SQL Tuning Exam. Version:Demo
Oracle Exam Questions 1Z0-117 Oracle Database 11g Release 2: SQL Tuning Exam Version:Demo 1.You ran a high load SQL statement that used an index through the SQL Tuning Advisor and accepted its recommendation
More informationUnderstanding Optimizer Statistics With Oracle Database 12c Release 2 O R A C L E W H I T E P A P E R M A R C H
Understanding Optimizer Statistics With Oracle Database 12c Release 2 O R A C L E W H I T E P A P E R M A R C H 2 0 1 7 Table of Contents Introduction 1 What are Optimizer Statistics? 2 Statistics on Partitioned
More informationSQL Gone Wild: Taming Bad SQL the Easy Way (or the Hard Way) Sergey Koltakov Product Manager, Database Manageability
SQL Gone Wild: Taming Bad SQL the Easy Way (or the Hard Way) Sergey Koltakov Product Manager, Database Manageability Oracle Enterprise Manager Top-Down, Integrated Application Management Complete, Open,
More informationArchitettura Database Oracle
Architettura Database Oracle Shared Pool La shared pool consiste di: Data dictionary: cache che contiene informazioni relative agli oggetti del databse, lo storage ed i privilegi Library cache: contiene
More informationTop 10 Features in Oracle 12C for Developers and DBA s Gary Bhandarkar Merck & Co., Inc., Rahway, NJ USA
Top 10 Features in Oracle 12C for Developers and DBA s Gary Bhandarkar Merck & Co., Inc., Rahway, NJ USA Agenda Background ORACLE 12c FEATURES CONCLUSION 2 Top 10 Oracle 12c Features Feature 1: ADAPTIVE
More informationDoes Exadata Need Performance Tuning? Jože Senegačnik, Oracle ACE Director, Member of OakTable DbProf d.o.o. Ljubljana, Slovenia
Does Exadata Need Performance Tuning? Jože Senegačnik, Oracle ACE Director, Member of OakTable DbProf d.o.o. Ljubljana, Slovenia Keywords Exadata, Cost Based Optimization, Statistical Optimizer, Physical
More information1Z Number: 1Z0-117 Passing Score: 660 Time Limit: 150 min File Version: 1.0.
1Z0-117 Number: 1Z0-117 Passing Score: 660 Time Limit: 150 min File Version: 1.0 http://www.gratisexam.com/ Exam A QUESTION 1 Examine the query and its execution plan: Which statement is true regarding
More informationEZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore
Oracle Database 12c: Performance Management and Tuning NEW Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning course, learn about the performance analysis
More informationCopyright 2012, Oracle and/or its affiliates. All rights reserved.
1 Oracle safe harbor statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not
More informationUnderstanding and Leveraging the Oracle9i Advisories. Azeem Mohamed Product Marketing Manager Quest Software
Understanding and Leveraging the Oracle9i Advisories Azeem Mohamed Product Marketing Manager Quest Software Agenda Overview of the Oracle9i advisories Buffer cache advisory Shared Pool advisory PGA advisory
More information1z0-064.exam.57q. Number: 1z0-064 Passing Score: 800 Time Limit: 120 min File Version: 1. Oracle 1z0-064
1z0-064.exam.57q Number: 1z0-064 Passing Score: 800 Time Limit: 120 min File Version: 1 Oracle 1z0-064 Oracle Database 12c: Performance Management and Tuning Exam A QUESTION 1 Which two actions should
More informationOracle Database 11g : Performance Tuning DBA Release2
Oracle Database 11g : Performance Tuning DBA Release2 Target Audience : Technical Consultant/L2/L3 Support DBA/Developers Course Duration : 5 days Day 1: Basic Tuning Tools Monitoring tools overview Enterprise
More informationReal-World Performance Training SQL Performance
Real-World Performance Training SQL Performance Real-World Performance Team Agenda 1 2 3 4 5 6 SQL and the Optimizer You As The Optimizer Optimization Strategies Why is my SQL slow? Optimizer Edges Cases
More information.. Spring 2008 CSC 468: DBMS Implementation Alexander Dekhtyar..
.. Spring 2008 CSC 468: DBMS Implementation Alexander Dekhtyar.. Tuning Oracle Query Execution Performance The performance of SQL queries in Oracle can be modified in a number of ways: By selecting a specific
More informationOracle Database 11g: Performance Tuning DBA Release 2
Course Code: OC11PTDBAR2 Vendor: Oracle Course Overview Duration: 5 RRP: POA Oracle Database 11g: Performance Tuning DBA Release 2 Overview This course starts with an unknown database that requires tuning.
More informationwww.informatik-aktuell.de IT-Tage Datenbanken in Frankfurt, 17. Dezember 2015 Christian Antognini Udo Fohrmann BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE
More informationReal-World Performance Training SQL Performance
Real-World Performance Training SQL Performance Real-World Performance Team Agenda 1 2 3 4 5 6 The Optimizer Optimizer Inputs Optimizer Output Advanced Optimizer Behavior Why is my SQL slow? Optimizer
More informationOracle Database 12c: Performance Management and Tuning
Oracle University Contact Us: +43 (0)1 33 777 401 Oracle Database 12c: Performance Management and Tuning Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning
More informationSQL Optimisation. SAGE Computing Services Customised Oracle Training Workshops and Consulting. Penny Cookson - Managing Director
SQL Optimisation SAGE Computing Services Customised Oracle Training Workshops and Consulting Penny Cookson - Managing Director How does the optimizer work? Performance enhancements in version 10g System
More informationContents at a Glance. About the Author... xv About the Technical Reviewer... xvii Acknowledgments... xix Foreword... xxi Introduction...
www.it-ebooks.info For your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them. www.it-ebooks.info Contents
More informationAdaptive Cursor Sharing: An Introduction
Adaptive Cursor Sharing: An Introduction Harald van Breederode Oracle University 17-NOV-2010 1-1 About Me Senior Principal DBA Trainer Oracle University 25 years Unix Experience 12 years Oracle DBA Experience
More information7. Query Processing and Optimization
7. Query Processing and Optimization Processing a Query 103 Indexing for Performance Simple (individual) index B + -tree index Matching index scan vs nonmatching index scan Unique index one entry and one
More information<Insert Picture Here> Oracle Database 11g: Neue Features im Oracle Optimizer
Oracle Database 11g: Neue Features im Oracle Optimizer Hermann Bär, Oracle Director Product Management, Server Technologies Data Warehousing Inside the Oracle Database 11g Optimizer
More informationOracle Notes Part-5. Two Types of Cursor : 1)Implicit Cursor
Oracle Notes Part-5 CURSOR: A cursor is a temporary work area created in the system memory when a SQL statement is executed. A cursor contains information on a select statement and the rows of data accessed
More informationOracle 1Z Oracle Database 11g: Performance Tuning. Version Demo
Oracle 1Z0-054 Oracle Database 11g: Performance Tuning Version Demo QUESTION 1 After running SQL Performance Analyzer (SPA), you observe a few regressed SQL statements in the SPA output. Identify the two
More informationQuery Optimizer MySQL vs. PostgreSQL
Percona Live, Santa Clara (USA), 24 April 2018 Christian Antognini @ChrisAntognini antognini.ch/blog BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH
More informationOracle Database 11g: Performance Tuning DBA Release 2
Oracle University Contact Us: +65 6501 2328 Oracle Database 11g: Performance Tuning DBA Release 2 Duration: 5 Days What you will learn This Oracle Database 11g Performance Tuning training starts with an
More informationOracle Database 11g: SQL Tuning Workshop. Student Guide
Oracle Database 11g: SQL Tuning Workshop Student Guide D52163GC10 Edition 1.0 June 2008 Author Jean-François Verrier Technical Contributors and Reviewers Muriel Fry (Special thanks) Joel Goodman Harald
More informationIndependent consultant. Oracle ACE Director. Member of OakTable Network. Available for consulting In-house workshops. Performance Troubleshooting
Independent consultant Available for consulting In-house workshops Cost-Based Optimizer Performance By Design Performance Troubleshooting Oracle ACE Director Member of OakTable Network Optimizer Basics
More informationMANAGING COST-BASED OPTIMIZER STATISTICS FOR PEOPLESOFT DAVID KURTZ UKOUG PEOPLESOFT ROADSHOW 2018
MANAGING COST-BASED OPTIMIZER STATISTICS FOR PEOPLESOFT DAVID KURTZ UKOUG PEOPLESOFT ROADSHOW 2018 WHO AM I Accenture Enkitec Group Performance tuning PeopleSoft ERP Oracle RDBMS Book www.go-faster.co.uk
More informationLearning Objectives : This chapter provides an introduction to performance tuning scenarios and its tools.
Oracle Performance Tuning Oracle Performance Tuning DB Oracle Wait Category Wait AWR Cloud Controller Share Pool Tuning 12C Feature RAC Server Pool.1 New Feature in 12c.2.3 Basic Tuning Tools Learning
More informationOracle Database Performance Tuning, Benchmarks & Replication
Oracle Database Performance Tuning, Benchmarks & Replication Kapil Malhotra kapil.malhotra@software.dell.com Solutions Architect, Information Management Dell Software 2 11/29/2013 Software Database Tuning
More information<Insert Picture Here> DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g
DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g Peter Belknap, Sergey Koltakov, Jack Raitto The following is intended to outline our general product direction.
More informationQuery Optimizer MySQL vs. PostgreSQL
Percona Live, Frankfurt (DE), 7 November 2018 Christian Antognini @ChrisAntognini antognini.ch/blog BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART
More informationPERFORMANCE TUNING TRAINING IN BANGALORE
PERFORMANCE TUNING TRAINING IN BANGALORE TIB ACADEMY #5/3 BEML LAYOUT, VARATHUR MAIN ROAD KUNDALAHALLI GATE, BANGALORE 560066 PH: +91-9513332301/2302 WWW.TRAINININGBANGALORE.COM Oracle Database 11g: Performance
More informationIndependent consultant. Oracle ACE Director. Member of OakTable Network. Available for consulting In-house workshops. Performance Troubleshooting
Independent consultant Available for consulting In-house workshops Cost-Based Optimizer Performance By Design Performance Troubleshooting Oracle ACE Director Member of OakTable Network Optimizer Basics
More informationThis is the forth SAP MaxDB Expert Session and this session covers the topic database performance analysis.
1 This is the forth SAP MaxDB Expert Session and this session covers the topic database performance analysis. Analyzing database performance is a complex subject. This session gives an overview about the
More informationCOPYRIGHTED MATERIAL. Using SQL. The Processing Cycle for SQL Statements
Using SQL The end users of the applications you develop are almost never aware of the code used to retrieve their data for them, or insert and update changes to the data back into the database. Your application
More informationAnthony AWR report INTERPRETATION PART I
Anthony AWR report INTERPRETATION PART I What is AWR? AWR stands for Automatically workload repository, Though there could be many types of database performance issues, but when whole database is slow,
More informationOracle Database New Performance Features
Oracle Database 12.1.0.2 New Performance Features DOAG 2014, Nürnberg (DE) Christian Antognini BASEL BERN BRUGG LAUSANNE ZUERICH DUESSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MUNICH STUTTGART VIENNA
More informationTop 7 Plan Stability Pitfalls & How to Avoid Them. Neil Chandler Chandler Systems Ltd UK
Top 7 Plan Stability Pitfalls & How to Avoid Them Neil Chandler Chandler Systems Ltd UK Keywords: SQL Optimizer Plan Change Stability Outlines Baselines Plan Directives Introduction When you write some
More informationOracle Database 10g The Self-Managing Database
Oracle Database 10g The Self-Managing Database Benoit Dageville Oracle Corporation benoit.dageville@oracle.com Page 1 1 Agenda Oracle10g: Oracle s first generation of self-managing database Oracle s Approach
More informationOracle Optimizer: What s New in Oracle Database 12c? Maria Colgan Master Product Manager
Oracle Optimizer: What s New in Oracle Database 12c? Maria Colgan Master Product Manager PART 3 2 Program Agenda Adaptive Query Optimization Statistics Enhancements What s new in SQL Plan Management 3
More informationNeil Chandler, Chandler Systems Oracle & SQL Server DBA
Neil Chandler, Chandler Systems Oracle & SQL Server DBA In IT since 1988 Working with Oracle since about 1991 Chairman of the UKOUG RAC, Cloud, Infrastructure and Availability SIG BLOG: http://chandlerdba.wordpress.com/
More informationData Warehouse Tuning. Without SQL Modification
Data Warehouse Tuning Without SQL Modification Agenda About Me Tuning Objectives Data Access Profile Data Access Analysis Performance Baseline Potential Model Changes Model Change Testing Testing Results
More informationOralogic Education Systems
Oralogic Education Systems Next Generation IT Education Systems Introduction: In the Oracle Database 12c: Performance Management and Tuning course, learn about the performance analysis and tuning tasks
More information5 Application Tuning CERTIFICATION OBJECTIVES Q&A
Blind Folio 5:241 5 Application Tuning CERTIFICATION OBJECTIVES 5.01 Using the New Optimizer Statistics 5.02 Using the SQL Tuning Advisor 5.03 Using the SQL Access Advisor 5.04 Using the Performance Pages
More informationEffect of Stats on Two Columns Optimizer Statistics on tables and indexes are vital. Arup Nanda
Stats with Intelligence Arup Nanda Longtime Oracle DBA Effect of Stats on Two Columns Optimizer Statistics on tables and indexes are vital for the optimizer to compute optimal execution plans If there
More informationDemystifying SQL Tuning: Tips and Techniques for SQL Experts
Demystifying SQL Tuning: Tips and Techniques for SQL Experts Mughees A. Minhas Director of Product Management, Database and Systems Management Sergey Koltakov Product Manager, Database Manageability Outline
More informationAdaptive Optimization. Presented by: Kerry Osborne Red Gate Webinar, Nov. 2013
Adaptive Optimization Presented by: Kerry Osborne Red Gate Webinar, Nov. 2013 whoami Never Worked for Oracle Worked with Oracle DB Since 1982 (V2) Working with Exadata since early 2010 Work for Enkitec
More informationSession id: The Self-Managing Database: Guided Application and SQL Tuning
Session id: 40713 The Self-Managing Database: Guided Application and SQL Tuning Lead Architects Benoit Dageville Khaled Yagoub Mohamed Zait Mohamed Ziauddin Agenda SQL Tuning Challenges Automatic SQL Tuning
More informationoptimizer_index_cost_adj optimizer_index_caching
1 The Effects of optimizer_index_cost_adj and optimizer_index_caching on Access Plans Wolfgang Breitling breitliw@centrexcc.com PREREQUISITE: Presentation "Introduction to the Cost Based Optimizer Trace"
More informationOracle SQL Tuning for Developers Workshop Student Guide - Volume I
Oracle SQL Tuning for Developers Workshop Student Guide - Volume I D73549GC10 Edition 1.0 October 2012 D78799 Authors Sean Kim Dimpi Rani Sarmah Technical Contributors and Reviewers Nancy Greenberg Swarnapriya
More informationTriangle SQL Server User Group Adaptive Query Processing with Azure SQL DB and SQL Server 2017
Triangle SQL Server User Group Adaptive Query Processing with Azure SQL DB and SQL Server 2017 Joe Sack, Principal Program Manager, Microsoft Joe.Sack@Microsoft.com Adaptability Adapt based on customer
More informationOracle 1Z Oracle Database 11g Release 2- SQL Tuning. Download Full Version :
Oracle 1Z0-117 Oracle Database 11g Release 2- SQL Tuning Download Full Version : http://killexams.com/pass4sure/exam-detail/1z0-117 OracleDatabase Data Warehousing Guide,Star Transformation with a Bitmap
More information<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases
DBA Best Practices: A Primer on Managing Oracle Databases Mughees A. Minhas Sr. Director of Product Management Database and Systems Management The following is intended to outline
More informationTuning Considerations for Different Applications Lesson 4
4 Tuning Considerations for Different Applications Lesson 4 Objectives After completing this lesson, you should be able to do the following: Use the available data access methods to tune the logical design
More informationOptimizer with Oracle Database 12c Release 2 O R A C L E W H I T E P A P E R J U N E
Optimizer with Oracle Database 12c Release 2 O R A C L E W H I T E P A P E R J U N E 2 0 1 7 Table of Contents Introduction 1 Adaptive Query Optimization 2 Optimizer Statistics 13 Optimizer Statistics
More informationCourse Contents of ORACLE 9i
Overview of Oracle9i Server Architecture Course Contents of ORACLE 9i Responsibilities of a DBA Changing DBA Environments What is an Oracle Server? Oracle Versioning Server Architectural Overview Operating
More informationExam: 1Z Title : Oracle9i: Performance Tuning. Ver :
Exam: Title : Oracle9i: Performance Tuning Ver : 01.22.04 Section A contains 226 questions. Section B contains 60 questions. The total number of questions is 286. Answers to the unanswered questions will
More information