Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Function based index not being used
I am trying to create a function based index to speed up a query, but
the index doesn't seem to be used. The user defined function is based
on a java stored procedure, I'm not sure if that could be the problem?
Also, the function is not owned by the user creating the index, but the
function is executable by public.
Any ideas why the index is not used? Thanks.
CREATE OR REPLACE FUNCTION myFunction(inData VARCHAR2, ...)
RETURN RAW
DETERMINISTIC
AS
LANGUAGE java
NAME 'com....myFunction (java.lang.String ...) return byte[]';
/
no rows selected
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE 1 0 TABLE ACCESS (FULL) OF 'INDXTEST' Received on Wed Jul 06 2005 - 19:38:07 CDT
![]() |
![]() |