Oracle SQL Tuning Pocket Reference by Mark Gurry

By Mark Gurry

Probably the most very important demanding situations confronted by way of Oracle database directors and Oracle builders is the necessity to track SQL statements so they execute successfully. during this e-book, Mark Gurry stocks his in-depth wisdom of Oracle's SQL assertion optimizers. Mark's wisdom is the results of many hard-fought tuning battles in the course of his a long time of delivering Oracle tuning providers to consumers. Mark offers insights into the workings of the rule-based optimizer that move well past what the foundations inform you. Mark additionally offers ideas to many universal difficulties that happen with either the rule-based and cost-based optimizers. as well as the explicit problem/solution situations for the optimizers, Mark offers a couple of convenient SQL tuning advice. He discusses a few of the optimizer tricks, telling you once they can be utilized to strong impact. eventually, Mark discusses using the DBMS_STATS package deal to control database facts, and using outlines to specify execution plans for SQL statements in third-party functions that you just cannot differently alter.

Show description

Read Online or Download Oracle SQL Tuning Pocket Reference PDF

Similar oracle books

Oracle Database 11g New Features

FOREWORD by way of Tom Kyte Your Must-Have advisor to every thing New in Oracle Database 11gRealize the complete capability of Oracle Database 11g with support from the specialists. Written by way of Robert G. Freeman, and with insightful remark all through from Arup Nanda, this Oracle Press advisor bargains complete information at the architectural alterations, database management enhancements, availability and restoration revisions, protection improvements, and programming thoughts.

Oracle Database 10g, A Beginner's Guide

Presents starting DBAs and builders with an excellent starting place within the database management and programming fundamentals had to embark on an Oracle profession. the focal point is on Oracle Database 10g, yet you’ll get the basics appropriate to all Oracle database releases.

Pro Oracle Database 12c Administration

Seasoned Oracle Database 12c management is a publication curious about effects. writer Darl Kuhn attracts from a good of expertise over a decade deep to put out real-world thoughts that result in good fortune as an Oracle Database administrator. He provides transparent causes on easy methods to practice severe projects. He weaves in concept the place precious with out bogging you down in unneeded aspect.

Oracle Application Express for Mobile Web Applications

Oracle program show is well known within the Oracle group as a useful tool for growing internet functions compatible for computing device browsers. positive factors have now been further to open up the area of cellular searching, bringing the simplicity and expressiveness of Appliction exhibit to undergo in constructing purposes to run with an almost-native feel and appear on structures corresponding to iOS, Android, and home windows mobile.

Additional resources for Oracle SQL Tuning Pocket Reference

Sample text

It is great to identify that we are using a nested loop when we shouldn't be, but what can we do about it? The answer is thatyou can consider using hints such as USE_NL, USE_HASH, or USE_MERGE. Hints are fine, but what if you are running packaged software and can't use hints? Perhaps you can create a view for reporting purposes, and place hints in the view. If you are running the rule-based optimizer, you can change to the cost-based optimizer. The cost-based optimizer has the intelligence to work out which join method is the best to use in a given situation.

Following are two sharable SQL statements: SELECT * FROM emp WHERE emp_no = :B1; Bind value: 123 SELECT * FROM emp WHERE emp_no = :B1; Bind value: 987 These statements are shareable because bind variables have been used, making the statements themselves identical. The actual bind values do not result in one statement being different from the other. Following are two non-sharable SQL statements. These statements are not sharable because bind variables have not been used, and the resulting hardcoded values make the statements different from each other.

Ideally, Oracle receives the ACCT_ADDRESS rows for the relevant account, and then joins to the ADDRESS table to determine if the addresses are in Washington. However, because so many tables are being joined, the cost-based optimizer will often process F and G independently of the other tables and then merge the data at the end. The result of joining F and G first is that all address that are in the state of Washington must be selected. That process could take several minutes, causing the overall runtime to be far beyond what it would have been if Oracle had driven all table accesses from the A table.

Download PDF sample

Rated 4.19 of 5 – based on 24 votes