Xml extract problem

I have a problem about sql to extract xml node,the sql followed:
select a.disptx.extract('/Record/_20/text()').getStringVal() from swifti a where swidty = '6666666666666666666'
and the clob is :
<Record>
<swrctm>2223</swrctm>
<swintm>22:23:13</swintm>
<swindt>20100826</swindt>
<fmbank>ssssss</fmbank>
<tobank>444444rrrrrrr</tobank>
<fm>sdfds</fm>
<to>wwwwwwwwww</to>
<mgtype>103</mgtype>
<swftid>dddddd</swftid>
<sw108f>dddddd</sw108f>
<swackf>0</swackf>
<_20>fffffffffff</_20>
</Record>
that throw the exception:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: '/Record/_20/text()'
ORA-06512: at "SYS.XMLTYPE", line 111
31011. 00000 - "XML parsing failed"
*Cause:    XML parser returned an error while trying to parse the document.
*Action:   Check if the document to be parsed is valid.
can help me?

you need convert clob to xmltype
select xmltype(a.disptx).extract('/Record/_20/text()').getStringVal() from swifti a
create table test (x clob);
Table created.
insert into test values ('<Record>
<swrctm>2223</swrctm>
<swintm>22:23:13</swintm>
<swindt>20100826</swindt>
<fmbank>ssssss</fmbank>
<tobank>444444rrrrrrr</tobank>
<fm>sdfds</fm>
<to>wwwwwwwwww</to>
<mgtype>103</mgtype>
<swftid>dddddd</swftid>
<sw108f>dddddd</sw108f>
<swackf>0</swackf>
<_20>fffffffffff</_20>
</Record>');
commit;
1 row created.
Commit complete.
SELECT xmltype(x).EXTRACT ('/Record/_20/text()').getstringval ()
  FROM test;
XMLTYPE(X).EXTRACT('/RECORD/_20/TEXT()').GETSTRINGVAL()                        
fffffffffff                                                                    
1 row selected.http://docs.oracle.com/cd/B10500_01/appdev.920/a96620/xdb04cre.htm

Similar Messages

  • XML extract error

    Hello -
    This is my table:
    SQL> describe UCCNET_REGISTRY_CAT_ITEM;
    Name Null? Type
    UCCNET_REGISTRY_CAT_ITEM_KEY NOT NULL NUMBER
    XML XMLTYPE
    EAN_UCC_PROXY_KEY NUMBER
    DOCUMENT_NAME VARCHAR2(256)
    SQL>
    and this is my statement that is supposed to extract the XML data:
    select p.XML
    from UCCNET_REGISTRY_CAT_ITEM p
    where p.XML.extract('/item/text()').getStringVal = '123';
    I did it exactly as the Oracle Viewlet showed it to me but I got this error:
    where p.XML.extract('/item/text()').getStringVal = '123'
    ERROR at line 3:
    ORA-22806: not an object or REF
    Could you please tell me wher I went wrong?
    Thanks,
    Peter

    I just hit something else on top of my previous problem with XML namespaces. I am trying to pass my XML document to a stored procedure and I seem to be hitting a length limit for a parameter.
    Here's my SP:
    create or replace procedure TEST_UCCnet_Add_Envelope( p_key in number, p_XML in VARCHAR2) is
    lastIndex number;
    begin
    lastIndex := 0;
    insert into Envelope (
    ENVELOPE_KEY,
    XML )
    values (
    lastIndex,
    sys.XMLTYPE.createXML (p_XML));
    end;
    Here's How I call it:
    This parameter gets through(951 Bytes):
    execute TEST_UCCnet_Add_Envelope( -5, '<envelope communicationVersion="2.2"> <messageHeader> <messageIdentifier> <value>RCIR-MSGID-001</value> </messageIdentifier> <userId>steruser</userId> <representingParty> <gln>0034500000000</gln> </representingParty> </messageHeader> <registerCommandOperand> <registryCatalogueItem type="RegistryCatalogueItemType" creationDate="2001-08-02T12:00:00" documentStatus="ORIGINAL"> <registryCatalogueItemState state="REGISTERED"/> <catalogueItemClassification classificationCategoryCode="UDEX.02.0016.0093"/> <catalogueItemReference> <gtin>00061420464322</gtin> <dataSource>1701911838063</dataSource> </catalogueItemReference> <sourceDataPool>8507247615230</sourceDataPool> <informationProviderOfTradeItem> </informationProviderOfTradeItem> </registryCatalogueItem> <test_tag></test_tag> </registerCommandOperand> </envelope>');
    This one, does not (987 Bytes). All I added is the test_tag element:
    execute TEST_UCCnet_Add_Envelope( -6, '<envelope communicationVersion="2.2"> <messageHeader> <messageIdentifier> <value>RCIR-MSGID-001</value> </messageIdentifier> <userId>steruser</userId> <representingParty> <gln>0034500000000</gln> </representingParty> </messageHeader> <registerCommandOperand> <registryCatalogueItem type="RegistryCatalogueItemType" creationDate="2001-08-02T12:00:00" documentStatus="ORIGINAL"> <registryCatalogueItemState state="REGISTERED"/> <catalogueItemClassification classificationCategoryCode="UDEX.02.0016.0093"/> <catalogueItemReference> <gtin>00061420464322</gtin> <dataSource>1701911838063</dataSource> </catalogueItemReference> <sourceDataPool>8507247615230</sourceDataPool> <informationProviderOfTradeItem> <test_tag>kkkkkkkkkkkkkkk</test_tag> </informationProviderOfTradeItem> </registryCatalogueItem> <test_tag></test_tag> </registerCommandOperand> </envelope>');
    And here's the error message:
    ERROR:
    ORA-01756: quoted string not properly terminated
    SP2-0042: unknown command "pe>')" - rest of line ignored.
    This suggests strongly that the argument is simply too long for the SP to accept. Am I right?
    Thanks,
    Peter

  • WIJ 20002 xml Parser Problem - Rich Client

    Hi,
    I have a problem with the rich client on a new installation:
    Business Objects Enterprise XI 3.1 SP3 on Windows 2008 Standard.
    If I connect with the rich client "import document"is disabled.
    if I try to create a new document from the rich client it returns the error below (I used the rich client on two workstations):
    WIJ 20002
    Version: null
    Analisi dello stack:
    java.lang.RuntimeException: java.lang.RuntimeException: XML parser problem:
    XMLJaxpParser.parse(): Element type "ABOUT_Patentnumbers" must be followed by either attribute specification, ">" or "/>".
    at com.businessobjects.wp.xml.jaxp.XMLJaxpParser.parse (Unknown Source)
    at.com.businessobjects.webi.richclient.XMLviaOccaRC.getServerConfiguration (Unknown Source)
    Have you any solution?

    The fixpack 3.5 client resolves the problem.

  • XML - ExportDocument problem

    I'm exporting a xml document that I'm creating dynamically in my application.
    I'm having the following problems (working with 30M.2).
    1)
    It's not possible to edit a DTD (or creating one run time) so I have to write a
    template doc XML to have it.
    I'm afraid that this is a costraint on the DOM1 so ...
    2)
    Once I complete the construction of the doc, I need to write it down (let's say
    on a file, but could be also in memory to send it on http).
    When I write it (using exportdocument function) I just find the root element
    with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>) so I
    cannot have the dtd information on the stream, and cannot enforce validation of
    the doc when someone read it afterwards.
    I admit I'm new of the subject, but or I miss something or something is wrong:
    having trouble to get a dtd and not being able to code it's information.
    Anyone has some ideas?
    TIA
    Luca

    I'm interested in DTDs. For example in the reported situation, why, if you
    know you've created a valid XML document would you want to give a DTD to
    someone at the other end? If someone has a DTD at the other end and want to
    use it to validate your XML then fine but if you create the XML and are
    controlling the format then wouldn't they just assume the XML correct if the
    DTD wasn't being controlled by a 3rd party or themselves?
    DTDs don't help you create a document but just validate it, I'd thought. If
    there is more to DTDs I'd appreciate if someone felt like ellaborating.
    Thanks.
    Matthew Middleton
    OrYx Software Consultant
    Lawpoint Pty. Limited
    A Solution 6 Company
    Ph: +61 2 9239 4972
    Fax: +61 2 9239 4900
    E-mail matthewmwriteme.com
    ----- Original Message -----
    From: Luca Gioppo <Luca.GioppoCSI.IT>
    To: <forte-userslists.xpedior.com>
    Sent: Tuesday, August 08, 2000 8:24 PM
    Subject: (forte-users) XML - ExportDocument problem
    >
    >
    I'm exporting a xml document that I'm creating dynamically in myapplication.
    I'm having the following problems (working with 30M.2).
    1)
    It's not possible to edit a DTD (or creating one run time) so I have towrite a
    template doc XML to have it.
    I'm afraid that this is a costraint on the DOM1 so ...
    2)
    Once I complete the construction of the doc, I need to write it down(let's say
    on a file, but could be also in memory to send it on http).
    When I write it (using exportdocument function) I just find the rootelement
    with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>)so I
    cannot have the dtd information on the stream, and cannot enforcevalidation of
    the doc when someone read it afterwards.
    I admit I'm new of the subject, but or I miss something or something iswrong:
    having trouble to get a dtd and not being able to code it's information.
    Anyone has some ideas?
    TIA
    Luca
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Create a large XML extract from relational tables - 10g

    The Oracle 10g documentation recommends using the various SQL functions such as XMLAGG,XMLELEMENT or DBMS_XMLGEN under chapter "16 Generating XML Data from the Database" for generating a XML extract file. The DBMS_XMLDOM seems like a useful structured package to create a XML formatted extract. Any idea why Oracle does not recommend the use of XMLDOM API ? Are there performance issues or likely de-support ?
    Whats the best way to produce a large XML extract?
    Thanks.

    mdrake wrote:
    No reason not to use it. It just tends to require a lot more coding than the other methods. Underneath the covers they all map into the same code-line. In general, to generate a given XML document you wlll write far fewer lines of code using the SQL/XML operators. Less Code written = less code to maintan = faster time to market.Less code to parse...?

  • Using XML extraction from Oracle and XSLT data transformation

    Hi
    How can transfer data ie: Using XML extraction from Oracle and XSLT data transformation with java application?
    usually i use to do querying sql, getting data from table assinging to model class then send it to UI. how can i go for XML extraction form oracle?
    thanks

    Sorry, I don't understand what exactly you want to do. And I'm under the impression that you might not know exactly what you want to do as well. Could you explain a bit more detailed what you want to achieve?

  • Txt to xml. Problems with characters(&, , ',...)

    I want to generate a xml file with text from a txt file but i have problems with special characters such as &, <... I'd like to know if there�s any class or library to filter the text in order to generate my xml without problems.
    Thank you.

    Use JDOM to generate your XML. It will worry about escaping issues for you.
    Here's a (probably rather inelegant) example for you to play around with:
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    public class DateBoom {
         public static void main(String[] args)
              throws Exception
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              String dodgyText = "< & '";
              Document document = builder.newDocument();
              Element root = document.createElement("root");
              root.setAttribute("dodgy",dodgyText);
              document.appendChild(root);
              Element child = document.createElement("child");
              root.appendChild(child);
              child.appendChild(document.createTextNode(dodgyText));
              Transformer transform = TransformerFactory.newInstance().newTransformer();          
              Source source = new DOMSource(document);
              Result result = new StreamResult(System.out);
              transform.transform(source,result);
    }Your alternative is to use something like String regular expressions (regex) to do this manually, but the XML oriented libraries will catch more corner cases than you're likely to anticipate, making them more reliable.

  • Oracle Payments - Funds Capture - Create Settlement Batches - Customize Standard XML extract

    Hi,
    I am required to customize the output produced by 'Create Settlement Batches' program.
    There are two parts to it:
         1. Customizing Standard XML
              This is required to add custom XML Tags to the standard XML extract.
              I read in a meta-link note that this can be achieved through table iby_trxn_extensibility. Oracle suggests that we insert rows into this table via a trigger on iby_trxn_summaries_all, and           these rows will appear as additional XML Tags in the Standard XML extract.
              I need to figure out how to populate the column iby_trxn_extensibility.extend_name so that the new XML Tag appears at a specific path in the Standard XML extract.
              Kindly provide your valuable inputs on this?
         2. Customizing Standard RTF
              In case of Funds Disbursement, we have a standard Format called 'US NACHA Generic Format'. Do we have a similar seeded Format in case of Funds Capture?
    Best Regards,
    Uday Arora

    I am wondering whether u were able to achieve this. I am able to insert via autonomous transaction but it insert duplicate values, HOW to avoid duplicate.

  • Xml extract assign to varchar2

    How do i assign the xml Extract to a varchar2.. its throwing me error, is it possible or an alternative method to do this.
    ST_Name1 varchar2(120);
    ST_Name1:= xml_st.EXTRACT ('ST/Name1/text()').getstringval ();Thanks

    its throwing me errorit would also help to mention what kind of error you get!
    In general it would work:
    SQL> declare
       ST_Name1 varchar2 (120);
       xml_st   xmltype := xmltype ('<ST><Name1>SomeName</Name1></ST>');
    begin
       ST_Name1 := xml_st.extract ('ST/Name1/text()').getstringval ();
       dbms_output.put_line(ST_Name1);
    end;
    SomeName
    PL/SQL procedure successfully completed.

  • !DOCTYPE !ENTITY war file xml splitting problem

    Hi,
    I am trying to split a file - struts-config.xml - which eventually gets
    located into my war file.
    Here is the xml file.
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
    <!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
    <!ENTITY struts_GlobalForwards SYSTEM
    "./struts_GlobalForwards.xml">
    <!ENTITY struts_ActionMappings SYSTEM
    "./struts_ActionMappings.xml">
    >
    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.
    Does anyone know a way to tell it to look in the war file?
    or Does anyone know a better place to post a question like this?
    Thanks in advance!!

    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.Uh-uh. Ran into this also.
    Does anyone know a way to tell it to look in the war file?Not me, but I wish I could.
    or Does anyone know a better place to post a question like this?This seems more like a Struts issue to me. Look here:
    http://marc.theaimsgroup.com/?l=struts-user&m=100016330124990
    and follow the thread. Someone suggested a patch to the ActionServlet, I
    haven't tried it yet. It sounds good and will probably do what you want.
    --Renaud
    "IH" <[email protected]> wrote in message news:[email protected]..
    Hi,
    I am trying to split a file - struts-config.xml - which eventually gets
    located into my war file.
    Here is the xml file.
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
    <!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
    <!ENTITY struts_GlobalForwards SYSTEM
    "./struts_GlobalForwards.xml">
    <!ENTITY struts_ActionMappings SYSTEM
    "./struts_ActionMappings.xml">
    >
    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.
    Does anyone know a way to tell it to look in the war file?
    or Does anyone know a better place to post a question like this?
    Thanks in advance!!

  • Any progress on the ACR 7.3+ Bridge repeat thumbnail extraction problem?

    Any progress on the ACR 7.3+ Bridge repeat thumbnail extraction problem?
    It was very good news that the cropped lens-correction repeat extraction bug was fixed in 8.2, but this newer problem, surfacing in the ACR 7.3 update (and still present in 8.2), is causing a bigger headache than the older bug for some users of Bridge.
    Unfortunately, I have been unable to identify a trigger for the condition, which is proving very difficult to recreate reliably, other than it very definitely being introduced with ACR 7.3. Adobe's Steve G told the Bridge forum that the 7.3+ problem had been recreated by Adobe, and was being investigated along with the other (now solved) problem. Has any progress been made? Or is it still a mystery?

    Been there, done that:
    http://feedback.photoshop.com/photoshop_family/topics/unneccesary_bridge_thumbnail_and_pre view_extraction
    They know about it, they just don't know how to recreate it.
    Best thing we can do is reliably recreate the fault. My workaround is to only enable Lens Profile Corrections when necessary, as it is a combination of that and some other factor(s) which seems to trigger it.
    If you read all the discussions, you'll see that there are two bugs which produce the same symptoms. One introduced in probably ACR 6.1, whichg was fixed in 8.2; and the other was introduced in 7.3 and is ongoing.

  • Need Xml Extraction help...not very urgent but only 6 Hrs left...

    Hi,
         I have an xml in a blob column and I need to extract the xml resultset into the (specified below) row/column format. So that i created a custom blob_to_clob function for this conversion and extracted below specified xml. Now I am executing the below specified queries for this xml to extract PanelSet, PanelId, Link values & attributes. but the problem is, I am not been able to relate the parent and child nodes or may be not able to identify, who belongs to who (parent--child). for e.g if I extract all link i.e status1, status2 etc of a particular Panel then i am not been able to access its (parent) Panel identification.please suggest me any solution.
    --query using
    --to extract PanelSet
    select
      extractValue(value(t),'/PanelSet/@name') panelset_name
      from
        (Select blob_to_clob(grp_menu) blobval
        from OUG
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/PanelSet'))) t
    --to extract PanelID
    select
      extractValue(value(t),'/PanelID/text()') panelid
      from
        (Select blob_to_clob(grp_menu) blobval
        from oug
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/PanelSet/PanelID'))) t
    --to extract Panel
    select
      extractValue(value(t),'/Panel/@id') Panel_id,
      extractValue(value(t),'/Panel/@name') Panelname
      from
        (Select blob_to_clob(grp_menu) blobval
        from oug
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/Panel'))) t
    --to extract link
    select
      extractValue(value(t),'/Link/@name') link_name,
      extractValue(value(t),'/Link/@type') link_type,
      extractValue(value(t),'/Link/text()') link_value 
      from
        (Select blob_to_clob(grp_menu) blobval
        from oug
        WHERE user_group_seqno =9) c,
    table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/Panel/Link'))) t
    --XML
    <Menus>
        <PanelSet name="0_Data center_A">
        <PanelID>1-1</PanelID>
        <PanelID>1-2</PanelID>
        <PanelID>1-3</PanelID>
        <PanelID>0-0</PanelID>
        <PanelID>1-6</PanelID>
        <PanelID>1-7</PanelID>
    </PanelSet>
       <PanelSet name="1_Data center_B">
          <PanelID>2-4</PanelID>
          <PanelID>2-5</PanelID>
          <PanelID>2-6</PanelID>
          <PanelID>0-0</PanelID>
          <PanelID>2-7</PanelID>
          <PanelID>2-8</PanelID>
    </PanelSet>
       <PanelSet name="2_Data center_C">
          <PanelID>3-2</PanelID>
          <PanelID>3-4</PanelID>
          <PanelID>0-0</PanelID>
          <PanelID>3-9</PanelID>
          <PanelID>3-10</PanelID>
          <PanelID>3-11</PanelID>
    </PanelSet>
          <Panel id="1-1" name="Sts">
            <Link name="status 1" type="Module">forbidden</Link>
            <Link name="status 2" type="Module">/forbidden</Link>
            <Link name="status 3" type="Module">/forbidden</Link>
            <Link name="status 4" type="Module">/forbidden</Link>
            <Link name="status 5" type="Module">/forbidden</Link>
          </Panel>
          <Panel id="1-2" name="Adm">
             <Link name="View 1" type="Module">forbidden</Link>
             <Link name="View 2" type="Module">forbidden</Link>
             <Link name="View 3" type="Module">forbidden</Link>
             <Link name="View 4" type="Module">forbidden</Link>
             <Link name="View 5" type="Module">forbidden</Link>
             <Link name="View 6" type="Module">forbidden</Link>
             <Link name="View 7" type="Module">forbidden</Link>
          </Panel>
          <Panel id="2-4" name="Position">
             <Link name="viewer 1" type="Module">forbidden</Link>
             <Link name="viewer 2" type="Module">forbidden</Link>
          </Panel>
          <Panel id="3-2" name="Administration">
             <Link name="inquiry 1" type="Module">forbidden</Link>
          </Panel>
          <Panel id="3-4" name="Reconciliation">
            <Link name="reconciliation 1" type="Module">forbidden</Link>
            <Link name="reconciliation 2" type="Module">forbidden</Link>
            <Link name="reconciliation 3" type="Module">forbidden</Link>
          </Panel> 
    </Menus>
    --Structure
                                       -----Link abc
                                      -     Link abd
                                  -      Link abe
                -----Panel ID 1-1-                
                  -     Panel ID 1-2--------link a--z (more than one)
    --------    -      Panel ID 1-3--------link N...
    |PanelSet 0|-
                  ------PanelID 2-1--------link N...
               -     PanelID 2-2--------link N...
    --------     -      PanelID 2-3--------link N...
    |PanelSet 1|-      
                  ------PanelID 3-1--------link N...
    --------     -      PanelID 3-2--------link N...
    |PanelSet 2|-       PanelID 3-1--------link N...
    --resultset required
    Panel_set         Panel_id          link
    0_Data center_A    1-1               Status1
    0_Data center_A    1-1               Status2
    0_Data center_A    1-1               Status3
    0_Data center_A    1-1               Status4
    0_Data center_A    1-1               Status5
    0_Data center_A    1-2               View 1
    0_Data center_A    1-2               View 2
    0_Data center_A    1-2               View 3
    0_Data center_A    1-2               View 4
    0_Data center_A    1-2               View 1
    1_Data center_B    2-4              viewer 1
    1_Data center_B    2-4              viewer 2Message was edited by:
    Sachin.Singh

    with t as
    (select xmltype(
    '... your xml here ...
    ') as xml from dual),
    panel_sets as ( select extractvalue(t2.column_value, '//*/@name') as panel_set,
                           extractvalue(t3.column_value, '//*'      ) as panel_id
                      from t, table(xmlsequence(extract(t.xml,           '//Menus/PanelSet'))) t2,
                              table(xmlsequence(extract(t2.column_value, '//*/PanelID'     ))) t3
        panels as ( select extractvalue(t2.column_value, '//*/@id'  ) as panel_id,
                           extractvalue(t3.column_value, '//*/@name') as link
                      from t, table(xmlsequence(extract(t.xml,           '//Menus/Panel'))) t2,
                              table(xmlsequence(extract(t2.column_value, '//*/Link'     ))) t3
    select s.panel_set, s.panel_id, p.link
      from panel_sets s, panels p
      where p.panel_id = s.panel_id
    PANEL_SET            PANEL_ID LINK
    0_Data center_A      1-1      status 1
    0_Data center_A      1-1      status 2
    0_Data center_A      1-1      status 3
    0_Data center_A      1-1      status 4
    0_Data center_A      1-1      status 5
    0_Data center_A      1-2      View 1
    0_Data center_A      1-2      View 2
    0_Data center_A      1-2      View 3
    0_Data center_A      1-2      View 4
    0_Data center_A      1-2      View 5
    0_Data center_A      1-2      View 6
    0_Data center_A      1-2      View 7
    1_Data center_B      2-4      viewer 1
    1_Data center_B      2-4      viewer 2
    2_Data center_C      3-2      inquiry 1
    2_Data center_C      3-4      reconciliation 1
    2_Data center_C      3-4      reconciliation 2
    2_Data center_C      3-4      reconciliation 3
    18 rows selected.

  • Extract() problem in Enterprise manager

    OEM issues queries like the following one in several places:
    /* OracleOEM */ SELECT c.extract('/element/@name', 'xmlns="http://www.w3.org/2001/XMLSchema"').getStringVal()
    FROM  table(xmlsequence((
    SELECT  s.schema.extract('//schema/element')
    from dba_xml_schemas s
    WHERE  s.schema_Url = 'http://www.agralin.nl/WebQuery/ns/data1' and s.owner ='AGE'))) cOne of these places is the clicking of the plus sign in front of an XML schema name, another one is in the definition of an xmltype column, if on the "xml type options" page the "xml schema based" option is selected. In both cases my test server seems to enter an endless loop. I have only one very large schema defined; the original text length is 122 KB, the internal Oracle version is at least 140KB.
    A second instance of OEM tells me the execution plan is
    1. collection iterator (pickler fectch)
    2. select statement
    After running for about two hours I killed the server thread, which was by then consuming over half a gigabyte of PGA memory and over 90% of the CPU. I started the subquery in SQL*Plus:
    SELECT  s.schema.extract('//schema/element')
    FROM dba_xml_schemas s
    WHERE  s.schema_Url = 'http://www.agralin.nl/WebQuery/ns/data1' AND (s.owner =  'AGE')After about five minutes it was clear this query suffered the same problem (although with a different execution plan), so I aborted it as well. My final simplification:
    SELECT  *
    FROM dba_xml_schemas s
    WHERE  s.schema_Url = 'http://www.agralin.nl/WebQuery/ns/data1' AND (s.owner =  'AGE'))took half a minute with long set to 140000, giving almost the full element text. I did a count(*) to be sure the result set consisted of just one record. Earlier tests, with very simple xmlschema's did respond normally, so I guess the length of my schema is part of the problem.
    Is this a known bug, or can anybody give me a workaround?
    Age Jan

    Again:
    ORA-00955: name is already used by an existing object
    --edited, i posted a blog but i didn't like it too much:
    Starting with step 1) emca -deconfig dbcontrol db -repos drop
    later estep 2 (a bit modified):
    SQL>> DECLARE
      2  CURSOR c1 IS
      3  SELECT owner, synonym_name name
      4  FROM dba_synonyms
      5  WHERE table_owner = 'SYSMAN';
      6  BEGIN
      7  FOR r1 IN c1 LOOP
      8  IF r1.owner = 'PUBLIC' THEN
      9  EXECUTE IMMEDIATE 'DROP PUBLIC SYNONYM '||r1.name;
    10  ELSE
    11  EXECUTE IMMEDIATE 'DROP SYNONYM '||r1.owner||'.'||r1.name;
    12  END IF;
    13  END LOOP;
    14  END;
    15  /
    DROP USER SYSMAN CASCADE;
    DROP PUBLIC SYNONYM SETEMVIEWUSERCONTEXT;
    DROP ROLE MGMT_USER;
    DROP PUBLIC SYNONYM MGMT_TARGET_BLACKOUTS;
    DROP USER MGMT_VIEW;
    An advide: logs can told you a lot of information, you should read them in detail.

  • XML parsing problem

    Hi, my problem is :
    In my Application i want to parse an XML file with DOM parser. The problem is that in my Project "MyProject -> Project Properties -> Libraries and Classpath"
    I have included some 15 libraries which are useful for my Application: ADF Faces Runtime 11, ADF Web Runtime and etc.
    Problems are causing the libraries: BC4J Runtime,ADF Model Runtime, MDS Runtime Dependencies
    because when added my source which is parsing an XML file stops working.The source code is:
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    File file =
    new File("C:\\Documents and Settings\\ilia\\Desktop\\begin.xml");
    Document doc = db.parse(file);
    Element root = doc.getDocumentElement();
    NodeList dots = root.getElementsByTagName("w:t");
    Element firstDot = (Element)dots.item(0);
    String textValue = firstDot.getFirstChild().getNodeValue();
    I use DOM because i need to change some values in the XML file, but its not working neither for reading nor for writing.When debugging I see that it gets the root of the xml but " firstDot.getFirstChild().getNodeValue() " returns null and it breaks with NullPointerException. And that's only when the libraries mentioned above are added to the project. Without them it works just fine !
    I don't know, it's like when added the parser validates my xml against some schema and returns null.
    The xml file is very simple MS Word Document saved as .xml .But I don't think that's the problem.
    Thanks in advance !
    iliya

    Hi all,
    I found the solution to my problem.The right way to parse and change an XML file with DOM parser using the Oracle XML Parser v2 should look like this:
    JXDocumentBuilderFactory factory =
    (JXDocumentBuilderFactory)JXDocumentBuilderFactory.newInstance();
    JXDocumentBuilder documentBuilder =
    (JXDocumentBuilder)factory.newDocumentBuilder();
    File file = new File("c:/Documents and Settings/ilia/Desktop/begin.xml");
    InputStream input =
    new FileInputStream(file);
    XMLDocument xmlDocument = (XMLDocument)(documentBuilder.parse(input));
    System.out.println("Encoding: " + xmlDocument.getEncoding());
    System.out.println("Version: " + xmlDocument.getVersion());
    NodeList namespaceNodeList =
    xmlDocument.getElementsByTagNameNS("http://schemas.microsoft.com/office/word/2003/wordml","t");
    XMLElement namespaceElement17 = (XMLElement)namespaceNodeList.item(17);
    namespaceElement17.getFirstChild().setNodeValue("someString");

  • RG registers and PLA registers - Extraction Problem

    Hi,
    We have updated balances in table J_2IACCBAL for initial entries for RG registers and PLA registers but the same is not available for extraction in J2I5.
    Could you please advise what the problem is?
    Regards
    Santosh Hegde

    Hi Prasanna,
    We have updated the balance as on 31.03.2007 as per SAP Help. We tried extracting as on 31.03.2007 as well as 01.04.2007.
    Cut over data is as on 31.03.2007 and golive date is 01.04.07.
    Pls help
    Regards
    Santosh Hegde

Maybe you are looking for

  • Get data from NamedCache in an EntryProcessor

    Hi,      I've got CacheA and CacheB, and i'm calling invokeAll((Filter) null, agent) on CacheA.      In the agent I need to read all entries in CacheB that are related to the entries in CacheA.      And then based on data in CacheB update the entries

  • Want to complete information about Generic WHT report-S_P00_07000134

    Hi Experts, I want to know complete information about Generic WHT report-S_P00_07000134 My following questions 1) Once executed report,why it is asking addition selection like address and more informaiton and where it will help. 2)Why is asking for v

  • Offsetting account field in FS10N

    Hi all, How do I populate the Offsetting account field in FS10N?? Thanx Shivaji Moderator: Please, search SDN

  • Acer E5-571 no right click

    I have a problem with my acer e5-571 running archlinux with gnome. The touchpad isn't recognized correctly, I have no right click. On boot I get the error: i2c_hid i2c-SYN1B7D:01: failed to retrieve report from device. xinpput list: ⎡ Virtual core po

  • BB LINK DON'T RECOGNIZE MY Z10 WITH THE USB ON WINDOWS 7

    Hi, I tried many things but I still don't find a solution for my problem. I installed the BB Link many times but my Z10 is still not recognized by my computer (windows 7). It's only working with the WIFI and with the Wifi I can't make a back up or tr