What are Oracle Hints and How do you use them ?

Explain the real-time situation where would you use Oracle Hits

Showing Answers 1 - 9 of 9 Answers

Oracle optimizer is responsible for handling different situations by making appropriate decisions based on database statistics. It will create route path that is most appropriate to execute the code.

Oracle hints are used when there is a need to instruct or guide the Oracle optimizer to make custom decisions instead of its own decisions which are made based on database statistics.

That means by making use of Hints we are basically giving instruction to the optimizer and telling it which route it should follow to execute the code and thereby affecting the outcome of Oracle optimizer's decision.

Some of the Hint types are as follows:
- Access Hints
- Join Order Hints
- Joint Operations Hints
- Parallel Execution Hints
- Optimization Hints

Jonathan Lewis states that "Hints are interception points in the optimizer code path, and must be obeyed."
and he further adds that "Hint affects the optimizer’s route through its code path."

  Was this answer useful?  Yes

kalpana

  • Oct 28th, 2014
 

Optimizer hints are used with SQL statements to alter execution plans.We are suggesting oracle how the statement should be executed.
syntax : /*+RULE */

  Was this answer useful?  Yes

Abhijit Musale

  • Mar 23rd, 2015
 

To override the flow of execution and priority of the execution we can use oracle optimizer hints.(e.g. PARALLEL,APPEND,etc.)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions