ORA-29902 ERROR  on a querry

We get this error with the following querry:
SELECT
DISTANCE FROM DIST_PTS
WHERE (CLLI = 'CHCGILCL') AND (MDSYS.SDO_NN (GEOLOC,
MDSYS.SDO_GEOMETRY (2001, NULL,
MDSYS.SDO_POINT_TYPE (-87.63804626464844, 41.879520416259766, NULL),
NULL, NULL), 'SDO_NUM_RES=1') = 'TRUE');
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13236: internal error in R-tree processing: [failed to allocate memory]
ORA-06512: at "MDSYS.SDO_INDEX_METHOD", line 84
ORA-06512: at line 1
Our table has 25 million records and we are using Oracle 8.1.7
We were getting this error with 8.1.6 and were advised to upgrade. We did but we get the same error. Has anyone seen this ?

I am getting a similar error code trying to run the "Nearest
Neighbor" sample code:
error message:
ORA-29902: error in executing ODCIindexStart()routine
ORA-13207: incorrect use of the [NO UNITS SUPPORTED] operator
ORA-06512: at "MYSYS.SDO_INDEX_METHOD" line 83
partial code:
v_latlong := v_latlong.findlocation();
if v_latlong.numTotalCand > 0 then
v_lat := v_latlong.getLatitude(1);
v_long := v_latlong.getLongitude(1);
found3 := FALSE;
dist := .25;
while found3 = false loop
dist := dist + .25;
select a, b, c INTO r_a, r_b, r_c from atable where
SDO_WITHIN_DISTANCE(atable.GEOLOC,MDSYS.SDO_GEOMETRY
(2001,NULL,MDSYS.SDO_POINT_TYPE(v_long,v_lat,NULL),NULL,NULL),
'distance = dist, Unit=MILE, layer_gtype = POINT')
= 'TRUE';
cnt := cnt + 1;
end loop;
if cnt >= 2 then
found3:= TRUE;
end if;
The only references I am finding to the ODCI Index is in the
Oracle Data Cartridge Developers manual. SInce I am not
developing a Data Cartridge, I am assuming the error is coming
from either the Oracle Geocoder or the MapInfo implementation of
that. In either case I do not see how I can correct the
problem.
Is the suggestion that there might be a problem with the
geometry (in my case both are x,y points)?
Thank you for any help

Similar Messages

  • SQL Error: ORA-29902: error in executing ODCIIndexStart() routine

    I am running a SDO_RELATE operation on 2 geometries from 2 different tables. Spatial indexes are already created and the tables are also versioned.
    Below is the spatial meta data for both the geometries in user_sdo_geom_metadata table:
    DIMINFO is :
    MDSYS.SDO_DIM_ELEMENT(MDSYS.SDO_DIM_ELEMENT(Easting,0,700000,0.001),MDSYS.SDO_DIM_ELEMENT(Northing,0,1300000,0.001),MDSYS.SDO_DIM_ELEMENT(Height,-100,2000,0.001))
    SRID is 27700
    When I use SDO_RELATE or ADO_ANYINTERACT on both the geometires, i am getting the below error.
    Error report:
    SQL Error: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13243: specified operator is not supported for 3- or higher-dimensional R-tree
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 333
    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.
    Could you please let me know what should be the root cause for this issue?

    Hi
    Have you checked this posting?
    Re: ORA-13243
    Luc

  • ORA-29902: error in executing ODCIIndexStart() routine

    Hi,
    I have a problem with my text mining application.
    when I start the classification procedure I get the following errors
    Error executing statement: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drcs_query
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    ORA-06512: at "CTXSYS.DRVODM", line 676
    ORA-01426: numeric overflow
    ORA-06512: at line 1
    After closing and restarting the SQL Navigator, most times it works again, but not every time.
    Here is the procedure I use:
    PROCEDURE sp_classify
    IS
    vc2_sqlcommand VARCHAR2(1000);
    guete DBMS_SQL.number_table;
    branche DBMS_SQL.varchar2_table;
    BEGIN
    vc2_sqlcommand := 'ALTER TABLE ergebnisse MOVE TABLESPACE xxx;
    execute IMMEDIATE vc2_sqlcommand;
    n_matchscore := 20;
    INSERT INTO ergebnisse
    SELECT rt.cat_id, pt.produktions_id, match_score(1) AS MatchScore
    FROM produktionsdaten pt, trainingsregeln rt
    WHERE matches ( rt.rule, pt.geschaeftsgegenstand, 1) > n_matchscore;
    COMMIT;
    vc2_sqlcommand :=
    'CREATE INDEX I_ERG_PRODID ON ERGEBNISSE ' ||
    '( PRODUKTIONS_ID ASC ) ' ||
    'TABLESPACE XXX' ||
    'STORAGE ( INITIAL 64K ' ||
    'NEXT 64K ' ||
    'PCTINCREASE 0 ' ||
    execute IMMEDIATE vc2_sqlcommand;
    Please help me
    Greetz Steffi Schweppe
    Message was edited by:
    user634781

    I agree with Omar, However if you want to search using special character, you may want to look into the following example. I am not saying this may be a solution for you, however this may give you a start on how to deal with special character in you search.
    In our enviroment we have "N" number of Science & Pharmacy & Chemical clients. They need the ability to search using special character for that we have done the following..
    begin
    select user into v_username from dual;
    ctx_ddl.create_preference('orc_CTX_WLPREF', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute('orc_CTX_WLPREF','SUBSTRING_INDEX','TRUE');
    ctx_ddl.set_attribute('orc_CTX_WLPREF','WILDCARD_MAXTERMS','2559');
    ctx_ddl.Create_Preference('orc_LEXER','BASIC_LEXER');
    ctx_ddl.Set_Attribute('orc_LEXER', 'index_themes', 'FALSE');
    ctx_ddl.set_attribute('orc_LEXER','printjoins','0123456789%,./?;:<>[]{}\|+=-_()*&^$#@!''"%');
    end;
    And then siply create the index as follow..
    create index index_name on activitylog(columnname)
    indextype is ctxsys.context
    parameters ('Wordlist CYBERLAB_CTX_WLPREF lexer CYBERLAB_LEXER memory 48M');
    then I am able to do something like the following..
    select count(*) from ACTIVITYLOG where contains (DESCRIPTION, '<%.htm@') > 0;
    hope this helps..

  • CONTAINS clause and the ORA-29902 error.

    Hello folks,
    I am encountering the following error in APEX.
    report error:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-10825: stored query does not exist: employee
    DRG-10825: stored query does not exist: employee
    Here is the rest of the information :
    1. I have created the index on the column in question as specified here.
    bq. {color:#0000ff} CREATE INDEX{color} \\ {color:#0000ff} \\ emp_idx ON meta_eul (display_name){color} \\ {color:#0000ff} \\ indextype is ctxsys.context; \\ {color}
    2. I have created the sqe for the word as suggested [here |http://download-west.oracle.com/docs/cd/B19306_01/text.102/b14218/cqrypkg.htm#i997218]: employee
    bq. {color:#0000ff} begin{color} \\ {color:#0000ff} \\ ctx_query.store_sqe('employee', 'empl or emp');{color} \\ {color:#0000ff} \\ end;{color}
    3. When I execute the following sql in sql developer, I get results
    bq. {color:#0000ff} SELECT SCORE(1), A.DISPLAY_NAME \\ FROM meta_eul a \\ WHERE 1 =1 \\ AND CONTAINS(A.DISPLAY_NAME , 'sqe(employee)', 1)&gt; 0 \\ ORDER BY SCORE(1) \\ {color}
    4. I have the same query in #3 above as a region in my Page.
    When I execute it, I get the error that I have mentioned above.
    Any thoughts ? Is this a limitation ?
    I am on Apex version 3.0
    Regards,
    Atul

    Thanks, Roel.
    A similar option that worked out as an alternative is that I have changed the region code to :
    bq. {color:#0000ff}SELECT SCORE(1), A.DISPLAY_NAME \\     FROM meta_eul a \\     WHERE 1 =1 \\     AND CONTAINS(A.DISPLAY_NAME , 'emp or empl or employee', 1)&gt; 0 \\     ORDER BY SCORE(1) \\ {color}
    and have avoided the sqe part. This doesn't seem to have an issue in Apex.

  • ORA-20001: ORA-29902: error in executing ODCIIndexStart() routine

    Hi, everyone!
    I have an error as follow:
    ORA-20001: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-06553: PLS-123: program too large
    I can get the sql where the procedure through the error, and execute the sql in sqlplus, no error. Does anyone have experience with the error? or have some direction to solve problem? thank you!
    My oracle version is 9.2.0.8.0 and sdo version is 9.2.0.8.0, too.

    I agree with Omar, However if you want to search using special character, you may want to look into the following example. I am not saying this may be a solution for you, however this may give you a start on how to deal with special character in you search.
    In our enviroment we have "N" number of Science & Pharmacy & Chemical clients. They need the ability to search using special character for that we have done the following..
    begin
    select user into v_username from dual;
    ctx_ddl.create_preference('orc_CTX_WLPREF', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute('orc_CTX_WLPREF','SUBSTRING_INDEX','TRUE');
    ctx_ddl.set_attribute('orc_CTX_WLPREF','WILDCARD_MAXTERMS','2559');
    ctx_ddl.Create_Preference('orc_LEXER','BASIC_LEXER');
    ctx_ddl.Set_Attribute('orc_LEXER', 'index_themes', 'FALSE');
    ctx_ddl.set_attribute('orc_LEXER','printjoins','0123456789%,./?;:<>[]{}\|+=-_()*&^$#@!''"%');
    end;
    And then siply create the index as follow..
    create index index_name on activitylog(columnname)
    indextype is ctxsys.context
    parameters ('Wordlist CYBERLAB_CTX_WLPREF lexer CYBERLAB_LEXER memory 48M');
    then I am able to do something like the following..
    select count(*) from ACTIVITYLOG where contains (DESCRIPTION, '<%.htm@') > 0;
    hope this helps..

  • ORA-29902 Error when executing context query

    We sometimes get the following error when executing a search based on keywords entered by a user:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Error generating context stmt ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: interMedia Text error: DRG-50901: text query <HR></BLOCKQUOTE>
    A demonstration of the error can be seen by going to the main
    http://technet.oracle.com technet page and then performing a site search. Type in any of the following search phrases:
    Oracle and not Microsoft
    not Microsoft
    and database
    In my brief experimentation, the presence of any of
    not, and, or
    at the beginning of the keywords, or next to each other 'and not' within the keywords set causes the above oracle error.
    OK, I could train the users not to do this, but with the potential for every net user on the planet using my site, it might take me some time to speak to all of them.
    So how do I stop Intermedia from throwing up the error? I have written a quick parser to try to strip out offending entries, but that is not, imho, a good solution, as I do not know all the rules that will break it.
    tia

    You need to write a text query parser. Check the Query Translator code samples from http://technet.oracle.com/sample_code/products/text/content.html

  • ORA-29902 error with CONTAINS()

    Hello,
    I have trouble using the CONTAINS() function on an indexed document.
    I created the index with
    create index ikenndatenTextIndex
    on kenndaten_as_column_500 x (kenndaten)
    indextype is ctxsys.context
    +++++++++++++++++++++++++++++++++++++++++++++
    with Result:
    Index created
    +++++++++++++++++++++++++++++++++++++++++++++
    where the column "kenndaten" contains XMLType Documents
    Now, typing in isqlplus:
    select extract(x.kenndaten,'/kenndaten/schlagworte')
    from kenndaten_as_column_500 x
    WHERE CONTAINS(kenndaten,'$("taken") INPATH (/kenndaten/schlagworte)') > 0;
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    gets the desired result:
    EXTRACT(X.KENNDATEN,'/KENNDATEN/SCHLAGWORTE')
    <schlagworte>group an corporate the taken </schlagworte>
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    Here is the Problem:
    If I do not look for "taken" but for "was":
    select extract(x.kenndaten,'/kenndaten/schlagworte')
    from kenndaten_as_column_500 x
    WHERE CONTAINS(kenndaten,'$("was") INPATH (/kenndaten/schlagworte)') > 0;
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    I get:
    select extract(x.kenndaten,'/kenndaten/schlagworte')
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    +++++++++++++++++++++++++++++++++++++++++++++++++++++
    Using {was} instead of "was", typing \w\a\s or simply using ...CONTAINS(kenndaten,'$(was) INPATH...
    gets the same result
    I have no problem looking for words like "and","or","inpath" and the like
    Any ideas?
    Gregor Heuer

    HI,
    I don't know very well Oracle Text, but perhaps the next doc could you help on this one :
    http://www.oracle.com/technology/products/text/index.html
    http://www.oracle.com/technology/oramag/oracle/04-sep/o54text.html
    Nicolas.

  • ORA-29902: error in executing ODCIIndexStart() routine ORA-06502: PL/SQL: n

    I'm trying a simple spatial query and this does not work:
    select count(1) from will w,
    t_line_sdo t
    where w.ID = 2 --
    and SDO_relate(T.sdo, W.sdo,
    'mask=anyinteract querytype=WINDOW')= 'TRUE'
    t_line_sdo is indexed on sdo column.
    will is indexed on sdo column
    I get an error in executing ODCIIndexStart() routine.
    But this works:
    select count(1) from will w,
    t_line_sdo t
    where w.ID = 2 --
    and SDO_filter(T.sdo, W.sdo,
    'querytype=WINDOW')= 'TRUE'
    -puzzled

    Hi Will,
    No luck reproducing the error on my 9.2.0.1 system.
    I slightly changed the user_sdo_geom_metadata entries to set the coordinate system bounds/tolerance to:
    -180,180,0.5
    -90,90,0.5
    but I don't think those would have been the difference.
    Another change I made was to the queries to use t_line_sdo instead of t_line.
    If I was writing the query I might make one slight modification though - I'd use the /*+ ordered */ hint:
    select /*+ ordered */ count(1) ALBERTA from will w,
    t_line_sdo t
    where w.CAN_BOR_35_ID = 2
    and SDO_RELATE( t.sdo, w.sdo,
    'mask=anyinteract querytype=WINDOW')= 'TRUE';
    Perhaps this will help you.
    Here is what I did:
    CREATE TABLE WILL
    CAN_BOR_35_ID NUMBER (17) NOT NULL,
    BOR_CODE VARCHAR2(5),
    SDO MDSYS.SDO_GEOMETRY NOT NULL
    --Here's my insert:
    INSERT INTO WILL
    VALUES ( 2, 'ALBT', MDSYS.SDO_GEOMETRY(
    2003, -- 2-dimensional polygon
    8307, -- SRID for 'Longitude / Latitude (WGS 84)' coordinate system
    NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 1),
    MDSYS.SDO_ORDINATE_ARRAY( -114.05013, 49.00081, -- ALBT1
    -109.98920, 48.98902, -- SASK1
    -110.00531, 49.50556, -- SASK6
    -114.59275, 49.50253, -- ALBT2
    -114.05013, 49.00081) -- ALBT1 -- CLOSE THE LOOP
    COMMIT;
    -- of course I did the insert into the metadata table...
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES (
    'WILL',
    'SDO',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', -180, 180, 0.5),
    MDSYS.SDO_DIM_ELEMENT('Y', -90, 90, 0.5)),
    8307 -- SRID for 'Longitude / Latitude (WGS 84)' coordinate system
    INSERT INTO USER_SDO_GEOM_METADATA
    VALUES (
    'T_LINE_SDO',
    'SDO',
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', -180, 180, 0.5),
    MDSYS.SDO_DIM_ELEMENT('Y', -90, 90, 0.5)),
    8307 -- SRID for 'Longitude / Latitude (WGS 84)' coordinate system
    COMMIT;
    CREATE INDEX IDX_WILL
    ON WILL (SDO)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    --And I did the validate:
    select T.BOR_CODE , SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT
    (T.SDO, 0.5)
    from WILL T
    -- Script to create t_line_sdo:
    CREATE TABLE t_line_sdo
    (life_id NUMBER(17,0) NOT NULL,
    feat_code NUMBER(4,0),
    sdo MDSYS.SDO_GEOMETRY)
    INSERT INTO t_line_sdo
    VALUES
    (1994622361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.08714, 49.14799, -112.08772, 49.14847, -112.08851, 49.1492,
    -112.08879, 49.14954, -112.08894, 49.14977, -112.0899, 49.15134, -112.09043, 49.15218)))
    INSERT INTO t_line_sdo
    VALUES
    (1994632361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.09043, 49.15218, -112.09117, 49.15336, -112.09239, 49.15544,
    -112.09338, 49.15718, -112.09408, 49.15835, -112.09495, 49.15992, -112.09542, 49.16066,
    -112.09579, 49.16131, -112.09624, 49.16224, -112.09642, 49.16285, -112.09654, 49.16332,
    -112.09657, 49.16389, -112.09658, 49.16468, -112.0965, 49.16529, -112.09612, 49.16633,
    -112.09594, 49.16677, -112.0945, 49.16904, -112.09403, 49.16984, -112.09326, 49.17102,
    -112.09292, 49.17165, -112.09266, 49.17218, -112.09256, 49.1726, -112.09252, 49.17298,
    -112.0925, 49.17337, -112.09256, 49.17385, -112.09265, 49.17419)) )
    INSERT INTO t_line_sdo
    VALUES
    (1994642361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.09265, 49.17419, -112.09277, 49.17457, -112.09306, 49.1751,
    -112.09385, 49.17636, -112.09511, 49.17845, -112.09728, 49.18187, -112.09832, 49.18355,
    -112.09864, 49.18412, -112.09897, 49.18462, -112.09921, 49.18493, -112.09961, 49.18533,
    -112.10004, 49.18567, -112.10053, 49.18602, -112.10302, 49.18744, -112.11002, 49.19128,
    -112.1151, 49.1941, -112.11592, 49.1946, -112.1164, 49.19497, -112.11687, 49.19545,
    -112.11749, 49.19642, -112.11898, 49.20042, -112.11989, 49.20288)))
    INSERT INTO t_line_sdo
    VALUES
    (1994712361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.06171, 49.1155, -112.0626, 49.11626, -112.06361, 49.11717,
    -112.0661, 49.11924, -112.0673, 49.12028, -112.06886, 49.12156, -112.07009, 49.12263,
    -112.07084, 49.12319, -112.07145, 49.12385, -112.07233, 49.12489, -112.07314, 49.12607,
    -112.07415, 49.12744, -112.07484, 49.12843, -112.07534, 49.12904, -112.07553, 49.12938,
    -112.07574, 49.12968, -112.07603, 49.13043, -112.07624, 49.13107, -112.07832, 49.13632)))
    INSERT INTO t_line_sdo
    VALUES
    (1994722361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.06171, 49.1155, -112.0626, 49.11626, -112.06361, 49.11717,
    -112.0661, 49.11924, -112.0673, 49.12028, -112.06886, 49.12156, -112.07009, 49.12263,
    -112.07084, 49.12319, -112.07145, 49.12385, -112.07233, 49.12489, -112.07314, 49.12607,
    -112.07415, 49.12744, -112.07484, 49.12843, -112.07534, 49.12904, -112.07553, 49.12938,
    -112.07574, 49.12968, -112.07603, 49.13043, -112.07624, 49.13107, -112.07832, 49.13632)))
    INSERT INTO t_line_sdo
    VALUES
    (1994852361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.07832, 49.13632, -112.07849, 49.13678, -112.07912, 49.13847,
    -112.08024, 49.14133, -112.0806, 49.14208, -112.0809, 49.14257, -112.08126, 49.14305,
    -112.08219, 49.14393, -112.0826, 49.14434, -112.08341, 49.14508, -112.08397, 49.14555,
    -112.08591, 49.14708, -112.08714, 49.14799)))
    INSERT INTO t_line_sdo
    VALUES
    (2681482361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.05406, 49.10917, -112.05521, 49.11004, -112.0561, 49.11082)) )
    INSERT INTO t_line_sdo
    VALUES
    (2681492361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.06313, 49.11545, -112.06171, 49.1155)))
    INSERT INTO t_line_sdo
    VALUES
    (2681502361001,4110,
    MDSYS.SDO_GEOMETRY(2002, 8307, NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1, 2, 1),
    MDSYS.SDO_ORDINATE_ARRAY(-112.0561, 49.11082, -112.05787, 49.11233, -112.05916, 49.11338,
    -112.06171, 49.1155)))
    commit
    create index IDX_T_LINE_SDO on t_line_sdo (sdo)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    --And I did the validate:
    select T.LIFE_ID , SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT
    (T.SDO, 0.5)
    from T_LINE_SDO T
    -- Both of these work
    select count(1) ALBERTA from will w,
    t_line_sdo t
    where w.CAN_BOR_35_ID = 2
    and SDO_RELATE( t.sdo, w.sdo,
    'mask=anyinteract querytype=WINDOW')= 'TRUE';
    -- Works (because it's doing a full table scan???)
    select count(1) ALBERTA from will w,
    t_line_sdo t
    where w.CAN_BOR_35_ID = 2
    and SDO_RELATE( w.sdo, t.sdo,
    'mask=anyinteract querytype=WINDOW')= 'TRUE';

  • ORA-13199 Error on a spatial query

    Hi,
    I am getting following Error on a spatial query (on version 11.1.0.7)
    "ORA-13199: Dimensionalities of geometry (GTYPE 3003) and diminfo (2) do not match.
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 17
    ORA-06512: at "MDSYS.SDO_CS", line 2809
    ORA-06512: at "MDSYS.SDO_3GL", line 182 "
    The same query used to work fine on 10.2.
    My query looks like
    Select Sfilt.GEOMETRY FROM
    (Select TA.GEOMETRY FROM LANDPLAN.TOPOAREA TA, TEST.PLAN PL
    WHERE PL.PLAN_ID = 12345 AND TA.LOC_CODE = 7
    AND SDO_FILTER(TA.GEOMETRY,PL.GEOMETRY) = 'TRUE'
    ) Sfilt
    ,TEST.PLAN PL2 WHERE
    PL2.PLAN_ID = 12345 AND
    SDO_RELATE(PL2.GEOMETRY, sfilt.GEOMETRY, 'mask=anyinteract') = 'TRUE';
    in the above data TEST.PLAN table is 2D table and LANDPLAN.TOPOAREA is 3D table and both are indexed.
    Any help appriciated..

    Siva,
    Thank you for your response. Now I have tried by increasing the DIMINFO (rebuiding the index) to three.
    Now it shows below error..
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13243: specified operator is not supported for 3- or higher-dimensional R-tree
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 416
    I didn't reason now...for clarity
    Can I have 3d layer with 2d index's ?
    If Yes, can Spatial query work using these 2d index's against other 2d layer and 3d layers ?

  • ORA-29902 after restoring the database

    Hello friends,
    Our database crashed 2 weeks ago and we had rman backups and I restore backups and it fixed. ORACLE version:  11.2.0.3.0, OS: Win server 2008
    But now when we want to run our old quires which were working without problem before get exception:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-01187: cannot read from file  because it failed verification tests
    ORA-01110: data file 201: 'D:\APP\ADMINISTRATOR\ORADATA\IWATCHDB\TEMP01.DBF'
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 333
    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.
    our query:
    SELECT R.*
    FROM DPS_CAMERAS_V R
    WHERE SDO_WITHIN_DISTANCE(R.geom, SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-118.28648979370115, 34.02271512835471, null), null, null), 'DISTANCE=10 UNIT=MILE') = 'TRUE'
    I checked the table spatial index to make sure that it is still there and did not get deleted during the restoring process and it was there.
    I opened the index using sqldeveloper and it was written on top of the sql: -- Unable to render INDEX DDL for object IWATCH.DPS_CAMERA_IDX with DBMS_METADATA attempting internal generator.
    Thanks for your help

    I used the solution here:
    http://scn.sap.com/thread/562143
    And the query I mentioned above worked properly.
    But I changed the query to:
    SELECT R.*
    FROM DPS_CAMERAS R
    WHERE SDO_WITHIN_DISTANCE(R.geom, SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-118.28648979370115, 34.02271512835471, null), null, null), 'DISTANCE=10 UNIT=MILE') = 'TRUE'
    To run query on the main table instead of the view and I got:
    ORA-13226: interface not supported without a spatial index
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 8
    ORA-06512: at "MDSYS.SDO_3GL", line 1052
    13226. 00000 -  "interface not supported without a spatial index"
    *Cause:    The geometry table does not have a spatial index.
    I checked the table and it has an spatial index, but I dropped it and tried to create a new spatial index and I got:
    An error was encountered performing the requested operation:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAASIeAAEAAAAKOAAw] in spatial indexing.
    ORA-13206: internal error [] while creating the spatial index
    ORA-13032: Invalid NULL  SDO_GEOMETRY object
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    29855. 00000 -  "error occurred in the execution of ODCIINDEXCREATE routine"
    *Cause:    Failed to successfully execute the ODCIIndexCreate routine.
    *Action:   Check to see if the routine has been coded correctly.
    Vendor code 29855
    and I tried it again and got:
    Error starting at line 1 in command:
    create INDEX dps_cameras_idx ON dps_cameras(geom) INDEXTYPE IS MDSYS.SPATIAL_INDEX
    Error at Command Line:1 Column:14
    Error report:
    SQL Error: ORA-00955: name is already used by an existing object
    00955. 00000 -  "name is already used by an existing object"
    *Cause:   
    *Action:
    and I checked the table and saw the new index is there, but when I want to run the query I get the same error as above:
    ORA-13226: interface not supported without a spatial index
    ORA-06512: at "MDSYS.MD", line 1723
    ORA-06512: at "MDSYS.MDERR", line 8
    ORA-06512: at "MDSYS.SDO_3GL", line 1052
    13226. 00000 -  "interface not supported without a spatial index"
    *Cause:    The geometry table does not have a spatial index.
    *Action:   Verify that the geometry table referenced in the spatial operator
               has a spatial index on it.

  • Spatial Stored Proc Causing ORA-29902

    Good afternoon,
    I am getting an Oracle exception thrown when I try to run a spatial stored procedure.
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-13203: failed to read USER_SDO_GEOM_METADATA table
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 368
    ORA-06512: at line 1
    Prepared Statement:
    SELECT s.length,
    s.lki_segment_ext_id,
    sg.lki_segment_number,
    sg.geometry segment_geometry,
    h.highway_number || h.highway_letter highway,
    h.description highway_description
    FROM cis_lki_segment_node_ext sn,
    cis_lki_segment_ext s,
    cis_lki_segment_geometry_ext sg,
    cis_lki_highway_lki_segment hs,
    cis_lki_highway_ext h
    WHERE sn.lki_segment_node_ext_id = s.begin_lki_segment_node_ext_id
    AND s.lki_segment_ext_id = hs.lki_segment_ext_id
    AND hs.lki_highway_ext_id = h.lki_highway_ext_id
    AND sg.lki_segment_number = s.segment_number
    AND sn.version_id = in_lki_version_id
    AND sg.version_id = in_geometry_version_id
    AND hs.primary_highway_flag = 'Y'
    AND SDO_RELATE(sg.geometry, in_geometry, 'mask=ANYINTERACT querytype=WINDOW') = 'TRUE';
    I have been able to run this query successfully in a SQL window. The odd thing is that if I remove the "AND hs.primary_highway_flag = 'Y'" clause from the Procedure it then works fine.
    I have also tried a sub select of the table(s) in the FROM part and same results. works great in SQL not at all as a Procedure.
    I even swapped out the PRIMARY_HIGHWAY_FLAG with another string compare from the same table and the error message was the same.
    Does Spatial have some problems dealing with string parsing?
    Eric W

    No Vicky,
    We still have the same problem and our workaround was to return the value we were filtering on and handle it on the Java side.
    sgreener, (sorry I did not reply earlier I was pulled off onto another project)
    The in_geometry is passed into the procedure. It looks for features from a user defined area.
    Albert, I have had our in house Oracle guru look this over and he does not get it either. He has re-worked it a couple of times running it through explain plan and like I had said, as a sql statement it works great but when we plug it in as a stored proc then it does not work
    As for As for Oracle version we are currently using 9i (9.0.4)
    I am a GIS developer so I am quite familiar with how Geometry is/ can be handled while our Oracle guru, while an old hat at it is new to working with Spatial data. So in this case we are both at a loss.
    Eric W

  • Re: ORA-13208: error

    Hi all. I seem to encounter the following error for some spatial tables in my database but not all of them when I run a java application I developed on those tables:
    java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13208: internal error while evaluating [window SRID does not match layer SRID] operator
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 368
    I have a hunch it results from the way I initially set up the tables in my spatial database. Does anyone out there know the best way to address this problem. Thanks, Joe

    Hi Joe,
    In Oracle9i, the optimized rectangle type is not supported for geodetic data. There are other possible issues also with geodetic data (for instance, no polygon can be greater than 1/2 the surface area of the earth).
    In Oracle9i, there is a function:
    sdo_cs.viewport_transform (geom, to_srid)
    That function takes as input an optimized rectangle with SRID set to 0, and the SRID to put the optimized rectangle in.
    If the SRID is associated with projected data or is null, all the function does is return the geometry back with SDO_SRID set to the value of the passed in parameter.
    If the SRID is associated with a geodetic coordinate system, spatial will densify along lines of latitude, and if the geometry is > 1/2 the surface area of the earth it will break it up.
    here is an example usage:
    SELECT a.state
    FROM geod_states a
    WHERE sdo_filter(
    a.geom,
    sdo_cs.viewport_transform(
    mdsys.sdo_geometry(2003, 0, NULL,
    mdsys.sdo_elem_info_array(1,1003,3),
    mdsys.sdo_ordinate_array(-90,35,-75,45)),
    8307),
    'querytype=window') = 'TRUE';
    In Oracle Spatial 10g, there is no longer a need for sdo_cs.viewport_transform - if you specify the optimized rectangle type directly in spatial in a geodetic coordinate system, a viewport_transform-like operation is automatically done under the covers.
    Note because the returned geometry will be in a different format (may be a multi-polygon, and will not necessarily be valid for all usage), Oracle recommends using viewport_transform only with SDO_FILTER, and SDO_RELATE with the anyinteract mask, as well as SDO_NN and SDO_WITHIN_DISTANCE.
    Hope this helps.

  • Ora-00604 error and ora 01000 error while report generation.

    hi all,
    I am trying to generate the multiple reports of same template through a program.
    While this job is running, i get the following error at the BIP console and the reports don't get generated.
    [101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    Kindly help.
    Thanks.

    Lots of resources with a simple search to see what this is about, for example:
    http://www.orafaq.com/wiki/ORA-01000
    ORA-01000:     maximum open cursors exceeded
    Cause:     A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
    Action:     Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
    open_cursors parameter
    http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
    Oracle support note:
    OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1)

  • Ora-00604,ora-01422 error while dropping the table

    Hi gurus,
    I am using Oracle 10g R2 on windows 2000 platform,while dropping the table the following error occured.
    ORA-00604 : error occurred at recursive sql level 1.
    ORA-01422: exact fetch returns more than requested number of rows.
    Need urgent help.
    Thanks in advance

    Is there an AFTER EVENT trigger defined on this database? Can you check that?
    Secondly, was this database migrated from earlier version? I remember having seen this problem on 9i (it was 9.2.0.1 or 9.2.0.2; I can't recall exactly).

  • Ora 600 error  Arguments [25012] [11]

    hi,
    i've an ORA-00600: error Arguments [25012], [2], [11], [], [], [], [], [] by DELETE FROM table WHERE filed = :b1
    ther are only 8 file in database. (not 11)
    Can anybody help, or give me an information about Bug number: 742709
    OS NT 4 / SP6 ORACLE RDBMS Version: 8.0.5.2.1.
    Thank in advice
    JFA

    Trace File Contents:
    ============================================================================================
    [oracle@oem trace]$ more /d01/app/guest/diag/rdbms/db11g/db11g/incident/incdir_191809/db11g_smon_4198_i191809.trc
    Dump file /d01/app/guest/diag/rdbms/db11g/db11g/incident/incdir_191809/db11g_smon_4198_i191809.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /d01/app/guest/product/11.2.0/dbhome_1
    System name: Linux
    Node name: oem.tap.com
    Release: 2.6.18-164.el5xen
    Version: #1 SMP Thu Sep 3 02:41:56 EDT 2009
    Machine: i686
    Instance name: db11g
    Redo thread mounted by this instance: 1
    Oracle process number: 13
    Unix process pid: 4198, image: [email protected] (SMON)
    *** 2010-10-15 12:05:24.395
    *** SESSION ID:(16.1) 2010-10-15 12:05:24.395
    *** CLIENT ID:() 2010-10-15 12:05:24.395
    *** SERVICE NAME:(SYS$BACKGROUND) 2010-10-15 12:05:24.395
    *** MODULE NAME:() 2010-10-15 12:05:24.395
    *** ACTION NAME:() 2010-10-15 12:05:24.395
    Dump continued from file: /d01/app/guest/diag/rdbms/db11g/db11g/trace/db11g_smon_4198.trc
    ORA-00600: internal error code, arguments: [13013], [5001], [267], [8444108], [2], [8444108], [17], [], [], [], [], []
    ========= Dump for incident 191809 (ORA 600 [13013]) ========
    *** 2010-10-15 12:05:24.399
    dbkedDefDump(): Starting incident default dumps (flags=0x2, level=3, mask=0x0)
    ----- Current SQL Statement for this session (sql_id=dma0vxbwh325p) -----
    update smon_scn_time set time_mp=:1, time_dp=:2, scn=:3, scn_wrp=:4, scn_bas=:5, num_mappings=:6, tim_scn_map=:7 where scn = (sele
    ct min(scn) from smon_scn_time)
    ==========================================================================================

Maybe you are looking for

  • How do I delete photos in iphoto photo stream

    I cannot access my iPhoto photo stream to delete photos

  • How can I transfer a playlist to my mum's iPad mini

    My mum is visiting me and I would like to transfer a playlist of her favourite muisc to her iPad mini. What is the best way to do this?  The home sharing function doesnt seem to be working for me as when I go into Music > More (via ipad)... there is

  • Commission calculation

    Hi The query is such that the client  pays some commision to his agent on collection of the amount . e.g bill is for Rs 100 commission is @ 10% for collection Amount collected partially is Rs 60 Then 10% on Rs 60 shd be clculated and paid to him afte

  • Imac takes 3 minutes to start up

    Hi, Exactly 2 days ago, my Imac 21.5-inch started to take 3 minutes to boot/start up. I bought it in Summer of 2011 and  its been fast when booting up, it would takes less than 30 seconds to boot up, up till 2 days ago. I  do not know what has happen

  • Does it work for an iPad as well?

    Just deserve to know if the Airport work for the IPad 2 as well. Thanks, Dante