Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Java functions and the Oracle optimizer

Java functions and the Oracle optimizer

From: Dan <daniel.ostertag_at_visaer.com>
Date: 8 Aug 2006 15:05:58 -0700
Message-ID: <1155074758.275912.210700@n13g2000cwa.googlegroups.com>


We seem to be having an issue where SQL statements that call a function written in java behave very differently than the same sql without the java function. For example, with java in the SQL a hash join is used and a large (23G) table is hashed into memory instead of the tiny 64M table it is joining to. Even when we put a hint in the code that says USE_NL (use nested loop), the sql ignores it and still does a hash join.

Is this common practice, does the optimizer get confused when non-native functions like java are called?

Any help or advice as to how to get the nested loop to work or how to get the optimizer to behave would be greatly appreciated.

Dan Received on Tue Aug 08 2006 - 17:05:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US