Skip to Main Content

Oracle Database Discussions

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!

Avoiding merge-join cartesian

user5716448Apr 12 2018 — edited Apr 17 2018

Hi,

Using oracle 11.2.0.3

We have seen a sql which usually takes under 1 minute and runs every day for years suddenly take 11 hrs to run

data volumes similar to usual and database workload likewise - other sqls o.k.

When try run explain plan can see merge join cartesian and also looks to be plan used when database was running.

Even if put below in a window

alter session set "_optimizer_cartesian_enabled"=FALSE;

alter session set "_optimizer_mjc_enabled" = FALSE;

and then run explain plan on sql still looks to use merge join cartesian.

What would be recommendations to avoid merge join cartesian being used?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2018
Added on Apr 12 2018
25 comments
8,737 views