Error getting query plans for queries involving logical operators

I'm trying to gather information to improve the performance of queries for an application I am running using Oracle Berkeley XML database version 2.4.16 with all available patches installed and have encountered problems in the documentation of my XQuery query plans. I hope that these problems also partly explain query performance problems I'm having.

Specifically, I use dbxml to start
qplan collection('browser')/*[@parentIndex='none']

<XQuery>
  <QueryPlanToAST>
    <LevelFilterQP>
      <StepQP axis="parent-of-attribute" uri="*" name="*" nodeType="element">
        <ValueQP container="browser" index="node-attribute-equality-string" operation="eq" child="parentIndex" value="none"/>
      </StepQP>
    </LevelFilterQP>
  </QueryPlanToAST>
</XQuery>
I have this make more complex as follows:
qplan collection('browser')/*[@parentIndex='none' and @uri='http://example.com/']
NB: the above should have been: collection qplan ("browser") / * open_square_bracket @parentIndex = "none" and @uri = "http://example.com/" close_square_bracket

and the dbxml command-line utility responds with:
queryPlan failed, Wrong number of arguments.
This happens about any variation on this request where there are two conditions related (or gold) set term [].

An overview of what motivates the error would be very useful.

Thank you

Geoff Shuetrim

Published by: Geoff Shuetrim on February 6, 2009 14:26

Hi Geoff,

Please apply "" or "" to your expression of qplan. "
Like this:

qplan "collection('browser')/open_square_bracket[@a='b']"

or

qplan 'collection("browser")/open_square_bracket[@a="b"]'

Note: as stated above, use ' ' inside the phrase while using "" outside of expression and use ' ' inside the phrase while using "'outside the expression.

Published by: rucong.zhao on February 5, 2009 19:37

Tags: Database

Similar Questions

  • Error getting CSS support for driver information

    We have a new installation of Hyperion Planning 9.3.1.3. Our planning and services en are on different servers.

    When we try to create a connection of planning in en receive us the following error message:

    Error getting information of CSS support for driver [com.hyperion.ap.hsp.HspAdmDriver]

    Thread:
    http://KR.forums.Oracle.com/forums/thread.jspa?threadID=913810

    refers to \Hyperion\common\ADM\Planning being present on both the planning and the en servers

    We have the above path on the planning server only and have not been able to find a solution.

    That is to say. I tried to just copy the path to nothing helped, but I guess I missed one of the components installed on the en server, Hyperion I just can't understand that one.

    Hoping someone can advise.

    Thank you very much

    Hello

    Run the file on the server EN planning, perform a custom installation and select just the driver of MCDA.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Error getting hierarchical planning in essbase

    Hi, I have a HSS user that is outsourced in essbase and I used it to create some HBR, but now I'm not able to select this sketch in essbase for this, although I'm planning other applications but application I want to choose does not come from there to essbase outline

    Help, please

    It sounds pretty common after restart of planning/EAS you need to physically log in all planning applications, if you don't when you go in HBR you will not be able to access planning applications.
    It is probably resolved itself as someone probably connected to the planning application.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Java: Making query plans persistent

    Sorry if this is a repost from the other thread, but that is the ultimate question.

    I have around 200-300 unique queries (this is a worst case scenario, but against what I run upward at the moment) that must be performed on the DBXML. The queries themselves last about 300-400 ms. If I first prepare these queries and then use the returned XmlQueryExpression, queries return 0ms and less then average. It seems that the majority of treatment is actually being with the back-end query optimization and forming part of the execution. Unfortunately, the record of the 200-300 XmlQueryExpression in memory is not a valid option because this increases memory usage a lot. The problem is that there are inherent with the underlying DBXML instability and sometimes the database switches and must be restarted, which means that the XmlQueryExpression must be replaced later...

    An example would be for a unique look, several objects should be returned from the database - each of these objects, if they took 300-400ms would add 3-4 seconds per unique rendering and if this situation worsened with a single rendered rendered several renders, then return to 15-16 seconds is likely. These compounds as more and more users access the system and must therefore be reduced as much as humanly possible.

    The question is multi fold:
    (1) is there a way so that the XmlQueryExpressions can be serialized and reused later-(l'idée serait de stocker éventuellement dans une cache de type structure/filesystem/base de données/etc...)?
    (2) is it possible to create a XmlQueryExpression with an existing query Plan for failing to make the entire expression on each go-around (same number 1 but to approach different idea)?
    (3) (another issue) being the transactional database - what I need to do something with the explicit transactions and undertakes on these objects of XmlQueryExpression despite the requests themselves are only, read-only? In other words I have to commit after. prepare(), but not on. execute()? Everything works fine without the use of transactions on the ready then I guess not.
    (4) is there another way I can optimize it? With hundreds of access/renders/objects read at some point, the system latency must be reduced as much as possible - by creating the XmlQueryExpression I compensate for the latency for the first time that the query is running, however over time that there is this pretty red and green baloon memory and I need a way of popping it.

    Hello Stephen,

    What version of XML DB are you using? If you use XML DB 2.4.13, there will soon be a new version of patch that significantly reduced the memory used by the previously analyzed queries.

    It is rare to find someone who needs to execute queries different as - is possible that you could be better off by combining some of the queries?

    (1) is there a way so that the XmlQueryExpressions can be serialized and reused later-(l'idée serait de stocker éventuellement dans une cache de type structure/filesystem/base de données/etc...)?
    (2) is it possible to create a XmlQueryExpression with an existing query Plan for failing to make the entire expression on each go-around (same number 1 but to approach different idea)?

    There is no way to do at the moment.

    (3) (another issue) being the transactional database - what I need to do something with the explicit transactions and undertakes on these objects of XmlQueryExpression despite the requests themselves are only, read-only? In other words I have to commit after. prepare(), but not on. execute()? Everything works fine without the use of transactions on the ready then I guess not.

    Prepares a query should probably be in an explicit transaction for transactional applications, but this transaction can safely be validated after the preparation of the query without for as much invalidating the XmlQueryExpression object.

    (4) is there another way I can optimize it? With hundreds of access/renders/objects read at some point, the system latency must be reduced as much as possible - by creating the XmlQueryExpression I compensate for the latency for the first time that the query is running, however over time that there is this pretty red and green baloon memory and I need a way of popping it.

    Why not maintain that sort less recently used (LRU) cache prepared queries? My guess is that you will have a small number of queries that get used a lot, and others who do not get used much at all.

    John

  • getting the error for queries

    Team dear community,

    I made two requests yesterday for which I am getting following error.

    Not found

    The item does not exist. It may have been deleted.

    Not sure why this happened.

    Here's the URL for queries

    1. https://community.oracle.com/message/12927951#12927951

    2 https://community.oracle.com/message/12928209#12928209

    rukbat wrote:

    Had you tried to post your questions about 24 hours earlier?

    You seem to be a new Member of these forums

    He was be a flood of spam that the moderators have faced this moment here.

    All new messages by new users of the forum are filtered through a queue of inspection and your posts have been neglected and buried among the flood of spam.   It is possible that positions have been purged while the spams have been served.

    Already mentioned that

  • Error running query of queries

    Hello

    I am in the process of updating my site in CF5 to CF9 and I get a "query of query error" on the following code each time I have add the first point to my shopping cart. If I add a second element, the error disappears. Here are two pieces of keys to the code where I pull the item from the database information and then use the query requests to merge the query with the amount of shopping cart.

    <!-get-> Product Details

    < CFQUERY NAME='GetDetails'

    DATASOURCE = ' #request.ds # '

    Username = ' #request.dsuser # '

    PASSWORD = ' #request.dspass # ' >

    SELECT
    ItemNo,

    Agenda,

    Grades,

    Price,

    ImageSmall

    DE Products
    ItemNo IN (#QuotedValueList(GetCart.ItemNo) #)
    < / CFQUERY >

    <!-add the column "OrderQty"->

    < CFQUERY NAME="GetList" DBTYPE="query">

    SELECT
    GetDetails.ItemNo YOU ItemNo,

    GetDetails.Item point, AS

    GetDetails.Grades AS Grades,

    AS price, GetDetails.Price

    GetDetails.ImageSmall AS ImageSmall,

    GetCart.Quantity AS OrderQty

    DE GetDetails, GetCart
    GetDetails.ItemNo = GetCart.ItemNo
    < / CFQUERY >

    This is the error I get. The line number refers to the Q of Q above.

    Error running query of queries.

    Comparison = runtime exception.
    Comparison of Type incompatible Exception: on the left side and right side of the comparison operator "=" have incompatible types.
    Type of expression left side = "VARCHAR".
    Expression type side right hand = "DATE".

    I tried a lot of things affect a 'string' type to the right, but nothing seems to work.

    I would be very happy any help that I can get as I've spent countless hours trying to figure this.

    Thank you
    Steve

    Looks like the GetCart query is generated with functions to query coldfusion as opposed to a database query.  It also seems that the QueryNew function has the names of the fields, but not the types of data.  This means some trys to ColdFusion for the type of basic data on the first rows of data.

    Or it could be something else.

  • How can I get a list of jobs that are planned for the days of the future

    How can I get a list of jobs that are planned for the days of the future?

    In a previous article, I found a query that lists the scheduled tasks that are already running. Can I get a similar request for the future days which is compiled?

    Hi sreedevir,

    SELECT jobmst.jobmst_prntname, jobmst.jobmst_name, jobrun.*

    FROM jobrun JOIN jobmst ON jobmst.jobmst_id = jobrun.jobmst_id -joining tables jobmst and jobrun

    WHERE jobrun_proddt > = dateadd (dd, 1, datediff (dd, getdate())) 0, -future dates

    AND jobmst.jobmst_type = 2 -given jobs (and not groups)

    ORDER BY 1, 2 -Sort by name of the parent, then by task name

    Feel free to make any changes to your reporting needs

    ARO

    The Derrick

  • How to capture the execution plan for a query

    Hi all

    Can someone help me please to find the command to capture the execution plan for a query.

    Execution plan for select * from EMP where < condition >

    Is getting executed successfully, but I need to get the appropriate for the same execution plan.

    Thank you

    Read the Doc

  • can I get an annual plan for storage iCloud?

    can I get an annual plan for storage iCloud?

    Only by buying enough iTunes Store to pay a value of one year of storage iCloud for gift cards and leaving enough of their credit to do so.

    (141114)

  • Whenever I caonnect my internet home, McAfee start poping of alerts, and after a few minutes (5-10 min) get the errors of generic host for Win32 process has encountered a problem and must be closed.

    Generic host win32 problem...

    HI, I have soundcards XP SP2, version 2002. Whenever I caonnect my internet home, McAfee start poping of alerts, and after a few minutes (5-10 min) get the errors of generic host for Win32 process has encountered a problem and must be closed. After all that, my internet stops working and against hepatitis a to erboot to make it work again. Help, please

    Hello

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Follow these steps:

    Step 1: Start the computer in safe mode with network and check if the problem persists.

    Step 2: If the problem does not still in safe mode, perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

    Method 2: Temporarily disable the security software.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 3: Follow the steps in the article.

    How to troubleshoot a network home in Windows XP

    Windows wireless and wired network connection problems

    For reference:

    How to reset the Protocol Internet (TCP/IP)

  • Code 8024200 D Windows Update has encountered an unknown error. I get this message for both updates and windows failed to install.

    Code 8024200 D Windows Update has encountered an unknown error.  I get this message for both updates and windows failed to install. Can someone help me?

    Hello SammyFlo,

    Take a look at the following thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-windows_update/getting-a-Windows-Update-error-80070490-when/1f53aa2e-238C-488C-a952-cef7c9b7cc87

    Let us know if that helps.

    Best regards

    Matthew_Ha

  • Switch to the correct encryption certificate I get the error: "Key not valid for use is specified state."

    Used
    Now cannot open encrypted files.

    When you try to pass the correct encryption certificate I get the error:
    "Key not valid for use is specified state."

    See this http://answers.microsoft.com/en-us/windows/forum/windows_7-security/keeping-passwords-secure-microsoft-policy-on/39f56ef0-5d68-41ad-9daa-6e6019c25d37

    It is as it's supposed to as an anti theft precautions. I mean that data is encrypted, if somebody stole your hard drive and the hard drive boots and the other account it can receive data.

    If you not export recovery certificates and encrypting the data, you cannot redo the decryption.

    http://Windows.Microsoft.com/en-us/Windows/back-up-EFS-certificate#1TC=Windows-7

    If it's a default domain recovery agent. admin area. If it's home, to look for recovery certified you have exported.

    But third-party tools are there if you can remember old password the is to encrypt you can recover. But they are not free... and premium software is not be recommended or guided through support free forum due to the effort of preventing unnecessary advertising.

    You can do you own research about recovering data... just try to get you using the favorite search engine... "Restore access to encrypted EFS format files" or "Advanced EFS Data Recovery.

    Many more free guides will be available... Just keep in mind this is not a method to escape... you must remember your old password at least for decryption in the case where you export a certificate.

  • I get the following error during synchronization itunes for itouch - 0xE800400C

    I get the following error during synchronization itunes for itouch - 0xE800400C.
    Takes forever to sync music and then fails with the above error and also says "device timed out"?
    Please, please help...
    Mar.x

    Hello

    ·        What is the version of iTunes installed on your computer?

    ·        This device was working fine before?

    ·        Is there any software or hardware changes made to the computer, after which, the problem occurred?

    Try uninstalling and reinstalling iTunes and check if that helps. To uninstall the application follow the link below.

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Download and reinstall the latest version of iTunes. Follow the link given below, get iTunes now.

    www.Apple.com/itunes/download/.

    You can also contact Apple support for further assistance.

    http://www.Apple.com/support/

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • SQL query to get the items for which transactions have not been saved

    Hi people,

    Have a small doubt I want to compile a SQL query in the inventory where I get these items for what transactions do not have been recorded during a period of at least one specified number of days.

    The days might be 30 days or 2 months depends on. If I want to get those items for which no transactions were reported for lets say 30 days. Could someone give me an idea of how to go about this thing? I use r12. I came up with the following query, but it gives a lot of records. The commented parts of this query is only commented on


    SELECT DISTINCT msi.segment1,

    MSI. Description,

    MSI.primary_uom_code,

    MSI.inventory_item_id

    MSI mtl_system_items_b / *,.

    mtl_material_transactions mmt * /.

    WHERE / * msi.inventory_item_id = mmt.inventory_item_id

    AND msi.organization_id = mmt.organization_id

    AND NVL ((SELECT SUM (transaction_quantity)

    OF mtl_onhand_quantities

    WHERE inventory_item_id = msi.inventory_item_id),

    0) = 0

    AND TRUNC (mmt.transaction_date) < = SYSDATE - & D

    AND * / NOT EXISTS (SELECT *)

    OF mtl_material_transactions mmt

    WHERE msi.inventory_item_id = mmt.inventory_item_id

    AND msi.organization_id = mmt.organization_id

    AND TRUNC (mmt.transaction_date) < SYSDATE - & D);

    Hi fatimakhellil

    Try the following code and mark it as correct if your problem be resolved.

    SELECT DISTINCT msi.segment1,

    MSI. Description,

    MSI.primary_uom_code,

    MSI.inventory_item_id,

    MSI.organization_id,

    Ms.secondary_inventory_name,

    (select max (transaction_date) in the mtl_material_transactions where msi.inventory_item_id = inventory_item_id

    AND msi.organization_id = organization_id) last_transaction_date

    OF mtl_system_items_b msi.

    Ms. mtl_secondary_inventories

    WHERE ms.organization_id (+) = msi.organization_id

    AND msi.source_subinventory = ms.secondary_inventory_name (+)

    AND NOT EXISTS (SELECT *)

    OF mtl_material_transactions mmt

    WHERE msi.inventory_item_id = mmt.inventory_item_id

    AND msi.organization_id = mmt.organization_id

    AND mmt.subinventory_code = ms.secondary_inventory_name

    AND mmt.organization_id = ms.organization_id

    AND TRUNC (mmt.transaction_date) BETWEEN TRUNC (SYSDATE - & d) AND TRUNC (SYSDATE))

  • Why I have two different execution plans for the same query on two different servers

    Hello everyone.

    I need your help to solve the problem quickly.

    In a nutshell, we have two servers that have the same version of Oracle RDBMS (11.2.0.4 EE). One of them for purposes of development and another is a production one.

    We have therefore two different execution plans for the same query executed on both servers. The only case of execution is OK and another is too slow.

    So I have to slow down the work of query using the same scheme to explain that young.

    Fence wire.

Maybe you are looking for