Execution of xquery with sql prompt(oracle 11g)

Hi All I am executing the following query with squl prompt:
SELECT XMLQuery('xquery version "1.0"; (: :)
declare default element namespace "eNodeB"; (: :)
for $m in ora:tokenize('oracle~','~')
return ($m)'
RETURNING CONTENT) AS RESULT
FROM DUAL;
But its giving the following exception
for $m in ora:tokenize('deepa~','~')
ERROR at line 3:
ORA-19109: RETURNING keyword expected
2) With the below mentioned query
SELECT XMLQuery('xquery version "1.0"; (: :)
declare default element namespace "eNodeB"; (: :)
for $x in $eNodeBRef/eNodeBFile/eNodeB/eNodeBTop[eNodeBTopIndex='1']
for $m in ora:tokenize('eNodeBTopAttr1~','~')
let $r:=$x/following-sibling::*[local-name(.)=$m]
where (exists($x/*[local-name(.)=$m]) or exists($r))
return (
if(exists($r) and not(exists($x/*[local-name(.)=$m]))) then
element{local-name($r)}{data($r)} else(), if(exists($x/*[local-na
me(.)=$m])) then element{local-name($x/*[local-name(.)=$m])}{data($x/*[local-name(.)=$m])} else()' PASSING p.OBJECT_VALUE AS
"eNodeBRef"
RETURNING CONTENT) AS RESULT
FROM A_ENODEB p
WHERE
existsNode(p.OBJECT_VALUE,
'/eNodeBFile/fileHeader[@fileName="eNodeB_inst_1.xml"]') =1;
its giving the below error while executing through sql prompt
*for $x in $eNodeBRef/eNodeBFile/eNodeB/eNodeBTop[eNodeBTopIndex='1']
ERROR at line 3:
ORA-19109: RETURNING keyword expected*

Login to SQL Developer as the SYS user for Getting Started tutorial

Similar Messages

  • How to validate XML Digital Signature with XML DB (o PL/SQL) in Oracle 11g

    Hi,
    Do you know if there is possibility to validate XML Digital Signature using XML DB (or PL/SQL) in Oracle 11g?
    Let say I have CLOB/XMLType containing Digitally Signed XML, and I want to validate, that thsi is proper signature. I also have public key of signer (I could store it in CLOB or file or Oracle wallet).
    Is it possible to do?
    If there is need to install additional component - then which one?
    Regards,
    Paweł

    Hi,
    this is what i got from someone...
    but the links he gave are not opening up...
    u have to place a picture there and have to load the digital signatures as Jpegs on to the server to OA top
    and have to refer them in the XML for dynamically get the signature on the reports
    when u select the properties of the picture placed in the XML template,
    there will be one tab with "URL"... in that u have to give the path for that jpegs
    Pls refer the following documents for enabling digital signature on pdf documents.
    http://iasdocs.us.oracle.com/iasdl/bi_ee/doc/bi.1013/e12187/T421739T481159.htm#5013638    (refer section 'Adding or Designating a Field for Digital Signature'
    http://iasdocs.us.oracle.com/iasdl/bi_ee/doc/bi.1013/e12188/T421739T475591.htm#5013688
    (Implementing a Digital Signature
    Is the BI Publisher installed on your instance of version 10.1.3.4 or higher?
    Pls procure a digital signature as soon as possible. The process can take time. OR we could use any certificate that you already might have OR generate a certificate using Oracle Certificate Authority for demo.

  • Uses for the Action Property with SQL and Oracle DB Adapters

    This thread is a complement to the Wiki Article
    BizTalk: Streamlining WCF SQL and Oracle Messaging-Only and Other Patterns
    The question.  In what circumstances is explicitly setting the Action value with the WCF SQL and Oracle DB bindings useful or beneficial. 
    A complimentary question.  Is it even possible to set the Action value to anything other than exactly what is required by the Message.
    I ask because of three very specific behaviors of the bindings themselves:
    The binding enforces a match between the Action and the Message, therefore...
    There is a one-to-one relationship between the Message and Action, but...
    The binding is able to correctly derive and perform the requested operation with the unspecific CompositeOperation.
    For clarity, I understand how to set the Action. I. understand what the Action represents in the SOAP scheme. I understand how Action can be used as an abstraction for SOAP operations.
    Thoughts?

    Do you have any good suggestion to learn how to use action property with SQL and Oracle DB adapters?  I learn a lot from your replies for years in BizTalk forum. :)

  • Use a delivers agent on a report with "Is Prompted" column, 11g

    Hi all,
    I have a report with is prompted filter on a column. And the report are working fine.
    But now the customer have asked me to set up a deliver agent on the report. And when the agent is running the report it is not working.
    The column that is set to "is prompted" has a expression in business layer and in that expression we are using a session variable. If I changes "is prompted" to a static filter or no filter the agent works fine. I'm getting this error when the agent tries to run the report:
    [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLExecDirectW).
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 23006] The session variable, NQ_SESSION.access_voc, has no value definition. (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Espor voc fields"."Field name" FROM "Esporingdata"')}
    SQL Issued: SELECT "Espor voc fields"."Field name" FROM "Esporingdata"
    Error Codes: AGEGTYVF
    AgentID: /users/weblogic/Linus_test_agent
    ...Trying main Agent loop again.... Sleeping for 6 seconds.[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLExecDirectW).
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 23006] The session variable, NQ_SESSION.access_voc, has no value definition. (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Espor voc fields"."Field name" FROM "Esporingdata"')}
    SQL Issued: SELECT "Espor voc fields"."Field name" FROM "Esporingdata"
    Error Codes: AGEGTYVF
    AgentID: /users/weblogic/Linus_test_agent
    ...Trying main Agent loop again.... Sleeping for 8 seconds.[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Odbc driver returned an error (SQLExecDirectW).
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 23006] The session variable, NQ_SESSION.access_voc, has no value definition. (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Espor voc fields"."Field name" FROM "Esporingdata"')}
    SQL Issued: SELECT "Espor voc fields"."Field name" FROM "Esporingdata"
    Any Help Much Appreciated
    Linus

    Hi Linus,
    Where you able to solve this issue or do you have additional findings to your issue? I'm facing a similar problem: a session variable has no value defined when running from the agent.
    Please let me know,
    Thanks,
    Santiago

  • Trying to use ODAC on 64 bit Windows 7 with 64 bit Oracle 11g?

    I have been trying to connect to Oracle 11g with VS 2010 .NET Framework 4.0 on Windows 7 for about 5 days with no luck.
    Background: VS 2010, .Net Framework 4.0 and Oracle 11g 64 bit are running on the same maching.
    I have found that are two versions of the 64 bit ODAC.
    1) The XCopy bersion and 2) the Oracle Universal Installer version.
    To install the XCopy version, I right click on the cmd window, change to the folder where my xCopy install is and type install.bat all d:\oracle\myoraclehome odac just like the documentation says. The files are created in my Oracle home and there are registry keys under HKLM\Software\Oracle like the documentation says. I don't have a clue how to prove weather it's doing anything usefule though. When I go to VS 2010, I don't have System.Data.Oracleclient of Oracle.DataAccess.client or any other namespace that can talk to Oracle. How would I test the XCopy version and see if it is actually able to do anything?
    I like the Windows Installer version much better and set it up just like the readme.txt said to. I used the Oracle Data Access Components for Oracle Client 11.2.0.2.1. I wound up with two oracle homes, one for my server and one for the ODAC install. I copied tnsnames.ora and sqlnet.ora over to the odac client home's Network\Admin folder. From my server's oracle home, I ran sqlplus and was able to successfully login to the server. I liked the fact that it came with sample code and I saw that the Oracle.DataAcces.client dll was added as a project reference. I ran the samples with my userid and password and got a TNS Adapter error.
    Since the Oracle server is on the same server that everything else is on, I ASS-U-ME that I would want to install the Oracle Data although I didn't see it documented anywhere. I tried creating it in a different directory, but it says it must be installed on top of an existing oracle home. I tried creating it in my oracle home and got err message OUI-10044 - The selected oracle home location already contains an oracle home or APPL_TOP created while running a different OS.
    Can someone tell me how to correctly install either one of these and test it to make sure it is working?
    TIA I know someone on planet Earth must be using the 64-bit odac to connect to Oracle,
    George

    George,
    It sounds like I have the same setup as you and I am no expert on Oracle install issues but VS 2010 is 32bit. You need to install the 32 bit version of ODAC to make VS all happy. I was under the impression ther was no 64 bit version of ODAC? Then again I am no expert on the topic.
    I then installed the 64 bit xcopy version, decided upon the location for tnsname and then defined TNS_ADMIN. All works well. I create most of my exe's as AnyCPU and Windoze/Oracle seems to figure out what to do.
    r,
    dennis

  • Create PDF report with APEX and Oracle 11g doesn't work

    Hi everyone,
    I have a problem with the downloading of PDF reports from APEX with Oracle 11g.
    When I try to download a PDF, Acrobat Reader says it can not open the file.
    I have done the same test in an environment with APEX and Oracle 10g and it works perfectly.
    Does anyone know if there is a known bug for version 11g.
    Thank you very much.

    Hi Munky,
    I open the generated file the Notepad++ I can read the next message:
    *<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1>OracleJSP:*
    An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param <code>debug_mode</code> to "true" to see the complete exception message.</BODY></HTML>
    I have not idea can I solve the problem.
    Have you got any solution for this problem??
    Thank you so much.
    Victor Muñoz.

  • Heterogeneous System Copy from MS SQL to Oracle 11g

    Good day friends,
    I am currently in the stage of running SAPINST to continue the System Copy to the Target (i.e. the export is complete).
    This may seem like a rudimentary question, but I am trying to implement Oracle 11g as the new database (and the SAP version of ECC 5). Now when I execute the sapinst, I only get the option for the Client on 9.2 and the RDBMS on 10.2.0.4.
    I would like to specify 10.2 for the Client and 11g for the RDBMS, but those options are not included in the SAPINST. What must I do to get these options in the SAPINST?
    Any help would be welcome.
    Thanks.

    I have run a system export from MSSQL and Windows Server, and I wish to run the import to Red Hat 5.4 and Oracle 11g.
    I have used the latest ECC 5 Installation Master disk, which still does not have the option to install Oracle 11g. In fact, it only has the option to install Oracle 10g with an Oracle Client version 9. Surely there must be a newer option with Oracle Client 10?
    Here is the product code for the Inst Master I downloaded.
    6.20/6.40 based products Installation Master (Edition May 2008) Number 51033746

  • Anyone used PL/FLOW with APEX in Oracle 11g?

    Greetings.
    I'm trying to find out if any of you have successfully used SourceForge's PL/FLOW with APEX in an 11g environment. References to PL/FLOW seem to be limited to 9i and I need to have some assurance that it would be compatible in a more updated setting.
    And do you have any advice on installation and use cases?
    http://plflow.sourceforge.net/
    Thanks very much!
    Chris

    Hi Chris,
    I've used it in a 10g DB without any problems, I have no reason to suspect (without trying it) that it wouldn't work in 11g.
    Did you try it, did you have some problems?
    John
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • ASM option comes with Standard Edition Oracle 11g R2 Install or not?

    Hello,
    I just wanted to make sure before installing the Oracle 11g R2 software, whether ASM (Automatic Storage Management) is available for Standard edition or not?
    Thank you for your help.
    Ally.
    Edited by: Ally_p on Jun 17, 2010 1:58 PM

    Hi Ally,
    based on:
    http://www.oracle.com/us/products/database/product-editions-066501.html
    I think it is included. See Automatic Storage Management section!
    Regards,
    David
    OCP 9i / 10g / 11g
    https://www.oratoolkit.ch/knowledge/howto/installation/otn.php

  • Migrating from SQL to ORACLE 11g : naming length Issue using synonyms...

    Hi,
    In sql I have maximum length of objects is 98 char
    now i m migrating it into oracle , i m using synonyms for it ..
    it is showing synonyms created ...
    but it gets converted into encrypted forms,
    due to this i m not able to use actual synonyms that i have created
    so tell me how can i create synonyms of more than 30 characters
    If this is not possible , then wht else solution by which i can solve ma problem.
    please give me solution asap!!!!!!!

    Create synonym name with more than 30 character.

  • How to view SQL for a materialized view in SQL Developer (Oracle 11g R2)

    Good Morning,
    I am new to SQL Developer 3.1.07 and just installed it on a Windows 7 PC yesterday.
    There's a materialized view for which I need to view (and eventually update) the SQL. The mat'lized view is in another schema, but my Oracle user does have access to the schema and to this particular mat'lized view. My user also has SELECT, INSERT, UPDATE, DELETE, DEBUG, and ALTER permissions. When I select (click on) the matl'ized view in the object tree on the left, a multi-tab window opens with information in the Columns, Indexes, Grants, Dependencies and Details tabs, but the SQL pane is blank. I don't know if there's some other GRANT that I need in Oracle, or if there's something else I need to do in SQL Developer to see the matl'ized view SQL.
    Thanks
    Bob Gardner
    [email protected]

    1007420 wrote:
    There's a materialized view for which I need to view (and eventually update) the SQL. The mat'lized view is in another schema, but my Oracle user does have access to the schema and to this particular mat'lized view. My user also has SELECT, INSERT, UPDATE, DELETE, DEBUG, and ALTER permissions. When I select (click on) the matl'ized view in the object tree on the left, a multi-tab window opens with information in the Columns, Indexes, Grants, Dependencies and Details tabs, but the SQL pane is blank. I don't know if there's some other GRANT that I need in Oracle, or if there's something else I need to do in SQL Developer to see the matl'ized view SQL.SQL*Developer can be tricky regarding what it shows for other schemas. I'm not sure what privileges you might need besides the one you listed except RESOURCE on the MV, or maybe CREATE ANY MATERIALIZED VIEW.
    Can you use DBMS_METADATA.GET_DDL to get the data you want (may/may not work due to privileges)?

  • Integrating BAM with OSB in Oracle 11g

    Hi,
    Can any one provide me the examples or any helpfull links to integrate BAM with OSb ?
    Thanks in advance.

    Check
    http://www.oracle.com/technetwork/middleware/bam/osb-bam.pdf
    and
    Integration of OSB 11g and BAM
    hth,
    Peter Paul

  • Error connecting with OCCI in Oracle 11G

    Hi,
    I am trying to access the Oracle 10.2.0.1 database using Oracle 11.1.0.6 Client.
    I am able to make connection in SQL Plus window.
    But when I am trying to connect to the DB with Occi I ran with this problem in Oraocci11.dll
    Unhandled exception at 0x1001e604 in Occi_8.exe: 0xC0000005: Access violation reading location 0x32869770.
    Please suggest what is to be done in this regard.
    Thanks in advance
    kameswara Sarma

    Please check if you are using the correct compilers (Installation guides) and see if you need anything from here:
    [http://www.oracle.com/technology/tech/oci/occi/occidownloads.html]

  • Ora 24960 exception with VC9 and Oracle 11g - 11.1.0.6.0 client

    Hi,
    We have developed a OCCI client application using 10g express edition and visual studio 2003. It was working fine. Now we have migrated to 11g (11.1.0.6.0) client with visual studio 2008. VC version 9. We have migrated all .dll and .lib files based on oracles following link.
    http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    Now while trying to make connection it's throwing ORA 24960 exception. (the attribute OCI_ATTR_USERNAME is greater than the maximum allowable length of 255)
    but the attribute length is very less.
    connection = env->createConnection (oraUser,OraPass,conne);
    Anybody can help immediately please?

    Hi,
    Are you compiling in debug mode and using the Instant Client SDK by chance? If so, I suggest taking a look at My Oracle Support Note:747933.1 (ORA-24960 Error When Trying to Connect in Debug Mode With OCCI Instant Client). Essentially the issue is that the OCCI files included with Instant Client SDK do not include the oraocci11d.lib library.
    Regards,
    Mark

  • How to get the Column names of output that is displaying in Sql Developer(Oracle 11g).

    Hi,
        I am using OCCI to interact with DB through code, which means I am writing a vc++ file to interact with Data Base and execute the Stored Procedure which I am calling from the C++ Code. And  also displaying the output of the Stored Procedures to the Front End. I am succeeded in this, but now I should be able to display  the Column names of the output to Front End. Can any one help me on this.
    Example:
    Sno  |   Sname
    ------- |-------------
    1          ABC
    2          DEF
    I am getting (1,ABC) and (2,DEF) as the output of the Stored Procedure but I need the Column names also to display. How to get them.
    Thanks in Advance..:)

    Look at Re: exporting csv via pl/sql - select statement?
    It has an example how to extract the column name from a cursor. You have to check, whether you can use DBMS_SQL.DESCRIBE_COLUMNS
    Your procedure might need another out parameter, that returns the column names , e.g. as comma separated list or as varray.

Maybe you are looking for