You are on page 1of 7

ORACLE 11G SQL,PLSQL TUNING

SKY IT SOLUTIONS
Course scheduled to

Duration : 6 Days (daily 2 hrs)

Course benefits
The Oracle 11g SQL Tuning sessions covers investigative methods that reveal varying
levels of detail about how the Oracle database executes a SQL statement. Students
learn the different ways in which data can be accessed, which ones are most efficient
under specific circumstances, and how to ensure that the best method is used.
Partitioning topics are covered, in addition to taking advantage of hints, bind variables,
and different types of indexes.
Who should attend?
This course is valuable for candidates who have been working in Oracle SQL,PLSQL as
developers or DBAs.
Hands-on training
Exercises throughout this course offer immediate, hands-on reinforcement of the ideas
you are learning.

Day 1
====
Introduction
What is Performance Tuning?
Trade-offs Between Response Time and Throughput
Critical Resources
Steps for Tuning
Prioritized Steps of the Tuning Method
Measurable Tuning Goals
SKY IT SOLUTIONS
K 30, B2, Shakti Apartments,Anna Nagar East,Chennai 600 102
Ph : 91-44-26202037, 9840457811
Web site : www.skyit.co.in Mail: oradin@skyit.co.in, emailskyit@gmail.com
Page : 1

ORACLE 11G SQL,PLSQL TUNING


SKY IT SOLUTIONS

Oracle Cost based optimizer


The Oracle Optimizer
Cost-Based Optimization
Understanding a method of execution of a SQL
SQL Plan Management
SQL Plan Management: Overview
SQL Plan Baseline: Architecture
Evolving SQL Plan Baselines
SQL Plan Selection
Database structures and SQL
Effect of PCTFREE & PCTUSED on DML
Row Chaining & Row Migration
Table high-water mark, Free and Unused space
Row-resequencing and Oracle SQL I/O performance
Table partitioning
Day 2
====
Materialized View
Purpose of Materialized views
Refreshing MV
Query Rewrite
SKY IT SOLUTIONS
K 30, B2, Shakti Apartments,Anna Nagar East,Chennai 600 102
Ph : 91-44-26202037, 9840457811
Web site : www.skyit.co.in Mail: oradin@skyit.co.in, emailskyit@gmail.com
Page : 2

ORACLE 11G SQL,PLSQL TUNING


SKY IT SOLUTIONS

Rewrite or Error

Coding, Structures that enhances SQL/plsql performance

Bulk Binds
Use bulk binding for multi-row operations
Selecting huge volume of data
Inserting
Appending data above HWM Advantage
Understanding HWM
using hints
direct path load
REF CURSOR
Types of Ref Cursors
Advantages
Usage
Passing as parameters
Day 3
====
PL/SQL Function Result Cache
Using result cache hint
Cached and not cached clause in Function
Result_cache and relies_on
SKY IT SOLUTIONS
K 30, B2, Shakti Apartments,Anna Nagar East,Chennai 600 102
Ph : 91-44-26202037, 9840457811
Web site : www.skyit.co.in Mail: oradin@skyit.co.in, emailskyit@gmail.com
Page : 3

ORACLE 11G SQL,PLSQL TUNING


SKY IT SOLUTIONS

SQL Result Cache


RESULT_CACHE_MODE
Using and Managing Result cache
Understanding indexes and usage
Using Indexes: Considering Nullable Columns
Bitmap Indexes, Function based, Reverse Key Indexes &Invisible
Index
Guidelines for Managing Indexes
Monitoring Index Usage
Day 4
====
Building and deleting statistics
System statistics
Object ,schema statistics
Export and import of statistics
Restoring old statistics
Pending and published statistics
Recovering previous statistics
Estimating Statistics with Dynamic Sampling
Handling Missing Statistics
Identifying Problem SQL Statements
Characteristics of a bad SQL statement
SKY IT SOLUTIONS
K 30, B2, Shakti Apartments,Anna Nagar East,Chennai 600 102
Ph : 91-44-26202037, 9840457811
Web site : www.skyit.co.in Mail: oradin@skyit.co.in, emailskyit@gmail.com
Page : 4

ORACLE 11G SQL,PLSQL TUNING


SKY IT SOLUTIONS

Influencing the Optimizer


Components of query optimizer
o Transforming queries
o Selectivity
o Cardinality
o Cost
o Generating plans
Histogram
Extended statistics
Expression statistics
Real time SQL Monitoring
Day 5
====
SQL Tuning Tools
Hash Joins, Sort merge Join, Nested Loop
Using Indexes appropriately
Using Autotrace
Optimizer Mode
Optimizer hints (used in statement level)
Optimizer Modes meant for OLTP and DSS
Invoking the SQL Trace Facility
Tkprof
SKY IT SOLUTIONS
K 30, B2, Shakti Apartments,Anna Nagar East,Chennai 600 102
Ph : 91-44-26202037, 9840457811
Web site : www.skyit.co.in Mail: oradin@skyit.co.in, emailskyit@gmail.com
Page : 5

ORACLE 11G SQL,PLSQL TUNING


SKY IT SOLUTIONS

Formatting Trace Files with TKPROF


Interpreting the Output of the TKPROF Command
Optimizer Plan Stability
Bind variable Usage ( Soft Parse / Hard Parse (How to reduce),
Effects of CURSOR_SHARING Parameter(Benefits/BAD Effects)
Evaluating Large-table, full-table scans
Fasten Full Table Scan

Parallel query
About parallel query sets
Overview About of Parallel query explain plan
Day 6
====
Tuning redo generation
Unnecessary index
Select for update
Update only the data of significance
Unnecessary commit
Global temp tables
External tables
Overview about AWR
Automatic SQL Tuning in Oracle Database 11g
SQL Tuning Analysis
SQL Tuning Advisor
SKY IT SOLUTIONS
K 30, B2, Shakti Apartments,Anna Nagar East,Chennai 600 102
Ph : 91-44-26202037, 9840457811
Web site : www.skyit.co.in Mail: oradin@skyit.co.in, emailskyit@gmail.com
Page : 6

ORACLE 11G SQL,PLSQL TUNING


SKY IT SOLUTIONS

Creating SQL Tuning Tasks

Database parameter to be known


db_file_multiblock_read_count
optimizer_index_caching
optimizer_index_cost_adj
cursor_space_for_time
session_cache_cursors
db_nk_cache_size
shared_pool_reserved_size
object_cache_optimal_size
object_cache_max_size_percent
**************

SKY IT SOLUTIONS
K 30, B2, Shakti Apartments,Anna Nagar East,Chennai 600 102
Ph : 91-44-26202037, 9840457811
Web site : www.skyit.co.in Mail: oradin@skyit.co.in, emailskyit@gmail.com
Page : 7

You might also like