GeekInterview.com
Series: Subject: Topic:
Question: 24 of 284

What are Oracle Hints and How do you use them ?

Explain the real-time situation where would you use Oracle Hits
Asked by: Interview Candidate | Asked on: Nov 24th, 2011
Showing Answers 1 - 1 of 1 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 optimizers route through its code path."

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.