Problem using XML function in procedures (internal error )

Hi all,
I use the XML function in a stored procedures but when i compile these i have this error PLS-00801: internal error (74806).
The strangeness is that the single instruction launched from sql plus type
SELECT XMLElement("? xml",xmlattributes('1.0' as "version")) FROM dual; it's right.
thank.

The Db version is 9.2.0.1
This is the source:
CREATE OR REPLACE procedure bi_create_XML_invoice as
BEGIN
declare
in_file UTL_FILE.file_type;
linebuf varchar2(1000);
tmpstr varchar2(50);
tmppririga varchar2(500);
tmpsecriga varchar2(500);
tmpdocinfo varchar2(500);
BEGIN
SELECT XMLElement("? xml",xmlattributes('1.0' as "version"))
INTO tmppririga
FROM dual;
END;
END bi_create_XML_invoice;
Thanks

Similar Messages

  • Internal error using XML function in procedures

    Hi all,
    I use the XML function in a stored procedures but when i compile these i have this error PLS-00801: internal error (74806).
    The strangeness is that the single instruction launched from sql plus type
    SELECT XMLElement("? xml",xmlattributes('1.0' as "version")) FROM dual; it's right.
    thank.

    Are you sure you don't want to use the XMLROOT functionality to achieve that?
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/functions225.htm
    SQL> SELECT XMLROOT ( XMLType('<poid>143598</poid>'), VERSION '1.0', STANDALONE YES)
      2     AS "XMLROOT" FROM DUAL;
    XMLROOT
    <?xml version="1.0" standalone="yes"?>
    <poid>143598</poid>
    SQL>

  • Unable to use XML functions in OWB 10gR2.

    Hi,
    I am trying to use XMLELEMENT ,XMLATTRIBUTES and XMLFOREST function for loading into a XML file using OWB 10Gr2.
    During deployment it is erroring out with an error 'identifier 'XMLELEMENT' must be declared'.
    Please suggest some workaround or possible reason for this problem.
    Reagrds,
    PHD
    Edited by: user1662077 on May 21, 2009 5:17 AM

    Hi Navneet,
    I have followed these steps,But beyond that there is some thing which we want to achive.
    We want the xml file to have a proper format like
    "<?xml version="1.0" encoding="UTF-8"?>
    <Header recTyp ='01' RTA='IN200200' ISIN='IN2000020220' recDate ='20090202' stmtDate='20090202' stmtTime='232020'
    totNSDLPos='100' totTrnstPos='0' TotUnlckPos='10' TotLckPos='100' totPldgPos='0' totFrzPos='9' totIdtPos='9'
    NSDLTotFrzPos='1' totDtlRec='2'/>
    <Details recTyp='02' dpId='IN300118'>
    <BenDtl benAcctNum='12345678' type='01' subtype='02' status='01'>
    <FirstHldr name='op' fatherName='' PAN='HUFSOSFNKS'>
    <Address type='1' pinCode='400097' phoneNum='28490520' faxNum='9999999999'>
    <Part type='1'>
    </Part>
    <Part type='2'>
    </Part>
    <Part type='3'>
    </Part>
    <Part type='4'>
    </Part>
    </Address>
    </FirstHldr>.........."
    On the oracle blogs it was suggested that this can be achived by using XML function in the expression operator.
    But while using them,OWB is not recongnising these XML function.
    Regards,
    PHD

  • How to use XML functions in CEP

    Hi,
    I am trying to implement XML functions in CEP. But i am getting error while using XMl function in config.xml file.
    Please provide some help to resolve this issue.
    Adapter Class
    package com.bea.wlevs.example.adapter.XML_CEP;
    import com.bea.wlevs.ede.api.EventProperty;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.util.Service;
    public class XMLAdapter implements RunnableBean, StreamSource {
    private String id;
    private String name;
    private StreamSender eventSender;
    private EventTypeRepository etr_;
    public XMLAdapter() {
    super();
    public void run() {
         setName("abc");
    generateMessage();
    public void setId(String id)
         this.id = id;
    public void setName(String i)
         this.name = i;
    @Service
    public void setEventTypeRepository(EventTypeRepository etr) {
         etr_ = etr;
    private void generateMessage() {
         EventType type = etr_.getEventType("XMLEvent");
         EventProperty messageProp = type.getProperty("name");
         EventProperty msgProp = type.getProperty("msg");
         Object event = type.createEvent();
         messageProp.setValue(event, name);
         msgProp.setValue(event, "<PDRecord><PDId>6</PDId><PDName>hello1</PDName></PDRecord>");
         eventSender.sendInsertEvent(event);
    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    public synchronized void suspend() {
    EPN Assembly file
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
         xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
         xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
         xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="XMLEvent">
                   <wlevs:properties>
                        <wlevs:property name="msg" type="xmltype" />
                        <wlevs:property name="name" type="char" length="256" />
                   </wlevs:properties>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter advertise="true" id="XML_Adapter"
              class="com.bea.wlevs.example.adapter.XML_CEP.XMLAdapter">
              <wlevs:listener ref="IPStream" />
              <wlevs:instance-property name="id" value="123" />
              <wlevs:instance-property name="name" value="Kanika" />
         </wlevs:adapter>
         <wlevs:processor id="XML_processor" provider="cql">
              <wlevs:listener ref="OPStream" />
         </wlevs:processor>
         <wlevs:channel id="IPStream" event-type="XMLEvent">
              <wlevs:listener ref="XML_processor" />
         </wlevs:channel>
         <wlevs:channel id="OPStream" event-type="XMLEvent">
              <wlevs:listener ref="bean" />
         </wlevs:channel>
         <bean id="bean" class="com.bea.wlevs.example.outputBean.XML_CEP.OutputBean">
         </bean>
    </beans>
    Config.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
    <processor>
    <name>XML_processor</name>
    <rules>
              <query id="q1"><![CDATA[
             SELECT
                 XMLEXISTS(
                 "for $i in /PDRecord RETURN $i/PDName"       *// I am getting error at this line*       
             PASSING BY VALUE 
                    msg as "."
                     RETURNING CONTENT
                      ) XMLData
                  FROM IPStream
              ]]></query>
    </rules>
    </processor>
    </wlevs:config>
    Output Bean Class
    package com.bea.wlevs.example.outputBean.XML_CEP;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.example.event.XML_CEP.DummyEvent;
    import com.bea.wlevs.util.Service;
    public class OutputBean implements StreamSink {
         EventTypeRepository etr_;
         @Service
         public void setEventTypeRepository(EventTypeRepository etr) {
              etr_ = etr;
    public void onInsertEvent(Object event) {
         EventType eventType = etr_.getEventType(event);
         String prop = (String)eventType.getPropertyValue(event, "name");
         String prop2 = (String)eventType.getPropertyValue(event, "msg");
         System.out.println("Tuple Message: " + prop + ":" + prop2);
    Error i am getting is:
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
              >
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
    generic syntax error. The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServerTrace> <BEA-000000> <oracle.cep.parser.SyntaxException: generic syntax error>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <CQLProcessor> <BEA-000000> <Failed to create statement [q1].
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <Deployment> <BEA-2045016> <The application context "XML_CEP" could not be started. Could not initialize component
    "<unknown>":
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:54:00 PM IST> <Notice> <Deployment> <BEA-2045001> <The application bundle "XML_CEP" was undeployed successfully>
    Thanks in advance.

    Hi Vikram,
    I need some more help from your side.
    It would be great help if you will let me know that how to extract the data from particular XML tag.
    As of now i want to extract particular XML node by applying that query and the result i am getting is: <applicationID>Engage</applicationID>
    I just want to know if I want to extract only data from this XML node i.e Engage instaed of *<applicationID>Engage</applicationID>*
    Then what will be the query?
    Thanks in Advance

  • Problem using two function based indexes at once!

    Hello Oracle!
    I've got problems using two function based indexes on geometries at once.
    The problem occures, when I use a spatial join between two geometries both using function based indexes.
    The test case:
    CREATE TABLE quad (centroid NUMBER);
    CREATE TABLE points (no NUMBER, point MDSYS.SDO_GEOMETRY);
    CREATE OR REPLACE FUNCTION getQuad (centroid NUMBER) RETURN MDSYS.SDO_GEOMETRY DETERMINISTIC IS
    BEGIN
    RETURN MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(centroid-5,centroid-5,centroid+5,centroid-5,centroid+5,centroid+5,centroid-5,centroid+5,centroid-5,centroid-5));
    END;
    INSERT INTO USER_SDO_GEOM_METADATA VALUES('quad','tiedge.getQuad(centroid)',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', -100, 100, .0000001), MDSYS.SDO_DIM_ELEMENT('Y', -100, 100, .0000001)),NULL);
    CREATE INDEX quad_idx on quad(getQuad(centroid)) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    INSERT INTO quad VALUES (0);
    INSERT INTO quad VALUES (5);
    INSERT INTO quad VALUES (10);
    INSERT INTO points VALUES (1, MDSYS.SDO_GEOMETRY(1001,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1),MDSYS.SDO_ORDINATE_ARRAY(4,4)));
    ALTER SESSION SET QUERY_REWRITE_INTEGRITY=TRUSTED;
    ALTER SESSION SET QUERY_REWRITE_ENA[i]Long postings are being truncated to ~1 kB at this time.

    hi there,
    For a better audience for this question, I'd look at the database forum.
    guys on that will be a lot more familiar with FBIs
    thanks
    Barry

  • Problem using LIKE function

    Hi Guyz,
    I am having small problem using LIKE function . The problem is I am using LIKE function in the WHERE clause
    to compare a column to a particular value, which gets this value from the front end. If the user has a single quote in the string he entered then the LIKE function is not working because of the single quote. Is there any way I can escape the single quote like we escape '%' and '_'.
    Thankyou.

    Mod_plsql supports bind variables, as do almost all front-end tools that deal with Oracle (and most other databases). I do not code mod pl/sql myself, but others here do, and I see bind variables in their code all the time (if I don't, they hear from me :-)).
    If you pass a bind variable, the quote problem goes away. As far as I know (which is not very far), you should be able to take the string with the quote directly from your input field, bind it to the variable in your query and have no problems.
    I suspect that the reson you are having issues is that you are just gluing strings together to create a sql statement. this is the wrong approach.
    The java term for what you are looking for is prepared statement, I'm not sure what the equivalent is i mod plsql, but that should give you a start.
    John

  • Database updation using XML and stored Procedure?

    Hello,
    I want to perform updation in multiple tables using XML files.Please suggest can I do updation using xml and stored procedure.
    If yes then which is more efficient and takes less time.
    1.Updation using xml files only
    2.Updation using xml files with stored procedure.
    3.Stored procedure alone.
    If direct xml and stored procedure communication is possible.then please write how.
    Thanks in advance for any help.

    Here's a sample. The next code drop of the XSQL Servlet will make the easy-to-do from within XSQL Pages:
    package package1;
    import org.w3c.dom.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class Class1 extends Object {
    public static void main( String[] arg ) throws Exception {
    Connection conn = getConnection();
    CallableStatement ocs = conn.prepareCall("begin ? := App.HotItems('PAUL'); end;");
    ocs.registerOutParameter(1,OracleTypes.CURSOR);
    ocs.execute();
    ResultSet rs = ((OracleCallableStatement)ocs).getCursor(1);
    OracleXMLQuery oxq = new OracleXMLQuery(conn,rs);
    System.out.println(oxq.getXMLString());
    oxq.close();
    rs.close();
    ocs.close();
    conn.close();
    public static Connection getConnection() throws Exception {
    String username = "scott";
    String password = "tiger";
    String dburl = "jdbc:oracle:thin:@localhost:1521:xml";
    String driverClass = "oracle.jdbc.driver.OracleDriver";
    Driver d = (Driver)Class.forName(driverClass).newInstance();
    return DriverManager.getConnection(dburl,username,password);
    null

  • Help!!  Problem in XML Functions!!!!

    hi:
    everyone!!
    when i use the xml functions deletexml, insertxmlbefore, appendchildxml, insertchildxml to update the xml. i get a error:ORA-19039: Keyword DELETEXML reserved for future use.
    here is my query string:update xml_table set xpo=deletexml(xpo, '/sh:Sender', xmltype(?))
    but function updatexml can play well.
    can anybody help me to solve the problem??? i am just beginning to use Oracle xml database.
    Thanks.

    oh,yes, you are right,my oracle version is 10.1.0.2.0. i don't pay attention to the difference between 10.1.* and 10.2.*. so i think the functions was also supported. i will get a version of 10.2.* to try.
    thanks for your help:mdrake!!!

  • BPM problems on PI (XI 7.0) - internal error - Does BPM work in PI for you?

    Hi guys!
    This is the 2nd time I get into the troubles with BPM on PI. On XI 3.0 I had never problems. But on PI when I use BPM I get following error:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Empfängergruppierung
      -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Es ist ein interner Fehler aufgetreten</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    SAP:Stack tag means in english: An internal error has occured.
    My scenario is:
    Idoc sent from R/3
    Mapping to Integration Process (BPM) inbound interface format
    Message receiver in Int Proc (start of BPM)
    sync call to web service (inside Int Proc)
    web service response sent out from BPM (end of BPM)
    mapping of ws response to target structure (idoc)
    Idoc sent to r/3
    I don't know, what could be wrong. In SXI_CACHE I have return code 0 for this Integration Process, so it should be ok.
    Any ideas? Does BPM work in your PI environment?
    Thanx a lot foro help!
    Olian.

    hi,
    >>>>Any ideas? Does BPM work in your PI environment?
    of course it does
    it might mean that your installation was not done properly (or XI configuration during installation) but it has nothing to do with BPM
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Problem using WIN_API function (Urgent...)

    dear all,
    I am using Forms 6i, I try to use the WIN_API_ENVIROMENT functions in the d2kwutil.pll. I have attached the pll to my form and the form was compiled OK. But when I run the form, Internal Error was shown, it seems that the form cannot start the WIN_API function. Luckily enough, I use the old d2kwutil.pll that come with Forms 6, it works 'OK', .... but when I tried to run it on my user machine, it still got Internal Error. I really don't know what's the problem. After several testing, I know if I run the form on a machine that have Form Builder installed will have a greater chance to work correctly. Does anyone have the same problem ???

    The machine that the form runs on needs to have the d2kwutil file on it. This is in the Oracle Developer - Demos and Add-ons product, which should be available in the Oracle Installer.

  • Static class functions: PLS-00801: internal error [phd_get_defn:D_S_ED:LHS]

    Any ideas why this would generate an internal error - referring to a static class function in that class constructor's parameter signature?
    Test case (on 11.2.0.2) as follows:
    SQL> create or replace type TMyObject is object(
      2          id      integer,
      3          name    varchar2(30),
      4 
      5          static function DefaultID return integer,
      6          static function DefaultName return varchar2,
      7 
      8          constructor function TMyObject(
      9                  objID integer default TMyObject.DefaultID(), objName varchar2 default TMyObject.DefaultName()
    10          )return self as result
    11  );
    12  /
    Type created.
    SQL>
    SQL> create or replace type body TMyObject is
      2 
      3          static function DefaultID return integer is
      4          begin
      5                  return( 0 );
      6          end;
      7 
      8          static function DefaultName return varchar2 is
      9          begin
    10                  return( 'foo' );
    11          end;
    12 
    13          constructor function TMyObject(
    14                  objID integer default TMyObject.DefaultID(), objName varchar2 default TMyObject.DefaultName()
    15          )return self as result is
    16          begin
    17                  self.id := objId;
    18                  self.name := objName;
    19                  return;
    20          end;
    21 
    22  end;
    23  /
    Type body created.
    SQL>
    SQL> declare
      2          obj     TMyObject;
      3  begin
      4          obj := new TMyObject();
      5  end;
      6  /
    declare
    ERROR at line 1:
    ORA-06550: line 0, column 0:
    PLS-00801: internal error [phd_get_defn:D_S_ED:LHS]If the static class functions are removed from the constructor and applied instead inside the constructor body, it works without error. Likewise you can call the constructor with the static class functions as parameters, without an internal error resulting.
    SQL> create or replace type TMyObject is object(
      2          id      integer,
      3          name    varchar2(30),
      4 
      5          static function DefaultID return integer,
      6          static function DefaultName return varchar2,
      7 
      8          constructor function TMyObject(
      9                  objID integer default null, objName varchar2 default null
    10          )return self as result
    11  );
    12  /
    Type created.
    SQL>
    SQL> create or replace type body TMyObject is
      2 
      3          static function DefaultID return integer is
      4          begin
      5                  return( 0 );
      6          end;
      7 
      8          static function DefaultName return varchar2 is
      9          begin
    10                  return( 'foo' );
    11          end;
    12 
    13          constructor function TMyObject(
    14                  objID integer default null, objName varchar2 default null
    15          )return self as result is
    16          begin
    17                  self.id := nvl( objId, TMyObject.DefaultID() );
    18                  self.name := nvl( objName, TMyObject.DefaultName() );
    19                  return;
    20          end;
    21 
    22  end;
    23  /
    Type body created.
    SQL>
    SQL> declare
      2          obj     TMyObject;
      3  begin
      4          obj := new TMyObject();
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> declare
      2          obj     TMyObject;
      3  begin
      4          obj := new TMyObject(
      5                          objID => TMyObject.DefaultID(),
      6                          objName => TMyObject.DefaultName()
      7                  );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> Had a quick look on support.oracle.com and did not turn up any specific notes dealing with the use of static class functions in the parameter signature of the constructor. Known issue? Any other workaround besides the one above?

    Hi,
    there is a bug: "Bug 8470406: OBJECT INSTANCE CREATION FAILS WITH ERROR PLS-00801 IN 11GR1", it shows the behaviour in 11g but not in 10.2. It gives exactly the symptoms you also see, move it to the body and it works. But there is no solution/patch given.
    Herald ten Dam
    http://htendam.wordpress.com

  • Sporadic errors in XML DB (ORA-00600: internal error code)

    We observe a sporadic error in an XML DB based application. The error message is as follows:
    java.sql.SQLException: ORA-00600: internal error code, arguments: [qmxMakeFake1], [], [], [], [], [], [], []
    Our application uses Java / JDBC to connect to the Oracle XML DB server (Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production). The error occurs for several SQL queries that involve changes to XML files in the database. Here are two representative examples:
    update EPIGRAPH_095 e set value(e) = insertchildxml(value(e),'/EpiGRAPH/analysis[global_settings/job_information/id/text()="070427_164952_518077172"]/class_analysis/attribute_calc_analysis','results',XMLType(:1)) WHERE e.existsNode('/EpiGRAPH/analysis[global_settings/job_information/id/text()="070427_164952_518077172"]/class_analysis/attribute_calc_analysis') = 1
    update EPIGRAPH_095 e set value(e) = updatexml(value(e),'/EpiGRAPH/analysis[global_settings/job_information/id/text()="070427_145224_574975277"]/global_settings/job_tracking/status',XMLType(:1)) WHERE e.existsNode('/EpiGRAPH/analysis[global_settings/job_information/id/text()="070427_145224_574975277"]/global_settings/job_tracking/status') = 1
    In these queries, ":1" is a CLOB that is created and filled from Java using the CLOB object. We use XML decomposition into object-relational tables via a registered schema.
    The error occurs sporadically in roughly 5% percent of the calls and we could not construct a testcase which reproduces it in a deterministic way.
    Thank you in advance,
    Christoph Bock

    Did you get any additional hints from your development colleagues? We still don't have any clear idea about how to solve the problem. Our current workaround is to repeat any failed query until it succeeds. Typically, one or two repetitions will do the job, but this workaround is obviously very ugly and may well give rise to infinite loops (as we don't understand the cause of the sporadic errors).
    Thank you and best regards,
    Christoph Bock

  • Problem using jolt function checkAuthentication. chkauth:J_CHECKAUTH FAILED

    Hi, I'm using jolt 8.1.
    When I attemp to chek security requirements using the function checkAuthenticationLevel() of the class JoltSessionAttributes it gives an error.
    I have previously setted the address:
    JoltSessionAttributes = new JoltSessionAttributes();
    sattr.setString(JoltSessionAttributes.APPADDRESS, "//50.88.43.237:6005");
    sattr.checkAuthenticationLevel();
    Then it fails:
    bea.jolt.SessionException: Cannot connect to any //50.88.43.237:6005.
    Reason:NwHdlr: Network Error: chkauth: J_CHECKAUTH FAILED
    Any idea? thx.

    Hi,
    I was facing a similiar problem but when i changed the port number it didnot give me this error but now its giving me bea.jolt.ServiceException:Service is not available:GETKEYS.
    Can you help me solve this

  • Problem using MDX functions in Answers Filter

    I'm using OBIEE 10.1.3.2.
    I'm using an Essbase cube as my datasource (aggregate storage).
    My level 0 members in my Date dimension are of the format yyyy-mm-dd (e.g., 2011-08-13)
    I have a dashboard prompt selecting the date from a calendar which returns the date and time (yyyy-mm-dd hh:mm:ss). So naturally I can't do just a straight equals between the prompt value and the member value.
    What I've written in the filter sql in Answers is: Date.Days = Evaluate('SUBSTRING(%1,1,10)','@{varStartDate}')
    The log shows the following:
    -------------------- SQL Request:
    SELECT Date.Days saw_0, main.total_completed_orders saw_1 FROM SIKAgg2 WHERE Date.Days = Evaluate('SUBSTRING(%1,1,10)','2011-08-09 00:00:00') ORDER BY saw_0
    -------------------- Sending query to database named mezen (id: <<9648>>):
    With
    set [Date4] as 'Filter([Date].Generations(4).members, (([Date].CurrentMember.MEMBER_ALIAS = "2011-08-09 00:00:00" OR [Date].CurrentMember.MEMBER_Name = "2011-08-09 00:00:00")))'
    select
    { [Measures].[total_completed_orders]
    } on columns,
    NON EMPTY {SUBSTRING(,1,10)SUBSTRING(,1,10)SUBSTRING(,1,10){[Date4]}} properties ANCESTOR_NAMES, GEN_NUMBER on rows
    from [SIKAgg2.main]
    So with all that being said it doesn't appear that the MDX function SUBSTRING is actually doing anything.
    1) Am I using the function incorrectly?
    2) Is there a better way to do this? I really just need to get rid of the time portion of the variable from the date prompt.
    Any help/guidance would be greatly appreciated. Spending too much time with trial and error approach.
    Thanks,
    Brad

    Brad,
    Try this way..In OBIEE RPD - Physical Layer for level 0 members in my Date dimension. Double click this member and check its type. Change the type to 'DATE' from 'DATETIME'. Delete the Date Dimension in BMM layer & Presentation Layer for again drag and drop from Physical Layer after changing the Type in physical layer.
    Normal way of building the RPD using Essbase
    Something similar to this http://www.rittmanmead.com/2009/03/dates-timestamp-and-oracle-bi-answers-filters/
    This shud solve your timestamp problem everywhere. This is one of the most common problem for Oracle sources. I have essbase as a source but unfortunately I can't replicate it as this is not having time level.
    Let me know if this solves your problem...
    In case the type is DATE only in RPD then I'll try to provide a diff soln here.
    Hope this helps

  • Unable to use XML functions

    Hi,
    We have a requirement where we want to read the XML data from the CLOB column of a table. In OWB we are using the SYS_XMLGEN function for this. But when I use this in the expression it gives me error that 'SYS_XMLGEN' must be declared.
    I am able to use this in the select query and the query is working fine.
    Anyone has any idea of how we can use the XML functions in OWB.
    Thanks!!

    user10911550 wrote:
    Hi,
    We have a requirement where we want to read the XML data from the CLOB column of a table. In OWB we are using the SYS_XMLGEN function for this. But when I use this in the expression it gives me error that 'SYS_XMLGEN' must be declared.
    I am able to use this in the select query and the query is working fine.
    Anyone has any idea of how we can use the XML functions in OWB.
    Thanks!!see if any of these helps:
    http://blogs.oracle.com/warehousebuilder/2007/05/designing_an_xml_view_in_owb.html
    http://download.oracle.com/docs/cd/B28359_01/owb.111/b31278/ref_sql_transforms.htm#i138579
    http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html

Maybe you are looking for

  • Viewing on an external monitor?

    I currently use an AJA T-tap to view my output on an external monitor. I have heard that with the new Mac Pro I can view pixel to pixel using HDMI. Is that true? And how do you do it? No longer a need for the T-Tap? Best. Tom

  • Photo's Not Downloading Correctly

    My new 5G will only load about 700 of the 1700 pictures in my iPhoto Library. I have the auto update set to "sync photos from iPhoto & coply all photos & albums". It goes theru the whole process but in the end only about 700 pictures get trandferred

  • Do I have to use antivirus for macbook pro?

    I don't know if my macbook pro has a virus, but sometimes it is very slow and it's only about two years old. So do I have to use antivirus ?

  • Login SQL per Connection

    I would like to have tha ability to configure a SQL-String or sqlscript like the Connection-Startup-Script but per Connectionconfiguration. I need this to set a Contextinformation on the Session. I didn't find such a ConfigurationOption until now. De

  • I can't connect to Youtube from my Ipad.

    I can't connect to Youtube on my Ipad from Safari OR the icon. Anybody?