Re: ORA-13249: SDO_NN cannot be evaluated without using index

hi professionals,
Iam having problem while capturing the map..it is giving errors like...
ora-13249: SDO_NN cannot be evaluated without using index
ora-0652: at MDSYS.MD
ora-0652: at MDSYS.MDERR
ora-0652: at MDSYS.PRVT_IDX...
the particular sector is not capturing in the map...
and some times...
if we click outside the map also the particular sector which is nearer to cllicked point is getting captured...can you please help me regarding this..
its very urgent...
Edited by: naraharikk on Mar 18, 2009 3:53 AM

It is likely that the optimizer is picking a plan that does not use spatial index and SDO_NN requires spatial index to be used.
So you have to give hints to make sure Spatial index is picked for your query.
Something like this:
SELECT /*+ LEADING(b) INDEX(a cola_spatial_idx) */ a.gid
FROM cola_qry b, cola_markets a
WHERE b.gid =1 AND
SDO_NN(a.shape, b.shape, 'sdo_num_res=1')='TRUE';

Similar Messages

  • ORA-13249: Error in Rtree .. Spatial Index fails 10.2.0.3.0

    We have a table with spatial data (polygon), containing 2.4 million rows. SRID=8307. Creating spatial index fails on this table. Spatial version 10.2.0.3.0 and it is valid in dba_registry. Please help. Thanks in advance. Error message is
    Error starting at line 3 in command:
    CREATE INDEX SST_BASEDATA.SIDX_ISPSPATIALTEMP ON SST_BASEDATA.ISP_SPATIALTEMP (GEOMETRY)
    INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS ('tablespace=tdx_basedata_isp layer_gtype=POLYGON') PARALLEL
    Error report:
    SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: Error in Rtree: [mdrcrrdmddata, select /*+ PARALLEL(a, 32767) */ rid, cen  from M8_1CC99$$ a  where cen >= :1 and cen <= :2], 83243 83244
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10

    We have a similar problem with ORACLE 10.2.0.3, SRID 31297, 2-dimensional data, points, lines polygon.
    We installed a new Computer (WINDOWS 2003 Server, Oracle 10.2.0.3) and transfered an application from an existing Oracle 10.2.0.2 instance.
    We transferred the data by exp/imp utility.
    The creation of the index failed (during import or creating the index by a sql command)
    for all tables with more than 2 mill rows with the following message:
    SQL Error: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    We did not get the ORA-13249 error.
    For tables with less than 1 mill rows the index was created.
    We decided to go back to Oracle 10.2.0.2 and all works fine.
    We will upgrade the database to 10.2.0.3 when a patch will be available.

  • How to search a folder or a repository without using index service

    Hi,
                   I want to get a count of all feedbacks (stored under /collaboration/feedback) created on a particular date. Since there are many sub folders, I am not able to use ICollection.
    How can I read a folder or a repository without using IndexService.
    Thanks in advance
    Vidya

    Hi SRIVIDHYA RAGHUNATH
    I dont understand how can't use ICollection. What you want can be do it coding. The TREX and the Index search it works just to search on content.
    I think what you have to do if Iterate on a IResource Object  and the see if it is a file or a folder and keepp iterating, then when is a file, convert to an objects where you can get the feedback and count it.
    Hope its help
    Bye.

  • After upgrade to Lion from Snow Leopard, my computer cannot shut down without using the on/off button in right side corner

    Hi i have a macbook pro 15" from feb 2011. With snow leopard.
    After upgrade to Lion, i canot shut down or restart.
    I have to use the "on/off" bottom. in the right side of dashboard.
    Have anyone any solution for that problem ?
    Brian Steen

    brian steen wrote:
    I have once instlled a kind of antivirus, but i have removed it from programs to trash.
    Gotcha, Bingo, Bazinga!
    Moving the antivirus to trash does not delete or disable some parts of the application.
    How to remove the remaining parts of the application depends on the application as the different AV-Systems place there parts at different places and use different preference files.
    At first check if the AV is still listed in the startup items (System Settings - Accounts - your account - startup items) and remove them from that list.
    Lupunus
    PS ... about your Canon printer -> https://discussions.apple.com/thread/2657947?start=0&tstart=0
    Message was edited by: lupunus (PS added)

  • How to select an item in sap.ui.table.Table without using index?

    Hi there,
    I want to select an item of a sap.ui.table.Table by finding the right item and selecting it.
    Take the example at this SDK page:
    SAPUI5 SDK - Demo Kit
    You have first name and last name. I want to select "Mo Lester". While there is a function called setSelectedIndex, there is no function for setSelectedItem.
    I have to search the items of the table for a required entry and select it (like clicking on it).
    Is there a way to do this (programatically)?
    I'm using aggregation binding with a JSON model.
    Regards
    Tobias

    Hi Tobias,
    What you could do is first find the JSON object (i.e., the table row) in your table model, and use its index in the model to set the selected index:
    var matches = $.grep(array, function() {
        return(this.firstName === "John" && this.lastName === "Doe");
    if (matches.length) {
        var index = yourTable.getModel().getData().indexOf(matches[0]); //first match
        yourTable.setSelectedIndex(index);

  • Since using Maverick OS, I cannot quit mail without "force-quit".

    Since I downloaded and started using Maverick OS, I cannot quit Mail without using the "Force-Quit..." command. The "Quit Mail" command under the Menu is greyed out.
    Any ideas?
    Thanks

    You can also force quit apps using Activity Monitor located in HD > Applications > Utilities.
    Select the CPU tab.
    Select Mail under Process Name.
    Select Mail then click the force quit icon  (circle with an x) top left side of the Activity Monitor window.

  • Customizing infopath form without using infopath designer in SharePoint 2013

    hi friends
    i need to depoly infopath from in client environment. this form fetch data from some lists. 
    they dont have infopath designer in their environment how can i customize my infopath form to link with those list without using infopath designer is there any way to do it.

    You cannot edit Infopath without using Designer.

  • How to turn on Wifi direct on HP LaserJet 1102w without using a network

    I have a problem with wifi direct, I cannot enable that without using a network because only I can enable this feature with connecting the printer to a preconfigured network and then accessing printer's setting by its IP on the preconfigured network, When I turn on wifi direct on printer I can connect directly to it but if I turn off the preconfiqured network and try to connect to wifi direct I get a problem and I'm not be able to use wifi direct, also the green light on the printer starts to blinking. I want a method to enable wifi direct on my printer that could work without another network. please help.

    Hi , Welcome to the HP Forums! I understand that you are wondering How to turn on Wifi direct on HP LaserJet 1102w without using a network. I am happy to help!  Please, take a look through this guide, Printing with Wi-Fi Direct. This website, HP Wireless Printing Center - Wi-Fi Direct and HP wireless direct, also has some information for you!  Hope this is helpful!  “Please click the Thumbs up icon below to thank me for responding.”

  • REP-1401: 'no_daysformula':Fatal PL/SQL error occured. ora-06503: PL/SQL : Functio returned without value. REP-0619: You cannot run without a layout.

    Hi everyone.
    Can anyone tell me what is wrong in this code below?
    Code:
    function NO_DAYSFormula return Number is
    begin
      IF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
      AND :P_TO_DT<:MATURITY_DATE
      AND :ACCT_OPN_DT>:P_FR_DT
      THEN RETURN (:P_TO_DT-:ACCT_OPN_DT+1);
      ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
      AND :P_TO_DT<:MATURITY_DATE
      AND :ACCT_OPN_DT<:P_FR_DT
      THEN RETURN (:P_FR_DT-:P_TO_DT+1);
      ELSIF TO_CHAR(TO_DATE(:P_FR_DT, 'DD-MM-RRRR'), 'RRRR') =TO_CHAR(TO_DATE(:ACCT_OPN_DT, 'DD-MM-RRRR'), 'RRRR')
       AND :P_TO_DT>:MATURITY_DATE
       AND :ACCT_OPN_DT<:P_FR_DT
      THEN RETURN (:P_FR_DT-:MATURITY_DATE+1);
      END IF;
    END;
    It gets compiled successfully but when i run the report, i get 2 errors.
    Error 1:
    REP-1401: 'no_daysformula':Fatal PL/SQL error occurred.
    ora-06503: PL/SQL : Function returned without value.
    Error 2:
    REP-0619: You cannot run without a layout.
    Should i use only 1 return statement?
    Can i use as many return statements as i want?
    What is the exact mistake? Please let me know.
    Thank You.

    Let me clear you the first thing...
    If you get any fatal errors while running the report (e.g., function returned without value,no value etc.,) the report will show
    REP-0619: You cannot run without a layout.
    So you just correct the function 'no_daysformula' .
    First of all you run the report without that formula column.
    If it works fine then , Check the return value of your formula column (Your formula column properties --> Return value --> value (It will be DATE as i think so).
    As function will always return a single value, Check your formula 'no_daysformula' returns the same.
    declare a return variable say for example..
    DECLARE
    V_DATE DATE;
    BEGIN
    --YOUR CODE---
    RETURN V_DATE := (RETURN VALUE)
    END;
    Last but not least ... use Else condition to return (NULL or any value ) in your code and check..
    If any Problem persists let me know
    Regards,
    Soofi.

  • ODI-1228: ORA-22950: cannot ORDER objects without MAP or ORDER method

    Simple interface between two schemas in the same oracle database (10g)
    I am trying to copy one table and do one simple lookup (in a table located in 3rd schema on the same database)
    Integration task fails on
    ODI-1228: Task messagexml_document (Integration) fails on the target ORACLE connection S2_P1.
    Caused By: java.sql.SQLException: ORA-22950: cannot ORDER objects without MAP or ORDER method
    Can anybody tell me, what I am doing wrong? Code that generate this error is just a simple INSERT with SELECT and sub SELECT with JOIN?
    I just can't find anything about this error.
    I'm stuck :-(

    I discovered that one of my fields is an XMLType field and is a part of comparison ODI do when it tries to do incremental update. The error message here is just a message from db that it can't compare XMLType fields to each other.
    Is there any way to learn ODI to not to compare by XMLType field?

  • ORA-22950: cannot Order Objects without MAP or ORDER method (line 15)

    Hi
    I have created a function
    create type att_con.ind_field_value as object (s_owner varchar2(50), s_table varchar2(50), s_field varchar2(50));
    create type att_con.ind_field_value_table as table of att_con.ind_field_value;
    create or replace function fn_find_field_entries
    (s_entry IN varchar2)
    return ind_field_value_table
    IS
    found_count integer;
    t_return ind_field_value_table := ind_field_value_table();
    begin
    for cur in (select owner, table_name, column_name
    from all_tab_columns
    where owner 'SYS'
    and owner 'SYSTEM')
    loop
    execute immediate
    'select count(' || cur.column_name || ') from ' || cur.owner || '.' || cur.table_name || ' where ' || cur.column_name || ' = ' || s_entry
    into found_count;
    if found_count 0 then
    t_return.extend;
    t_return(t_return.last) := (cur.owner, cur.table_name, cur.column_name);
    end if;
    end loop;
    return t_return;
    end;
    and i am getting the above error when i try and run it with
    select * from table(att_con.fn_find_field_entries('NDUNNE'))
    anyone know what this error might mean?
    thanks in advance

    22950, 00000, "cannot ORDER objects without MAP or ORDER method"
    // *Cause:  an object type must have a MAP or ORDER method defined for
    //          all comparisons other than equality and inequality comparisons.
    // *Action: Define a MAP or ORDER method for the object type
    //

  • FRM-41106 You cannot create records without a parent record.

    Hello!
    Forms 6i.
    I have a Parent-Detail-Relationship. At the Detail-Block a "When-create-record" sets some default values on the Detail-Block.
    I got error "FRM-41106 You cannot create records without a parent record" when the Parent-Block executes a execute_query.
    I debuged the problem an found out, that the error appears in the standard-programunit "Clear_All_Master_Details".
    The error appears, when the code is deleting the detail-block "code: Clear_Block(NO_VALIDATE)".
    This is strange: The error appears only when I uses the "When-create-record"-trigger on the detail-block.
    If a comment out the trigger, no error appears.
    Why Is a "When-create-record"-trigger initiated when deleting the detail-block?
    Default-Code of "Clear_All_Master_Details":
    -- Clear all the detail blocks for this master without
    -- any further asking to commit.
    currel := Get_Block_Property(trigblk, FIRST_MASTER_RELATION);
    WHILE currel IS NOT NULL LOOP
    curdtl := Get_Relation_Property(currel, DETAIL_NAME);
    IF Get_Block_Property(curdtl, STATUS) <> 'NEW' THEN
    Go_Block(curdtl);
    Check_Package_Failure;
    Error appear here----> Clear_Block(NO_VALIDATE);
    IF :System.Block_Status <> 'NEW' THEN
    RAISE Form_Trigger_Failure;
    END IF;
    END IF;
    currel := Get_Relation_Property(currel, NEXT_MASTER_RELATION);
    END LOOP;
    Thx in advance,
    Wolfgang

    Wolfgang,
    To be honest, I've always done this kind of thing in the Pre-Inse rt or Pre-Upda te triggers. Why is it so important for the user to see the value of these field BEFORE the IN SERT or UPDAT E? Once the record is commited, they will see these values in your form. In my experience - users are typically satisfied with this approach. If your users are not OK with this approach, perhaps you could us a When-Validate-Record trigger instead of the When-Create-Record trigger.
    I think the When-Create-Record option would still work, but your code will need a little tweak. Give the following a try:
       IF ( NVL(:termin.best_nr,'MSTR') = NVL(:pos.best_nr,'DTL')
            AND NVL(:termin.best_jj,'MSTR') = NVL(:pos.best_jj,'DTL')
            AND NVL(:termin.best_pos,'MSTR') = NVL(:pos.best_pos,'DTL') ) THEN
           <<...set_values..>>
       END IF;Remember, NULL values do not always get evaluated correctly so it is always best to use the NVL function to ensure fields are evaluated correctly.
    BTW, you indicated that you ran DEBUG on your trigger, when your IF statement was evaluated did the "set_Values" section of your code run? If it didn't - do you have other code in your WCR trigger that is setting values outside of your IF statement?
    Craig...

  • I downloaded and paid for an app on my ipad, how can I get it free on my iphone without using itunes as my laytop is broken. I cannot seem to find the purchase tab in app store? I am logged in using the same ID

    I downloaded and paid for an app on my ipad, how can I get it free on my iphone without using itunes as my laytop is broken. I cannot seem to find the purchase tab in app store? I am logged in using the same ID

    First, the app must be universal...designed for both iPhone/iPad:
    Tap App Store.
    Make sure you're signed in with the same Apple ID used for the original purchase.
    Tap Updates.
    Tap Purchased on the resulting screen.
    Locate the app in your Purchased tab.
    Tap the download icon.
    The app will begin downloading and you'll be taken back to your home screen.

  • HT1665 i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings if gets any cal

    Hi folks,
    i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings normally if gets any call.
    Can any one help me in this regard??

    Try to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose data by resetting, but it can cure some glitches after installing new software or apps.

  • Cannot add row without complete selection of batch/serial numbers while creating Goods receipt purchase order

    Error:Cannot add row without complete selection of batch/serial numbers
           Dim oPDN As SAPbobsCOM.Documents
           oPDN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                         Dim serno As String = "SH-A1,SH-A2"
                        Dim sernoval As String() = serno.Split(",")
                        Dim mnfser As String = "SH-B1,SH-B2"
                        Dim mnfserval As String() = mnfser.Split(",")
                        For k = 0 To sernoval.Length - 1
                            oPDN.Lines.SerialNumbers.InternalSerialNumber = sernoval(k).Trim
                            oPDN.Lines.SerialNumbers.ManufacturerSerialNumber = mnfserval(k).Trim
                            oPDN.Lines.SerialNumbers.Quantity = linedetails(iRowNo).Quantity
                            oPDN.Lines.SerialNumbers.SetCurrentLine(k)
                            oPDN.Lines.SerialNumbers.Add()
                        Next
                    oPDN.CardCode = "C232323"
                    oPDN.Lines.ItemCode = "A00004"
                    'oGR.Lines.LineNum = 0
                    oPDN.Lines.BaseLine = 1
                    oPDN.Lines.BaseEntry = 202
                    'oGR.Lines.BaseRef = 203
                    oPDN.Lines.BaseType = 20
                    oPDN.Lines.Quantity = 1
                    oPDN.Lines.UnitPrice = 2
                    oPDN.Lines.WarehouseCode = '01'
                 oPDN.Lines.Add()
                 lRetCode = oPDN.Add

    Hi Vasanth,
    Invert the SetCurrentLine () and Add() at the end of the SSSerialNUmbers loop.
    Regards,
    Eric

Maybe you are looking for

  • Creating an Applet from an Application

    So i'm developing my own version of the '80s Space Invader game for class, and one of the requirments is that we have to turn in an application, but also post an Applet version on a website. The game is pretty much done, but I am having trouble creat

  • Control Excel properties in ABAP report - Background mode

    Hi, We have a requirement to send a excel sheet attachment through mail.This report should have the option to to run in background.We should be able to control the properties of the excel sheet.(Eg column width ,cell format) I could control the excel

  • Boxlayout - align things to the right?

    Hi all, I have a Box setup with PAGE_AXIS layout.. The Box will contain several JLabel icons (no text) and will be wider than the icons combines. I want the extra space to appear on the left side instead of the right. How do I add this? I've tried ad

  • How to load data to transitive attribute

    hi All, can any one guide me how to load data to transitive attribute. explain with scenarios Thanks, Amy

  • SAP ERP E-commerce E-selling Runtime error creating a order

    Hi Gurus, I am working on setting up the E-commerce with SAP ERP as back end. I did the XCM configuration. I was able to log on to the applications both B2B and B2C -- navigate through Product catalog and other areas.But when I try creating a order (