Order of indexed columns in the index

Hi Gurus,
I have a small problem in front of me and I wud like to take some inputs
from you Gurus.Here is question
1. Is order of the index is important in CBO?
say
1.I have a concatenated index on col1,col2
2.In the sql statement's used in my project I have statements "where
col1=1 and col2 = 1" as well as
"where col2=1 and col1=1" and my opinion is that CBO will use the Index
in both the scenarios( I have cheked RBO for the same and RBO is able to
use the index) whereas some senior persons out here are telling
otherwise..... that it will not use the index for "where col2=1 and
Col1=1)
pls clarify
Cheers
Sriram Kumar

When I attended an Oracle 8i SQL Statement Tuning Workshop, I believe I understood things as in the response above. However, the class was applicable to Oracle 8.1.5 and I am now using Oracle 8.1.7, so some things may have changed. I have included a test of various scenarios below. I would have expected all except the last one to use the index, because col2 is not the leading edge of the composite index on col1, col2. Much to my surprise it also used the index there.
SQL> CREATE TABLE test_table AS
  2  SELECT empno col1, mgr col2 FROM emp
  3  /
Table created.
SQL> UPDATE test_table
  2  SET    col1 = 1, col2 = 1
  3  WHERE  col1 = 7782
  4  AND    col2 = 7839
  5  /
1 row updated.
SQL> CREATE INDEX test_idx
  2  ON test_table (col1, col2)
  3  /
Index created.
SQL> ANALYZE TABLE test_table
  2  COMPUTE STATISTICS
  3  FOR TABLE
  4  FOR ALL INDEXES
  5  FOR ALL INDEXED COLUMNS
  6  /
Table analyzed.
SQL> SET AUTOTRACE ON EXPLAIN
SQL> SELECT * FROM test_table
  2  WHERE col1 = 1 AND col2 = 1
  3  /
      COL1       COL2                                      
         1          1                                      
1 row selected.
Execution Plan
   0                                                       
SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=6)  
   1    0                                                  
  INDEX (RANGE SCAN) OF 'TEST_IDX' (NON-UNIQUE) (Cost=1 Card
=1 Bytes=6)                                                
SQL> SELECT * FROM test_table
  2  WHERE col2 = 1 AND col1 = 1
  3  /
      COL1       COL2                                      
         1          1                                      
1 row selected.
Execution Plan
   0                                                       
SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=6)  
   1    0                                                  
  INDEX (RANGE SCAN) OF 'TEST_IDX' (NON-UNIQUE) (Cost=1 Card
=1 Bytes=6)                                                
SQL> SELECT * FROM test_table
  2  WHERE col1 = 1
  3  /
      COL1       COL2                                      
         1          1                                      
1 row selected.
Execution Plan
   0                                                       
SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=6)  
   1    0                                                  
  INDEX (RANGE SCAN) OF 'TEST_IDX' (NON-UNIQUE) (Cost=1 Card
=1 Bytes=6)                                                
SQL> SELECT * FROM test_table
  2  WHERE col2 = 1
  3  /
      COL1       COL2                                      
         1          1                                      
1 row selected.
Execution Plan
   0                                                       
SELECT STATEMENT Optimizer=CHOOSE (Cost=1 Card=1 Bytes=6)  
   1    0                                                  
  INDEX (FULL SCAN) OF 'TEST_IDX' (NON-UNIQUE) (Cost=1 Card=
1 Bytes=6)                                                 

Similar Messages

  • Error -90032 occurred at Error in function centref at line 5 column 8: The indexes are out of bounds for the variable you specified

    Sir, 
    i am running a matlab code in mathscript of labview but getting an error
    Error -90032 occurred at Error in function centref at line 5 column 8:  The indexes are out of bounds for the variable you specified
    this code running successfully in matlab 
    please help me in this regard
    a .vi format file is attached named as mfcc_new.vi
    Attachments:
    mfcc2.vi ‏35 KB
    mfcc_new.vi ‏111 KB

    May I see you have 6 inputs to your Mathscript Node. When you test it in Matlab I suposse that you're using some values for this inputs and everything work as expected. Then, run it in Labview using highlight execution, retaining wire values and using single stepping. Check the values which are being inserted to your Mathscript Node and ensure that they are correct. You're having an "indexes out of bounds" mistake, so it probably means that there is something  wrong with the inputs according to your expectations. You can also put the MathScript alone in another VI and insert the inputs you're expecting manually and check in the same way.
    Good luck!

  • Unable to extend index name of the index by 8 in tablespace

    Hello,
    I am not a DBA and do not have much experience in Oracle. When I was trying to restore the backup of my application, I received the following error. I could not able to proceed further in my tasks.
    ORA-01654: unable to extend index <name of the index> by 8 in tablespace <name of the Index tablespace>The following query was used to create the table space. Oracle version is 10g.
    CREATE TABLESPACE TS_JIRA
    DATAFILE 'D:\oracle\product\10.2.0\oradata\jiraadmi\TS_JIRA.dbf' SIZE 100M REUSE
    AUTOEXTEND ON NEXT 10M MAXSIZE 200M
    MINIMUM EXTENT 64K
    DEFAULT STORAGE ( INITIAL 64K NEXT 64K MINEXTENTS 1 MAXEXTENTS UNLIMITED PCTINCREASE 0);I do not know how to extend the size of the tablespace. Can anyone help to sort out this issue?
    Thanks in advance
    Ram

    Hi Ram;
    I suggest also review below doc for your future issue
    TROUBLESHOOTING GUIDE (TSG) - UNABLE TO CREATE / EXTEND Errors [ID 1025288.6]
    Overview Of ORA-01654: Unable To Extend Index %s.%s By %s In Tablespace %s [ID 146595.1]
    OERR: ORA 1654 unable to extend index <name.name> by <num> for tablespace <nam [ID 19049.1]
    I belive they will answer all your question ;)
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Is there a routine one can use to shift the column of data by one each time the loop index increments? In other words, increment the columns that the data is being saved by using the index?

    The device, an Ocean Optics spectrometer in columns of about 9000 cells.I'm saving this as a lvm file using the "write to measurement file.vi". But it doesn't give me the flexibility as far as I can tell.
    I need to move the column by the index of the for loop, so that when i = n, the data will take up the n+1 column. (the 1st column is used for wavelength). How do I use the "write to spreadsheet file.vi" to do this? Also, if I use the "write to spreadsheet file.vi", is there a way one can increment the file name, so that the data isn't written over. I like what "write to measurement file.vi" does.
    I'd really appreciate any help someone can give me. I'm a novice at this, so the greater the detail, the better. Thanks!!!

    You cannot write one column at a time to a spreadsheet file, because a file is arranged linearly and adding a column would need to move (=read and rewwrite elsewhere) almost all existing elements to interlace the new data. You can only append new rows without having to touch the already written data.
    Fields typically don't have fixed width. An exception would be binary files that are pre-allocated at the final size. In this case you can write columns by setting the file positions for each element. It still will be very inefficient.
    What you could do is append rows until all data is written, the read, transpose, and write back the final file.
    What you also could to is build the final array in a shift register and write the entire things to file at once after all data is present.
    LabVIEW Champion . Do more with less code and in less time .

  • Bug in ODT 11720 - indexed columns list in Design Table is disabled

    Start VS2008
    Server Explorer
    Expand any oracle db
    Expand Tables
    Design any existing table that has an existing index that indexes more than 3 columns
    Click Indexes tab
    Click the index name
    Try to scroll the list of indexed columns, because youre curious which columns are indexed and what order
    You cant, because the control is disabled

    Checks should be made to see if other controls (such as the text box for CHECK code, or the list for PKs) are similarly affected

  • CTXCAT search index Issue - trying to index multi columns

    i can index more than one column in the same table using MULTI_COLUMN_DATASTORE but when the index type is CONTEXT
    but i need to index more than one column ,when the index type is CTXCAT
    putting into considerations that i found that MULTI_COLUMN_DATASTORE doesn't work with ctxcat
    if anybody knows any other way pleaze Help...
    thanks in advance

    MULTI_COLUMN_DATASTORE cannot be used with CTXCAT search as the this parameter is not supported
    i am asking about abnother way,or a work around MULTI_COLUMN_DATASTORE
    in order to work

  • Extracting a distinct list of values using the Index formula

    In Xcelsius, I am trying to retrieve a distinct list of values from data imported using the Reporting Services button.
    In the spreadsheet I am using the following formula:
    =INDEX($A2:$A831,MATCH(0,COUNTIF($B$2:B2,$A2:$A831),0))
    The above formula works correctly in Xcelsius, but when I select the preview button the values change to #N/A.
    Please could you advise on why this does not work?
    Many thanks,
    Natalie

    Hi Natalie,
    First, you have to be aware of the fact that Xcelsius "simulates" an Excel function. When you are in design mode, the actual "Excel" (MS code) functions are executed. But when you are in preview mode (or export to a swf), all Excel functions are simulated (Xcelsius code).
    The fact that your function works in design mode but not in preview/export may point to a bug.
    But there are also certain assumptions (to address speed/efficiency) on the Xcelsius code which may cause the preview to fail. One such assumption is that on the VLOOKUP function, Xcelsius does not recalculate formulas in the index column of the VLOOKUP table array - if the index column contains formulas, the index column will always remain in the initial state (will not dynamically recalculate).
    Also, not all features on a supported Excel function works. For example, array formulas are not supported.
    Bobby

  • Default Filter Criteria - "Current (Indexed)" Column?

    Hello Technet,
    When you create a "Standard View" in SharePoint online, if you look under the Filter section, a default filter is automatically added on the "Current (Indexed)" column, causing the list to show only list items that have Current = Yes.
    My question is in two parts;
    What does this Current (Indexed) column mean/do?
    Why, as my list approached 2500 items, are many of the newly created list items not showing in views that have this criteria?
    I am unable to find that column when I modify the list so I assume it has something to do with SharePoint's automatic version control.  I'm not getting why all of a sudden this would not be working?  One thought, I do know that SharePoint lists
    are limited to a 5,000 item limit, is it possible the "versions" list, if that exists on the back-end, has gotten too large and is no longer saving items?

    As there is no default view with a filter already enabled OOTB I would suggest you to create a service ticket at O365 support or via MS Premier Support.
    Michiel Hamers www.SharePointman.nl Don't hesitate to contact me for a SharePoint/O365 question.

  • 1.5PROD/EA3/EA2 - Issues removing indexed column through Edit Table dialog

    The Edit Table dialog does not cope well with removing a column which is used in indexes.
    If you simply remove the column and hit OK, you get a Validation Failed error saying that "Column <column> is not a column of table <table>". Given that you are trying to remove the column, this is confusing.
    Most times, you can navigate to the indexes but the column no longer shows in the index which contained (and all other columns in the index appear to be removed as well). At least you can remove the index and then accept the change. However, some times (couldn't reproduce consistently), the index didn't display properly (no name displayed) and I couldn't leave the record without entering a dummy name before removing it.
    Shouldn't the behaviour be equivalent to the "corresponding" alter table drop column command which automatically drops the indexes referring to the dropped column? I know that it isn't always nice to "silently" remove an index or indexes, but couldn't we display a dialog that indicates which indexes we are going to drop to warn the user?
    theFurryOne

    No response to this, but it is still a problem in EA3.
    I assume it is not intended that you cannot drop an indexed column through the Edit Table dialog, without having to first drop the index - it is certainly not required in direct SQL and the Drop Column via the Table context menu works as well (as that simply generates the SQL).
    theFurryOne

  • Opty-Prod Reports: Indexed columns of Opty-Prod

    Hi,
    I am hoping to understand the reasons why the indexed columns of the Opty-Product object are not available for Opty-Product Report. I need to explain this to our users and I have no clue. Our users are reasonably aware of reports/analytics and the absence of indexed columns in reports is confusing.
    Any thoughts?

    PR, the missing indexed fields in the Opty-Prod real-time reports is something I reported to Oracle a few months ago, their response was "thankyou for you request we'll consider this at a future date". I don't use the Indexed fields for Opty-Product I create new ones, you can't use them in lists and reporting can be pretty quick anyway so I don't see a benfit to using them. # periods and the date field is missing too ;-D
    cheers
    Alex

  • Indexed attributes but non indexed search

    Hi !
    There's something that I don't understand in my directory.
    I have a request which is qualified as "non indexed" but when I look at the configuration of the indexes, it seems to be ok. Where am I wrong ?
    Search filter (using logconv.pl):
    Unindexed Search #1
    - Date/Time: 05/Jul/2007:17:26:06
    - Connection Number: 619481
    - Operation Number: 2
    - Etime: 21
    - Nentries: 20017
    - IP Address: 127.0.0.1
    - Bind DN: uid=xxxxxxxxx
    - Search Filter: (&(sn=*)(givenname=*))
    indexed attributes :
    dn: cn=sn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: sn
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    dn: cn=givenName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: givenName
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    Anyone an idea please ?
    Thanks for your help.

    Hi !
    There's something that I don't understand in my
    directory.
    I have a request which is qualified as "non indexed"
    but when I look at the configuration of the indexes,
    it seems to be ok. Where am I wrong ?
    Search filter (using logconv.pl):
    Unindexed Search #1
    - Date/Time: 05/Jul/2007:17:26:06
    - Connection Number: 619481
    - Operation Number: 2
    - Etime: 21
    - Nentries: 20017
    - IP Address: 127.0.0.1
    - Bind DN: uid=xxxxxxxxx
    - Search Filter: (&(sn=*)(givenname=*))
    indexed attributes :
    dn: cn=sn,cn=index,cn=userRoot,cn=ldbm
    database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: sn
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    dn: cn=givenName,cn=index,cn=userRoot,cn=ldbm
    database,cn=plugins,cn=config
    objectClass: top
    objectClass: nsIndex
    cn: givenName
    nsSystemIndex: false
    nsIndexType: pres
    nsIndexType: eq
    nsIndexType: sub
    Anyone an idea please ?
    Thanks for your help.Although you have defined a substring index for both attributes the actual size of the index lists for those indexes may have exceeded the maximum value for index lists as governed by the system-wide configuration attribute "nsslapd-allidsthreshold" which is set by default to 4000. When the list of IDs for an index grows to the nsslapd-allidsthreshold attribute size, the allids token is set on that index which causes the index to be disregarded and those searches become unindexed.
    You may use the dbscan ("./dbscan -n -i -f /<path-to>/userRoot_sn.db3) utility that comes with the Driectory Server Resource Kit in order to confirm that those indexes are marked allids.
    Once confirmed you may consider to increase your nsslapd-allidsthreshold value - however changing the nsslapd-allidsthreshold attribute is costly, in that it requires you to rebuild (reindex) your database and will require thorough testing and examination of your data set as this is a system-wide attribute (in 5.x). It's also important not to set the nsslapd-allidsthreshold attribute so high as this puts the server in the position to constantly manage very large index ID lists.
    There is a very interesting article called "Understanding Indexing and the ALLIDs Threshold" @ http://blogs.sun.com/DirectoryManager/?page=3 which discusses that topic in depth.

  • Order Source Reference Column in Sales Order Form

    Hi All,
    When copying a sales order that is imported from EDI, the order source reference column in the new order refers to the original order. Is there a way to make this field refer to the same field of the original order? Or at least make it editable/updatable?
    Thanks
    A/H

    Not sure personalization will solve this problem. Other options:
    1. Workflow
    2. Post Hook Events
    3. trigger?
    Thanks
    Nagamohan

  • Column order in the index and its effects

    Lets say i've an index called ind_tab3 which is made up of two columns in the following order (col1,col2). If query comes against the table with WHERE clause like 'WHERE col2 =35' , will the ind_tab3 index be used. If this index is not used for this query, then what is the point of creating composite indexes? I know that an Index is created automatically for a primary key , which can be composite . So lets ignore this on our discussion.

    My point is:
    1) review every query on your system
    2) then choose an appropriate indexing strategy
    So if the col2 value is not used in an AND
    clause either, the ind_tab3 index wouldn't be
    used at all. Right?David replied to that. Index skip scan or index fast full scan MIGHT kick in.

  • ORDER BY ON INDEX COLUMN IS TAKING MORE TIME

    Hi,
    The following SQL query when executed with ORDER BY is taking 3 mins. If we remove ORDER BY it is taking 32 secs. We have an index on ID which is used in ORDER BY clause. Can any one tell us what could be wrong? My assumption is ORDER BY on an index column should not take that much of time. Is there any configuration that we need to make or missing?
    We are on 11g R2.
    Query is
    SELECT * FROM (SELECT /*+ FIRST_ROWS */ a.*, ROWNUM rnum  FROM
    (SELECT DISTINCT ENTITYID AS a1, ENTITYCLASS AS a2, STARTDATE AS a3, ENDDATE AS a4, EXTERNALOBJECTID AS a5, LASTMODIFIEDUSER AS a6, ID AS a7, PARTITION AS a8,    DESCRIPTION AS a9, NAME AS a10, PERMISSIONS AS a11, CREATEDDATE AS a12, ACTIVITY AS a13, ENTITYVERSION AS a14, EXTERNALNAME AS a15, NOSPEC AS a16,
    ADMINSTATE AS a17, OWNER AS a18, LASTMODIFIEDDATE AS a19, EXTERNALARRANGEMENT AS a20, OBJECTSTATE AS a21, EXTERNALMANAGEMENTDOMAIN AS a22,
    CREATEDUSER AS a23, SPECIFICATION AS a24 FROM Service WHERE (ENTITYCLASS = 'SERVICEDAO') ORDER BY ID ASC)
    a WHERE ROWNUM <= 25) WHERE rnum > 0Here is the explain plan link
    https://stbeehive.oracle.com/content/dav/st/Rama%20%20Public%20Workspace/Public%20Documents/explainplan_13339959.JPG
    https://stbeehive.oracle.com/content/dav/st/Rama%20%20Public%20Workspace/Public%20Documents/explainplandetailed_13339959.JPG
    Thanks,
    Rama
    Edited by: user9954330 on Nov 8, 2011 1:16 AM

    user9954330 wrote:
    We replaced the hint with ALL_ROWS. With this change , we observed the query performed worse. Any other pointers? I will provide the other details as given in the template shortly.
    Thanks,
    RamaThread: HOW TO: Post a SQL statement tuning request - template posting
    HOW TO: Post a SQL statement tuning request - template posting

  • Query on virtual column that is defined in XMLIndex does not use the index

    Hello,
    I am facing an issue in executing queries on a virtual column that is defined in an XMLIndex: it appears as if the index is not used.
    Database details:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE 11.2.0.3.0 Production
    TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    For this use case the XML documents adhere to the following XSD and are stored in an XMLType column in a table:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns="http://a_name_space/v1"
        targetNamespace="http://a_name_space/v1"
        elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
        <xsd:element name="fields">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="field" maxOccurs="unbounded">
                        <xsd:complexType>
                            <xsd:choice>
                                <xsd:element name="value" minOccurs="1" maxOccurs="1">
                                    <xsd:complexType>
                                        <xsd:simpleContent>
                                            <xsd:extension base="notEmptyString4000Type"/>
                                        </xsd:simpleContent>
                                    </xsd:complexType>
                                </xsd:element>
                                <xsd:element name="values" minOccurs="1" maxOccurs="1">
                                    <xsd:complexType>
                                        <xsd:sequence>
                                            <xsd:element name="value" minOccurs="1" maxOccurs="1">
                                                <xsd:complexType>
                                                    <xsd:simpleContent>
                                                        <xsd:extension base="notEmptyString4000Type">
                                                            <xsd:attribute name="startDate" type="xsd:date" use="required"/>
                                                            <xsd:attribute name="endDate" type="xsd:date" />
                                                        </xsd:extension>
                                                    </xsd:simpleContent>
                                                </xsd:complexType>
                                            </xsd:element>
                                        </xsd:sequence>
                                    </xsd:complexType>
                                </xsd:element>
                            </xsd:choice>
                            <xsd:attribute name="name" type="string30Type" use="required"/>
                            <xsd:attribute name="type" type="dataType" use="required"/>
                        </xsd:complexType>
                    </xsd:element>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:simpleType name="dataType">
            <xsd:annotation>
                <xsd:documentation>Char, Date, Number</xsd:documentation>
            </xsd:annotation>
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="C"/>
                <xsd:enumeration value="D"/>
                <xsd:enumeration value="N"/>
            </xsd:restriction>
        </xsd:simpleType>
        <xsd:simpleType name="string30Type">
            <xsd:restriction base="xsd:string">
                <xsd:maxLength value="30"/>
            </xsd:restriction>
        </xsd:simpleType>
        <xsd:simpleType name="notEmptyString4000Type">
            <xsd:restriction base="xsd:string">
                <xsd:maxLength value="4000"/>
                <xsd:pattern value=".+"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:schema>A field can have a single value as well as multiple values.
    The XMLIndex is defined as follows:
    CREATE INDEX test_xmltype_idx ON test_xmltype (additional_fields) INDEXTYPE IS XDB.XMLIndex
    PARAMETERS
    XMLTable dt_fld_tab (TABLESPACE "TAB_SPACE" COMPRESS FOR OLTP) ''fields/field''
    COLUMNS
    name varchar2(30 char) PATH ''@name''
    ,dataType varchar2(1 char) PATH ''@type''
    ,val varchar2(4000 char) PATH ''value/text()''
    ,vals XMLType PATH ''values/value'' VIRTUAL
    XMLTable dt_fld_multi_value_tab (TABLESPACE "TAB_SPACE" COMPRESS FOR OLTP) ''value'' passing vals
    COLUMNS
    val varchar2(4000) PATH ''text()''
    ,startDate varchar2(30 char) PATH ''@startDate''
    ,endDate varchar2(30 char) PATH ''@endDate''
    ');The following b-tree indexes are defined:
    create index dt_field_name_idx on dt_fld_tab (name);
    create index dt_field_value_idx on dt_fld_tab (val);
    create index dt_field_values_idx on dt_fld_multi_value_tab (val);And stats are properly computed before the queries are executed:
    call dbms_stats.gather_table_stats(user, 'test_xmltype', estimate_percent => null);Queries for single values are cost efficient and fast. With 600K rows in the table these return with 0.002 seconds.
    Queries for multi-valued fields / elements are not though, these result in a full table scan.
    Sample XML snippet:
    <fields>
      <field name="multiVal" type="C">
        <values>
          <value startDate="2013-01-01" endDate="2013-01-01">100</value>
          <value startDate="2014-01-01">120</value>
        </values>
      </field>
    </fields>Examples of costly and slow queries:
    select id from test_xmltype
    where xmlexists('/fields/field/@name="multiVal"' passing additional_fields)
    and xmlexists('/fields/field/values/value[@startDate="2013-01-01"]' passing additional_fields)
    and xmlexists('/fields/field/values/value[text()="100"]' passing additional_fields)
    select id from test_xmltype
    where xmlexists('/fields/field/@name="multiVal"' passing additional_fields)
    and xmlexists('/fields/field/values/value[@startDate="2013-01-01" and .="100"]' passing additional_fields);Whereas the following query on the multi valued field is fast:
    select id from test_xmltype
    where xmlexists('/fields/field/@name="multiVal"' passing additional_fields)
    and xmlexists('/fields/field/values/value[@startDate="2013-01-01"]' passing additional_fields);For the XPath /fields/field/values/value[@startDate="2013-01-01"] the index is used.
    Suspected cause: XPath issue for the value of a multi valued field, e.g. /fields/field/values/value[text()="aValue"].
    Any hints are appreciated: what am I overlooking here?
    Thanks in advance,
    -Sjoerd
    Edited by: user615230 on May 27, 2013 7:46 AM

    Hello,
    This is using binary XML. The table creation script is:
    create table test_xmltype
    (id number(14,0) not null primary key
    ,member_code varchar2(30 char) not null
    ,period_code varchar2(30 char) not null
    ,amount number(12,2) not null
    ,additional_fields xmltype
    );The schema is not registered in the database. Is that required? It is primarily used to generate Java classes that will be used in order to construct the XML documents.
    And you are right: for our initial investigation the sample XML documents are generated with a PLSQL routine and do not contain namespaces. But for the single valued fields there are also no namespaces and the queries on these are executed with very satisfactory plans.
    Thanks for the swift reply.
    -Sjoerd

Maybe you are looking for

  • Corrupt photo library on iphone4

    Last week I accesed the camera via the quick select (double-click home button on my locked phone). Everything word fine until the third picture. My phone freezes. Power off/on fixed the freez. But now it seems my "photo library" is corrupt. Symptoms:

  • Trying to Assign Return Value from DB Adapter that calls a Database Functio

    We have a BPEL process in which we have set up a DB Adapter to call a function in the Database and return the value (the actual value being returned is Workers=14 Hours=36 Vehicles=2). When we try to assign that returned value to a string value which

  • QM01 USer Exit to fill Coordinator Partner field for notification type Q3

    am working on Notification creation Transaction QM01. The requirement is, The user selects Notification type "Customer Complaint" & Provides Sales Order Number & Item number. In the Reference Objects Tab, User fills Coding , Description , Subject fie

  • Suggestion required...

    hi, i am trying to execute a small gui(showMessageDialog) java Program on a unix machine by connecting to that machine from Windows-xp machine using telnet. the program compiles but i am not able to run it. i have even set the Look and feel (UIManage

  • Threads Critical

    How could I change the two classes below so that the two threads take turns to be in their critical sections, and they aren't allowed to take two consecutive turns. Thanks. public class SharedVariables extends Object { public int turn; public boolean