Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2004, 06:11 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Oracle Spatial Question: ORA-13249

Hello,

I am suddenly obtaining an ORA-13249 error for a query which worked fine until today.


QUERY:
--------------------------------------------------------------------
SELECT /*+ index(cnngeo_spatial_idx) */ /*+ index(geo_spatial_idx) */
nb.vehicle_tag, nb.train_assignment, nb.heading,
cnngeo.CNAME AS Intersection, nb.report_time, nb.latitude,
nb.longitude,nb.speed, nb.train_assignment, nb.last_timepoint

FROM bus_master.positions@avl_187 nb, sf_addresses geo, cnngeo

WHERE sdo_nn(geo.geom,mdsys.sdo_geometry(2001,8307,mdsys .sdo_point_type(nb.longitude,nb.latitude,null),nul l,null), 'sdo_num_res=1') = 'TRUE'

AND sdo_nn(cnngeo.geom,mdsys.sdo_geometry(2001,8307,md sys.sdo_point_type(nb.longitude,nb.latitude,null), null,null), 'sdo_num_res=1') = 'TRUE'

AND nb.report_time between to_date('21-Jul-04 01:00:00 AM','DD-MON-YY HH:MI:SS AM')

AND to_date('22-Jul-04 01:00:00 AM','DD-MON-YY HH:MI:SS AM');
---------------------------------------------------------------------

I recreated indices on both tables just as a check.

I double checked the coordinate values being returned via nb.latitude and nb.longitude using QUERY:


SELECT nb.latitude, nb.longitude
FROM bus_master.positions@avl_187 nb
WHERE nb.report_time between to_date('21-Jul-04 01:00:00 AM','DD-MON-YY HH:MI:SS AM')
AND to_date('22-Jul-04 01:00:00 AM','DD-MON-YY HH:MI:SS AM');

They were in the correct range.

Any suggestions would be greatly appreciated





Similar Threads
Thread Thread Starter Forum Replies Last Post
ORA-14100 auxiora_nemesis Oracle 0 April 6th, 2007 04:25 AM
[Oracle][ODBC][Ora][ORA-01013 Corey Access 1 December 15th, 2006 10:29 AM
Another Oracle question pankaj_daga Oracle 4 May 11th, 2004 12:09 PM
Question about Oracle tools pankaj_daga Oracle 3 May 5th, 2004 02:23 PM
ORA-01006 ahrv Java Databases 1 September 20th, 2003 05:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.