Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using oracle hints

Status
Not open for further replies.

McBugzz

Programmer
Sep 17, 2002
90
0
0
JP
I need to make a small application that would demonstate the benefits from using hints i.e. I need a query that can be significantly optimized with hints, so that I could run it with and without hints and show the difference. Does anybody know an article of that subject or maybe some ideas?

Thanks
 
IMHO in 10g optimizer is robust enough to let you get rid of hints at all. In most cases using hints in 9i+ helps in resolving issues that in fact are related to the quality/lack of stistics.
But if you need to demostrate the power of hints, just don't gather statistics on a large table and then make a query by unique key: most probably without INDEX hint you would get a full scan :)

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top