Skip to Main Content

Database Software

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!

ORA-13207: incorrect use of the [SDO_EQUAL] operator

772241May 11 2010 — edited May 11 2010
Hi,

I am having troubles using the function "SDO_EQUAL". The following query raises an error message:

SELECT SDO_UTIL.TO_WKTGEOMETRY(s.spot_location) from spots s
where SDO_EQUAL(s.spot_location, SDO_GEOMETRY('POINT (-88.5945861592357 42.9480095987261)', 4326)) = 'True';

ORA-29902: error in executing ODCIIndexStart() routine
ORA-13207: incorrect use of the [SDO_EQUAL] operator
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 416
29902. 00000 - "error in executing ODCIIndexStart() routine"
*Cause: The execution of ODCIIndexStart routine caused an error.
*Action: Examine the error messages produced by the indextype code and
take appropriate action.


I think there is nothing wrong about my table, because the following queries work as expected:

SELECT SDO_EQUAL(s.spot_location, SDO_GEOMETRY('POINT (-88.5945861592357 42.9480095987261)', 4326)) from spots s;

SELECT s.spot_location
FROM spots s
WHERE SDO_RELATE(s.spot_location,
SDO_GEOMETRY('POINT (-88.5945861592357 42.9480095987261)', 4326),
'mask=EQUAL') = 'TRUE';


What is wrong about the first query?

Thanks,
Tobias
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2010
Added on May 11 2010
1 comment
1,422 views