Oracle SQL Tuning for Developers and DBAs


Course Number: ORC-404
Duration: 3 days (19.5 hours)
Format: Live, hands-on

Oracle SQL Training Overview

This Oracle SQL Tuning for Developers and DBAs training class teaches attendees what the Oracle Cost Based Optimizer is doing with your SQL, and why it is doing it that way, and how to make the CBO do it better. Attendees learn how to reverse engineer the CBO’s decisions and experiment with alternatives, and then push the CBO towards better decisions.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Understand the concepts behind cost-based optimization
  • Capture and read execution plans
  • Gather various types of statistics
  • Tune the basic operations: join order, join method, access method
  • Use various index types
  • Exploit the possibilities for SQL transformations and rewrites
  • Apply a SQL tuning method

Prerequisites

  • Understanding of Oracle database and instance architecture
  • Familiarity with SQL and basic PL/SQL
  • Able to work with Linux command-line tools

Outline

Expand All | Collapse All

Study the SQL Execution Cycle
  • The parse-bind-execute-fetch steps
  • Identify statements that need tuning
  • The concepts behind cost-based optimization
Consider the Critical Decisions that Must be Made
  • Join order
  • Join method
  • Access method
  • The Filtered Rows Percentage tuning methodology
Capture and Understand Query Execution Plans
  • EXPLAIN PLAN and SQL*Plus Autotrace
  • SQL Trace
  • Te DBMS_MONITOR package
  • The DBMS_XPLAN package
  • Reading query execution plans
Gather Statistics
  • Object, system, and extended statistics
  • Dynamic sampling and SQL directives
  • Histograms
  • Column group statistics
How and When to Make Use of Various Index Types
  • B-tree indexes in all their forms
  • Bitmap and bitmap join indexes
  • Index use suppression - deliberate or otherwise
Determine When Different Join Methods and Access Methods are Appropriate
  • Nested loop and hash joins, and other methods
  • Scan access paths as opposed to indexed access paths
  • Direct and indirect read
Use Hints
  • Hints as an investigative tool
  • Using hints in production
  • Commonly used (and abused) hints
Appreciate the Possibilities for Query Re-writes and CBO Transformations
  • Equivalent SQLs
  • View merging
  • Star transformations
  • Correlated sub-queries
  • Set operators
  • Implications of null values
Understand the Possibilities for Reoptimization and Various Adaptive Capabilities
  • Execution plan stability
  • Adaptive reoptimization and adaptive execution plans
  • Adaptive cursor sharing and bind variables
The Methodology
  • Calculate optimal join orders and methods
  • Look for common programmer errors
  • Recognize problematic SQL structures and operations
  •  Validate statistics
Conclusion

Training Materials

All Oracle training students receive comprehensive courseware and a related textbook.

Software Requirements

  • Intel dual-core i5 or faster processor on a 64-bit operating system with at least 8 GB RAM
  • A complete installation of Oracle
  • Please contact us for detailed setup instructions if you have purchased this class.


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan