SlideShare a Scribd company logo
Presented By
www.orienit.com
 Hints give specific information that we
know about our data and application.
 A way to override the default query
optimization in the DBMS
 Influence the execution plan of query
www.orienit.com
 Oracle optimizer may not always choose
the best execution plan
 Using hints may improve the performance
by changing the execution plan oracle
takes.
www.orienit.com
 Hints can be used in the Select, Delete, and
Update clauses.
 In each statement, the hint goes directly
after the Select, Delete, or Update
keyword. A few hints use Insert.
 Hints are placed in the /*+ */ tag, where
the hint goes after the + sign
 Ex: SELECT /*+ ALL_ROWS */ From…
www.orienit.com
 Approach hints
 Access hints
 Join hints
 Misc. hints
www.orienit.com
 ALL_ROWS: Minimizes total resource
consumption. Results will be returned
only after all processing has been
completed
 FIRST_ROWS(n): Minimized response
time, or minimal resource usage to return
the first n rows.
www.orienit.com
 FULL(table): Chooses a full table scan for
the table, even if there is an index available.
 INDEX(table [index [index]...]): Chooses an
Index scan for the table.
www.orienit.com
 CIS Department has far more males than
females
 SELECT /*+ FULL(s) */ id, name
FROM Student s
WHERE sex = ‘m’;
 SELECT /*+ Index(s sex_index) */ id, name
FROM Student s
WHERE sex = ‘f’;
www.orienit.com
 ORDERED: tables are joined in the order in
which they appear in the FROM clause.
 LEADING(table): specified table is the first
table used in the join order.
 USE_HASH(table [table] …): Tables are
joined using a hash join. Smaller table is
used to make a hash table on join key. The
larger table is scanned using hash table to
find joined rows.
www.orienit.com
 USE_NL(table [table]…): Joins tables using
nested loops join, using specified table as
inner join. For every row in outer table, oracle
accesses every row in inner table.
 USE_MERGE(table [table]…): Joins tables
using a sort-merge join. Sorted list are made
and then merged together. Best if tables are
already sorted.
www.orienit.com
 APPEND: Data is appended to the end of table,
rather then using existing space.
 CACHE(table): Blocks received are placed at
the most recently used end of the LRU list in
the buffer cache when a full table scan is
preformed.
 NOCACHE(table): Blocks received are placed
at the least recently used end of the LRU list in
the buffer cache.
www.orienit.com
 Oracle documentation at:
http://oracle.cis.ksu.edu/oradocs/index.htm
www.orienit.com
Beier hints

More Related Content

PPTX
Advanced Excel Courses Mumbai
PPTX
Hash table (2)
PPT
computer notes - Data Structures - 37
PPTX
PPTX
Advanced Spreadsheet Skills - Empowerment Technologies
PDF
Using Functions in Excel
PPT
MS excel functions
Advanced Excel Courses Mumbai
Hash table (2)
computer notes - Data Structures - 37
Advanced Spreadsheet Skills - Empowerment Technologies
Using Functions in Excel
MS excel functions

What's hot (20)

PPTX
Oracle: Joins
PPTX
Office technology
PPTX
How to use Hlookup find an exact match
PPT
Spreadhsheets 1
PPTX
10 Excel Formulas that will help you in any Job
PPTX
Use of Excel Spreadsheets in Computing Grades
PDF
VLOOKUP Function - Marelen Talavera - Vivacious Analytic
PPTX
Vlookup - an introduction
PPTX
EXCEL PRIMER
PPT
Rick Watkins Docs
PPTX
joins and subqueries in big data analysis
PPTX
Using Excel Functions
PPTX
Sumif () ppt
PPT
Types Of Join In Sql Server - Join With Example In Sql Server
PPT
PPTX
V19 join method-c
PPT
Spreadhsheets 1
PDF
Excel Tutorials - VLOOKUP and HLOOKUP Functions
PPT
Sql join
Oracle: Joins
Office technology
How to use Hlookup find an exact match
Spreadhsheets 1
10 Excel Formulas that will help you in any Job
Use of Excel Spreadsheets in Computing Grades
VLOOKUP Function - Marelen Talavera - Vivacious Analytic
Vlookup - an introduction
EXCEL PRIMER
Rick Watkins Docs
joins and subqueries in big data analysis
Using Excel Functions
Sumif () ppt
Types Of Join In Sql Server - Join With Example In Sql Server
V19 join method-c
Spreadhsheets 1
Excel Tutorials - VLOOKUP and HLOOKUP Functions
Sql join
Ad

Similar to Beier hints (20)

PPT
Myth busters - performance tuning 101 2007
PPTX
Lesson 2_Working_with_Tables_and_SQL_Commands.pptx
PPT
Indexing Strategies
PDF
hashing.pdf
PPTX
ADVANCE ITT BY PRASAD
PPT
Views, Triggers, Functions, Stored Procedures, Indexing and Joins
PPTX
MULTIPLE TABLES
PPT
PDF
Mysql cheatsheet
PPT
MYSQL
PPTX
9 - Advanced Functions in MS Excel.pptx
ODP
Mysql database
DOCX
1 Week 4 What Well Be Working on This Week B.docx
PDF
Simple formulas excel
PDF
database in my squel assignment for students.pdf
PPTX
Hashing Technique In Data Structures
PPTX
PPTX
Introduction to oracle optimizer
DOCX
Internal tables
Myth busters - performance tuning 101 2007
Lesson 2_Working_with_Tables_and_SQL_Commands.pptx
Indexing Strategies
hashing.pdf
ADVANCE ITT BY PRASAD
Views, Triggers, Functions, Stored Procedures, Indexing and Joins
MULTIPLE TABLES
Mysql cheatsheet
MYSQL
9 - Advanced Functions in MS Excel.pptx
Mysql database
1 Week 4 What Well Be Working on This Week B.docx
Simple formulas excel
database in my squel assignment for students.pdf
Hashing Technique In Data Structures
Introduction to oracle optimizer
Internal tables
Ad

More from sreehari orienit (20)

PDF
Oracle dba trainining in hyderabad
PDF
Oracleapps scm trainining in hyderabad
PDF
Oracleapps finance trainining in hyderabad
PPTX
Basic oracle-database-administration
PDF
Oracle adf-training-in-hyderabad
PPT
Oracle training-in-hyderabad
PDF
Oracle adf-training-in-hyderabad
PPT
Oracle training institutes in hyderabad
PDF
Oracle webcenter trainining in hyderabad
PDF
Oracle soa trainining in hyderabad
PDF
Oracle obiee trainining in hyderabad
PDF
Oracleapps technical trainining in hyderabad
PDF
Oracleapps finance trainining in hyderabad
PDF
Oracle adf trainining in hyderabad
PDF
Hadoop training in hyderabad
PPTX
Oracle institutes in Hyderabad.
PDF
Oracleapps finance trainining in hyderabad
PDF
Oracle adf trainining in hyderabad
PDF
Oracleapps scm trainining in hyderabad
PDF
Oracleapps hrms trainining in hyderabad
Oracle dba trainining in hyderabad
Oracleapps scm trainining in hyderabad
Oracleapps finance trainining in hyderabad
Basic oracle-database-administration
Oracle adf-training-in-hyderabad
Oracle training-in-hyderabad
Oracle adf-training-in-hyderabad
Oracle training institutes in hyderabad
Oracle webcenter trainining in hyderabad
Oracle soa trainining in hyderabad
Oracle obiee trainining in hyderabad
Oracleapps technical trainining in hyderabad
Oracleapps finance trainining in hyderabad
Oracle adf trainining in hyderabad
Hadoop training in hyderabad
Oracle institutes in Hyderabad.
Oracleapps finance trainining in hyderabad
Oracle adf trainining in hyderabad
Oracleapps scm trainining in hyderabad
Oracleapps hrms trainining in hyderabad

Recently uploaded (20)

PDF
Business Ethics Teaching Materials for college
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Cell Structure & Organelles in detailed.
PPTX
master seminar digital applications in india
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
01-Introduction-to-Information-Management.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Microbial disease of the cardiovascular and lymphatic systems
Business Ethics Teaching Materials for college
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Institutional Correction lecture only . . .
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India
TR - Agricultural Crops Production NC III.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
O5-L3 Freight Transport Ops (International) V1.pdf
VCE English Exam - Section C Student Revision Booklet
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O7-L3 Supply Chain Operations - ICLT Program
Basic Mud Logging Guide for educational purpose
Cell Structure & Organelles in detailed.
master seminar digital applications in india
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
01-Introduction-to-Information-Management.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Module 4: Burden of Disease Tutorial Slides S2 2025
Microbial disease of the cardiovascular and lymphatic systems

Beier hints

  • 2.  Hints give specific information that we know about our data and application.  A way to override the default query optimization in the DBMS  Influence the execution plan of query www.orienit.com
  • 3.  Oracle optimizer may not always choose the best execution plan  Using hints may improve the performance by changing the execution plan oracle takes. www.orienit.com
  • 4.  Hints can be used in the Select, Delete, and Update clauses.  In each statement, the hint goes directly after the Select, Delete, or Update keyword. A few hints use Insert.  Hints are placed in the /*+ */ tag, where the hint goes after the + sign  Ex: SELECT /*+ ALL_ROWS */ From… www.orienit.com
  • 5.  Approach hints  Access hints  Join hints  Misc. hints www.orienit.com
  • 6.  ALL_ROWS: Minimizes total resource consumption. Results will be returned only after all processing has been completed  FIRST_ROWS(n): Minimized response time, or minimal resource usage to return the first n rows. www.orienit.com
  • 7.  FULL(table): Chooses a full table scan for the table, even if there is an index available.  INDEX(table [index [index]...]): Chooses an Index scan for the table. www.orienit.com
  • 8.  CIS Department has far more males than females  SELECT /*+ FULL(s) */ id, name FROM Student s WHERE sex = ‘m’;  SELECT /*+ Index(s sex_index) */ id, name FROM Student s WHERE sex = ‘f’; www.orienit.com
  • 9.  ORDERED: tables are joined in the order in which they appear in the FROM clause.  LEADING(table): specified table is the first table used in the join order.  USE_HASH(table [table] …): Tables are joined using a hash join. Smaller table is used to make a hash table on join key. The larger table is scanned using hash table to find joined rows. www.orienit.com
  • 10.  USE_NL(table [table]…): Joins tables using nested loops join, using specified table as inner join. For every row in outer table, oracle accesses every row in inner table.  USE_MERGE(table [table]…): Joins tables using a sort-merge join. Sorted list are made and then merged together. Best if tables are already sorted. www.orienit.com
  • 11.  APPEND: Data is appended to the end of table, rather then using existing space.  CACHE(table): Blocks received are placed at the most recently used end of the LRU list in the buffer cache when a full table scan is preformed.  NOCACHE(table): Blocks received are placed at the least recently used end of the LRU list in the buffer cache. www.orienit.com
  • 12.  Oracle documentation at: http://oracle.cis.ksu.edu/oradocs/index.htm www.orienit.com