Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Why is using hints not advised?

I keep hearing that using hints is a rabbit hole and "using hints is a dangerous path to go down".
But. An example from a production environment where it's mission critical that a particular query should perform: we have a query that always uses hash join and it should - but from time to time it can happen (let's not talk about the reasons, there can be many that our team has no effect on) that cardinality estimates become way off and the CBO decides to use nested loops which in this case considerably degrades performance.
What's wrong with using a USE_HASH hint to ensure that this query will always use hash join as it should? My understanding is that at worst it will change nothing, at best it will revert the plan to the right one.
Thanks!

This post has been answered by BluShadow on Dec 9 2021
Jump to Answer

Comments

Srini Chavali-Oracle
Answer

This is driving me crazy!

That's because 11gR2 is not certified/supported on Linux 7 (regardless of what third party sites claim or blog about - see the subheading line of the blog). Only 12cR2 is http://docs.oracle.com/database/121/LADBN/toc.htm#LADBN101

So you can either (1) install 12cR2 on Linux 7 by following the steps in the official install guide or (2) downgrade your OS to Linux 5 or Linux 6 to install 11gR2 (Linux 6 requires 11.2.0.3 or higher - http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm#CHDFHIEA)

Marked as Answer by gpl_gmail · Sep 27 2020
gpl_gmail

Thanks!

I was hoping that the compatibility matrix didn't catch up with Linux 7.....

A shame in a way, most our installation are 11g and going 12c is not an option.....

Looks like we might just have to continue running dated DB and now OS.....

Thanks again!

1 - 2

Post Details

Added on Dec 9 2021
15 comments
4,003 views