did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780596002688

Oracle SQL Tuning

by
  • ISBN13:

    9780596002688

  • ISBN10:

    0596002688

  • Format: Paperback
  • Copyright: 2001-11-01
  • Publisher: Oreilly & Associates Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $9.95 Save up to $0.96
  • Buy New
    $9.65

    USUALLY SHIPS IN 2-3 BUSINESS DAYS

Supplemental Materials

What is included with this book?

Summary

Mark Gurry's in-depth knowledge of Oracle's SQL statement optimizers yields insights into the workings of the rule-based optimizer that take readers well beyond what the rules tell them. This little book is a rich source of handy SQL tuning tips and solutions to many common problems using both rule- based and cost-based optimizers. Oracle SQL Tuning Pocket Reference covers how to use the various optimizer hints to good effect; managing database statistics with the DBMS_STATS package; and using outlines to specify execution plans for SQL statements in third-party applications. Replete with real- world examples drawn from over a decade of tuning work for some of Australia's largest corporations

Author Biography

As a database administrator on a financial IMS project about eight years ago, Mark Gurry was asked to investigate his company's database direction for the next five years. The number of users was up to 950, the cost of maintaining the mainframes was huge, and he'd heard about relational databases and downsizing. After much investigation, he chose Oracle, and has stuck with the system ever since. He has worked as Manager of Computing and Network Services, senior database administrator, senior Oracle technical support, and other jobs. He now has a small consulting company called New Age Consultants. Mark has worked for many large organizations and is currently working for Telecom Australia, the largest computer site in Australia and one of the largest in the world. He has also spoken on tuning at Oracle user group meetings and has given internal tuning courses at several of his larger client sites. He has been a senior team member on award-winning systems that have been developed using Oracle.

Table of Contents

Introductionp. 1
The SQL Optimizersp. 4
Understanding the Rule-Based Optimizerp. 5
Understanding the Cost-Based Optimizerp. 11
Some Common Optimizer Misconceptionsp. 19
Which Optimizer to Use?p. 19
Rule-Based Optimizer Problems and Solutionsp. 20
Incorrect Driving Tablep. 21
Incorrect Indexp. 22
Incorrect Driving Indexp. 23
Using the Order By Index and not the Where Indexp. 25
Cost-Based Optimizer Problems and Solutionsp. 26
The Skewness Problemp. 26
Analyzing with Wrong Datap. 29
Mixing the Optimizers in Joinsp. 31
Choosing an Inferior Indexp. 33
Joining Too Many Tablesp. 36
Incorrect Init. Ora Parameter Settingsp. 38
Problems Common to Rule and Cost with Solutionsp. 43
Statement Not Written for Indexesp. 43
Indexes Are Missing or Inappropriatep. 47
Use of Single-Column Index Mergep. 50
Misuse of Nested Loop, Sort Merge, or Hash Joinp. 51
Misuse of in, Exists, Not in, Not Exists, or Table Joinsp. 54
Unnecessary Sortsp. 59
Too Many Indexes on a Tablep. 61
Use of Or Instead of Unionp. 63
Tables and Indexes with Many Deletesp. 64
Other Problems: Heavy Usage of Viewsp. 66
Other Problems: Joining Too Many Tablesp. 67
Handy SQL Tuning Tipsp. 67
Identify Bad SQLp. 67
Identify Long-Running SQL Statementsp. 68
Use Decode for If/Else Selectionp. 69
Encourage Bind Variablesp. 70
Using SQL Hintsp. 72
When Are Hints Ignored?p. 73
Using Hints in Viewsp. 74
Available Hintsp. 74
Using DBMS_STATS to Manage Statisticsp. 94
Using DBMS_STATS to Analyze Fasterp. 94
Copying Statistics Using DBMS_STATSp. 95
Manipulating Statistics Using DBMS_STATSp. 96
Reverting to Previous Statisticsp. 97
Using Outlines for Consistent Execution Plansp. 98
Recording Outlinesp. 98
Enabling Outlinesp. 100
Managing Outlinesp. 101
Table of Contents provided by Syndetics. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program