best way to query the XMLType column

Hi all

I have a table that will structure have as

create table t (seq_NO FIGURE sys.xmltype xml_file, mydate date);

This xml_file will have the following structure

" < envelope SOAP: xmlns:SOAP = ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

< SOAP: Header / >

< SOAP: Body >

< ns1:MY_GetOutRes xmlns:ns1 = "urn:myxyzcompany.com:myxyzcompany_sap_p_i_webs:myRpt" >

< MY_RESULT >

< MYCODE > 0000011002 < / MYCODE >

< > 20010101 MY_DATE < / my_DATE >

< CURRENT > 111,000 < / CURRENT >

< MOD > 100,000 < / MOD >

< > 100,000 AVG < / AVG >

ABCD < UMS > < / UMS >

< / MY_RESULT >

< MY_MSG > Sucsses < / MY_MSG >

< / ns1:MY_GetOutRes >

< / SOAP: Body >

< / envelope SOAP: >

This xml file will have 200 MYCODES with values. I need to query the values for all MYCODES and extract the values of CURRENT, MOD, AVG etc and insert it in some tables of xyz.

What is the best way to do this.

Thank you

with t as)

Select xmltype ("http://schemas.xmlsoap.org/soap/envelope/" >)

0000011002

20010101

111,000

100,000

100,000

ABCD

Sucsses

xmlDoc ') of double

)

Select mycode,

my_date,

current_,

mod_,

avg_,

UMS

t,.

XMLTable)

XmlNamespaces)

"http://schemas.xmlsoap.org/soap/envelope/" as "SOAP."

"urn:myxyzcompany.com:myxyzcompany_sap_p_i_webs:myRpt" as "ns1."

),

' /: SOAP envelope / SOAP: Body / ns1:MY_GetOutRes / MY_RESULT'

passage xmldoc

columns

path of varchar2 (20) MyCode ' / MY_RESULT/MYCODE.

date path my_date ' / MY_RESULT/MY_DATE ',.

current_ number path "/ MY_RESULT/CURRENT."

mod_ number path "/ MY_RESULT/MOD."

avg_ number path "/ MY_RESULT/MOD."

UMS number path "/ MY_RESULT/MOD.

)

/

MYCODE MY_DATE CURRENT_ MOD_ AVG_ UMS
-------------------- ------------------- ---------- ---------- ---------- ----------
0000011002 01/01/2001 00:00:00 111 100 100 100

SQL >

SY.

Tags: Database

Similar Questions

  • Best way to reach the 2 columns of table A of the same column in the Table B?

    Hello

    It is a simplified example of the query, I am writing.

    I have two tables - PIPELINE (which includes the CREDIT_RECEIVER and CREATOR columns) and EMPLOYEES (including E-MAIL and LOB columns).

    I want to write a query that joins the PIPELINE. CREDIT_RECEIVER with EMPLOYEES. E-MAIL to return the LOB as 'CREDIT_RECEIVER_LOB '.

    I also want this query to join PIPELINE. CREATOR of EMPLOYEES. E-MAIL to return the LOB as 'CREATOR_LOB '.

    Currently, I do a left outer join on EMPLOYEES. EMAIL = PIPELINE. CREDIT_RECEIVER to get the "CREDIT_RECEIVER_LOB" and by calling a function GET_LOB (PIPELINE. CREATOR) (as defined below) to get the "CREATOR_LOB".

    Query:

    Select PIPELINE.ID as ID,

    PIPELINE. CREDIT_RECEIVER as CREDIT_RECEIVER,

    PIPELINE. CREATOR as a CREATOR,

    EMPLOYEES. LOB as CREDIT_RECEIVER_LOB,

    GET_LOB (PIPELINE. CREATOR) as CREATOR_LOB

    PIPELINE

    JOIN EXTERNAL LEFT ON PIPELINE EMPLOYEES. CREDIT_RECEIVER = EMPLOYEES. E-mail

    Is there a better way to write this query? This request is so slow it will usually expire on me.



    Thank you


    Forrest

    Definition of GET_LOB

    create or replace function "GET_LOB"

    ()vemail in VARCHAR2()

    return VARCHAR2

    is

    Start

    DECLARE vlog VARCHAR2 (30) ;

    BEGIN

    SELECT LOB IN vlog DE EMPLOYEES E-mail = Vemail ;

    return vlog ;

    END ;

    end ;

    Select PIPELINE.ID as ID,

    PIPELINE. CREDIT_RECEIVER as CREDIT_RECEIVER,

    PIPELINE. CREATOR as a CREATOR,

    E1. LOB as CREDIT_RECEIVER_LOB,

    E2. LOB as CREATOR_LOB

    PIPELINE

    LEFT OUTER JOIN EMPLOYEES E1

    WE PIPELINE. CREDIT_RECEIVER = EMPLOYEES. E-mail

    LEFT OUTER JOIN EMPLOYEES E2

    WE PIPELINE. CREATOR = EMPLOYEES. E-mail

    ----

    Ramin Hashimzade

  • Help - query on the XMLType column?

    Hello

    Please could someone help me to write a query to extract data from XMLType column in the script below:

    Here is my example of WHAT XML stored in the XMLType column:
     <?xml version="1.0" encoding="UTF-8"?>
    <cf:IncidentReportGroup xmlns:cf="http://xml.crossflo.com/jxdm/3.0.3"
    xmlns:j="http://www.it.ojp.gov/jxdm/3.0.3" xmlns:ext="http://xml.crossflo.com/jxdm/3.0.3/extension"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:i="http://www.it.ojp.gov/jxdm/appinfo/1">
        <cf:IncidentReport>
            <ext:Incident>
                <j:ActivityID>
                    <j:ID>99999999999999</j:ID>
                </j:ActivityID>
                <j:ActivityDate>2007-01-13</j:ActivityDate>
                <j:ActivityTime>01:25:00Z</j:ActivityTime>
            </ext:Incident>
        </cf:IncidentReport>
    </cf:IncidentReportGroup>
    I want to retrieve ActivityDate and ActivityTime where ActivityID/ID = 'something'...

    Here is the example query I wrote but no luck:
    SELECT extractValue(xml_doc, '/cf:IncidentReport/ext:Incident/j:ActivityDate','/cf:IncidentReport/ext:Incident/j:ActivityTime')
      FROM TABLEA 
      where existsNode(xml_doc,'/cf:IncidentReport/ext:Incident/j:ActivityID[j:ID="99999999999999"]')
     
    SQL>  var ID varchar2(20)
    
    SQL>  exec :ID := '99999999999999'
    PL/SQL procedure successfully completed.
    
    SQL>  with t as (
     select xmltype('
    
        
            
                
                    99999999999999
                
                2007-01-13
                01:25:00Z
            
        
    ') xml from dual
    )
    select t2.*
      from t t, xmltable(xmlnamespaces('http://xml.crossflo.com/jxdm/3.0.3/extension' as "ext",
                                       'http://www.it.ojp.gov/jxdm/3.0.3' as "j"),
                         'ext:Incident[j:ActivityID/j:ID=$ID]'
                         passing t.xml.extract('//ext:Incident','xmlns:ext="http://xml.crossflo.com/jxdm/3.0.3/extension"'),
                                 xmlelement(ID, :ID) as ID
                         columns ActivityID   varchar2(10) path 'j:ActivityID',
                                 ActivityDate varchar2(10) path 'j:ActivityDate',
                                 ActivityTime varchar2(10) path 'j:ActivityTime') t2
    /
    ACTIVITYID ACTIVITYDA ACTIVITYTI
    ---------- ---------- ----------
    9999999999 2007-01-13 01:25:00Z
    1 row selected.
    

    Published by: michaels2 on March 2, 2009 08:43

  • Best way to display the XML in a database column.

    I have a lot of xml as xmltype.

    The basic data are displayed in a report. If I click on a link in the report that I call a popup page that will display the xml code.

    This XML sometimes exceeds 32K, so I can't use a textarea directly.

    What is the best way to view the xml code?
    I thought maybe a URL region but have not used these before.

    Published by: Keith Jamieson on December 23, 2008 11:38

    Keith:

    Try to view the XML code in a textarea component as in the example below

    htp.p('');
    

    CITY

  • Compare the values of the XMLType column to two different lines using XMLDiff in GR 11, 2

    I have a table of data with a row of XMLType and I need a way to compare the XML data against the other. I guess I could use a function and return a XMLDIFF base output to the caller, but the function logic is a bit fuzzy. Would be nice to format the output finally in a table format.

    I looked on http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions241.htm#SQLRF20025 and output in a format of table as shown in Re: how to find compare and identify between xmldocs .

    I ran across some examples do not explain the best way to compare the XML code that is in the best performing XMLType column.

    Any help would be appreciated.

    Are you referring to different rows in the same table or different tables or?

    Basically, you need to change the example of Odie so that the XMLDiff retrieves the XML from places in Pb, say something like

    XMLDIFF(SELECT aXml FROM table WHERE ...,
            SELECT bXml FROM table WHERE ...)
    

    This allows to avoid bringing the XML of the DB in the client code.

    Don't know if that's what you're looking for, but hopefully it helps a little.

  • Best way to update the individual rows of a Table?

    I took a quick glance at a few examples, but did not get a clarification on this.  I am looking to have something close to a listbox control or the table to where I can update just one column of values to line a 1 time per second pace.  I'm looking to display our acquisition of data values in a table or a listbox control.  The single list box seemed to work well for that, but I couldn't use the row headers to list the names of channel beside the channel values.  I thought to link the values of cursor in two areas of list to do this, but did not find any info on it for the single list box.

    I have a few questions:

    (1) I have a 1 d table to where I want to use this data to constantly update the first column (with a multitude of lines) of a table.  I'm looking for the best route to not take too much time for treatment by doing this.

    What is the best way to update the individual rows of a table?   Invoke the node "Value of the cell value"... or is there another method?

    (2) why is that, after each iteration else, row values are deleted?

    Also, for adding additional channels originally arrray... it is better to use the 'Array' subset then the function "Construct the table" or function "Subset of the table" and "insert table"?

    See the attached example.

    Thank you.

    Jeff· Þ· Bohrer says:

    (2) why is that, after each iteration else, row values are deleted?

    Classic race condition.  dump the loop and node-p and just wire the 2D table on the terminal Board. !

    I don't see the race condition.  What I see is the table once the last element has been written for it all run the oil.  I saw looked it with point culminating performance on.

    But I agree entirely with writing to the Terminal.  It is a 1 d array, so you will need to use an array of generation and convert a 2D array in order so that he could write correctly.

  • What is the best way to store the RCS for an insert/update in this rec

    Oracle on Win 64 non-conteneur 12.1.0.2

    When a record in one table is inserted or updated, what would be the best way to store the RCS for this record in this folder.

    I thought of a line after trigger, but did not know if this trigger to store the current_scn would still fire that trigger again (recursive trigger).

    Someone at - he a good idea of what the best way is to do?  The devs don't want to store the pk and the SNA in yet another table...

    Yes, row_dependencies would be the best way to go.  But mgmt doesn't recreate all tables for this.

    3rd party applications retrieve data from tables (all data).  We are looking for a way for them to just pull what is new or updated updated since their last sweater.

    I suggest that you try again and give all OF THE REQUIREMENTS.

    You have rejected ANY answer given and he justified using 'hidden' on what knowledge management or the devs want or do not want to. Stop making us guess what are the requirements and constraints. If you want a real answer then tell us ALL the news.

    When a record in one table is inserted or updated, what would be the best way to store the RCS for this record in this folder.

    Solomon answered repeatedly. If you want to add a column to a table to store the then "best" SNA is to let the Oracle to do this for you automatically by using the DEPENDENCY LINE.

    As he says also re-create the table to add this clause will be MUCH MORE EFFECTIVE that everything THAT you can do it manually. It will be also more accurate because Oracle will fill the value ORA_ROWSCN with the SNA at the time the line was committed. You, as long as user, can't fill a column in function when a line is engaged since real VALIDATION belongs to a transaction, not the line or the trigger that you use.

    Yes - there are two drawbacks to this method:

    1. you need to re-create the table

    2. you cannot add an index to this "hidden" column

    The devs don't want to store the pk and the SNA in yet another table...

    Then? Who cares what the devs want to do? You want the BEST solution? Next, you will need to put aside personal preferences and determine what is the 'best' solution. Why it is important that certain dev wants to do this or not?

    OK, the problem of biz is now, 3rd party external users are an all-wheel drive large number of tables in the database via the API that we wrote.  That was obviously interrupted OLTP during the day.  To reduce to the minimum, we want for them just to extract data that has been inserted/updated since their last sweater.

    It is the definition of a "replica" DB Then why don't you consider a real replicated DB? You can use DataGuard and have replicated DB which is read only that can be used to generate reports. Oracle does ALL the work to keep ALL the tables in sync. You and your developers do NOTHING!

    We thought that store the RCS higher their last sweater would allow the API to extract only data with YVERT higher than their last data pull CHN.

    OK - except you keep rejecting solutions actually do. Ask you questions about the SNA stored in the same table, but then reject the solution that does this. And then you add your "devs" don't want to store the info in a new table either.

    Then your solutions must ONLY use the replication or Log Miner. The REDO logs have all changes, if you want to extract yourself. Replication (e.g., DataGuard) will use these logs for you to maintain a replicated database.

    We thought about it, but recreate all tables in production with ROWDEPENDENCIES as well as dealing with CF and other dependencies idea this was shot.

    Well you NEVER mentioned you "thought that" and rejected it. And you NEVER mentioned anything about FKs and other dependencies. What is FKs and other dependencies which prevents this working solution? Tell us! Give us ALL the information.

    Wouldn't a trigger AFTER LINE capture the commit YVERT?  Or is after really not after validation?

    No - a trigger has NOT one commit. A trigger runs as a step in a transaction. Validation applies to the entire transaction. Until you, or Oracle, issues a commit, there is NO "committed SNA" to be stored as ORA_ROWSCN.

    You can easily see that for yourself. Create a simple table with dependencies of the line and then update two different sessions.

    create the table emp_scn rowdependencies in select * from emp where rownum<>

    Select empno, emp_scn ora_rowscn

    Update emp_scn set work = 'b' where empno = 7499

    commit;

    The first SELECT statement will show you that each row has the same SNA.

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,70622201

    7521,70622201

    Now, do the update (but no commit), then SELECT it

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,

    7521,70622201

    Where is the value of 7499? This session will NOT see a value for the changed lines in the current transaction. Other sessions will still see the old value.

    Now do the validation, then SELECT

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,70622301

    7521,70622201

    7499 now has a new and different value than the other lines. It will not be this new value until the validation occurs.

    Yes, row_dependencies would be the best way to go.  But mgmt doesn't recreate all tables for this.

    Well, you got the answer you want. You ask the best way. Now, you say that you were told the best way. But now you don't like the answer.

    How is it our fault? Your question has been answered wasn't she?

    Here are the facts:

    1 oracle creates a history of changes - the REDO log files

    2. you can use Log Miner to extract these changes

    3. you can create your own change log by adding a log file of MV to your table.

    4. you can then write a custom code to use this MV log file to determine which rows to "reproduce".

    So far reject you all THE POSSIBLE solutions.

    Accept it or change the requirements to allow one of the solutions proposed to be used.

    Personally, if I HAD to use a customized solution, I would use a MV journal to record the ROWID of the lines that have changed (for tables ROWID cannot be changed). I would then extract the appropriate lines by pulling on the lines corresponding to these row ID.

    Even that has problems since a line can be changed several times and children lines can also be amended several times - these questions FK you mentioned.

    I suggest you read this entire thread on AskTom a dozen years ago. It addresses ALL these issues.

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:16998677475837

    Then in your next reply on this topic give us a summary of where some things with your question and what help you further expect.

  • Best way to discover the top N

    Hi all

    Sorry to ask a question on Friday. I've had this issue for some time now, what is the best way to discover the first N?

    For example, how do you know top 10 Web hosts that have the highest use of CPU for a certain period of time.

    One way to do is to create a WCF application that returns topN HostCPUs order to use/period/average. When the interval is small, like the last hour, it works, but if I increase the time range from 1 day, the request will expire after 60 seconds. We have 500 + guests on this FMS. Not only we want to watch the hot servers right now, but also want to watch the hot servers say yesterday, or last month.

    Another way is to use groovy code below, when I use retrieveLatestValue to get the current value, it's fast, but if I replace it with retrieveAggregate and make the time range for the previous 24 hours, it takes a few minutes to run.

    #! HostCPUs # .getTopologyObjects (extinguish) {a, b->

    go = server. DataService.retrieveLatestValue (a 'use'). value?. AVG

    If (goes == null)

    go = 0

    VB = server. DataService.retrieveLatestValue (b, 'use'). value?. AVG

    If (vb is nothing)

    VB = 0

    VA - vb > 0? 0: 1

    } .subList (0, 10)

    Then, of course, these are not very effective. Is there a better way to get this top N list I'm looking for?

    Thank you

    Xiaoning

    Here is an example of the batch api to query the memory of the virtual machine, and then I take action on a specific period of time.

    import com.quest.nitro.service.sl.interfaces.data.IDataService;

    import com.quest.nitro.service.sl.interfaces.data.ObservationQuery;

    import com.quest.nitro.model.topology.TopologyObject;

    import com.quest.nitro.service.sl.ServiceLocatorFactory;

    Import org.apache.log4j.Logger;

    def LOG = Logger.getLogger ("batch.query.test");

    topologyObjects = new HashSet (#!) VMWVirtualMachineMemory # .topologyObjects);

    Log.info ("topology objects querying ${topologyObjects.size ()}...");

    endTime = System.currentTimeMillis ();

    startTime = endTime - (4 * 60 * 60 * 1000 L);

    IDataService dataSvc is ServiceLocatorFactory.getLocator () .getDataService ();.

    Query ObservationQuery = dataSvc.createObservationQuery ();

    query.setStartTime (startTime);

    query.setEndTime (endTime);

    Query.include (topologyObjects, "active");

    Query.include (topologyObjects, "affected");

    Query.include (topologyObjects, "zero");

    result = dataSvc.performQuery (query);

    long term = System.currentTimeMillis () - endTime;

    Log.info ("request completed in ${duration} ms.");

  • The xmltype column search and listing content in relational format

    Hi all

    I have a database of GR 11, 1 subject table containing the xmltype column. I'm writing a query that displays conetents xml in a relational format.
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Jan 17 11:45:06 2013
    
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
    SQL > select * from v version $;

    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11 g Release 11.1.0.7.0 - 64 bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE Production 11.1.0.7.0
    AMT for 64-bit Windows: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production

    SQL > BULKMESSAGES Desc;
    Name of Type Null
    --------------- ---- -------------
    TRANSFER_ID VARCHAR2 (100)
    TRANSFER_LOGS XMLTYPE()
    TRANSFER_RESULT VARCHAR2 (10)

    SQL > select * from BULKMESSAGES
    where TRANSFER_RESULT = "REFUSED."
    /
    TRANSFER_ID TRANSFER_LOGS TRANSFER_RESULT
    ---------------- ---------------------------------------------------------------- ---------------
    T3217 < env:Envelope xmlns:env = 'http://www.w3.org/2003/05/soap-envelope' > REJECTED



    Column of xmltype TRNASFER_LOGS stores the SOAP responses. Response SOAP sample (dummied) of the TRANSFER_LOGS xml column is below:
    <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
         <env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope"/>
         <env:Body xmlns:env="http://www.w3.org/2003/05/soap-envelope">
              <env:Fault xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                   <env:Code xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                        <env:Value xmlns:env="http://www.w3.org/2003/05/soap-envelope">env:Receiver</env:Value>
                        <env:Subcode xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                             <env:Value xmlns:fault="http://www.es.com/soapfaults" xmlns:env="http://www.w3.org/2003/05/soap-envelope">fault:MessageBlocked</env:Value>
                        </env:Subcode>
                   </env:Code>
                   <env:Reason xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                        <env:Text lang="en" xmlns:env="http://www.w3.org/2003/05/soap-envelope">connection rejected</env:Text>
                   </env:Reason>
                   <env:Detail xmlns:fault="http://www.es.com/soapfaults" fault:type="faultDetails" fault:messageId="0000013a6" xmlns:env="http://www.w3.org/2003/05/soap-envelope">
                        <fault:path policy="Request Message">
                             <fault:filter status="Fail" name="Call 'Process request '">
                                  <fault:path policy="Process xml ">
                                       <fault:filter status="Fail" name="Call 'Call 3rdparty service'">
                                            <fault:path policy="Call external service">
                                                 <fault:filter status="Pass" name="Extract message"/>
                                            </fault:path>
                                       </fault:filter>
                                  </fault:path>
                             </fault:filter>
                        </fault:path>
                        <fault:attributes>
                             <fault:attribute name="monitoring.enabled" value="true"/>
                             <fault:attribute name="requestor" value="none"/>
                             <fault:attribute name="circuit.failure.reason" value="connection rejected"/>
                             <fault:attribute name="message_protocol" value="SOAP"/>
                             <fault:attribute name="user_id" value="31274556"/>
                             <fault:attribute name="ws_name" value="PUSHDOC"/>
                             <fault:attribute name="user.enabled" value="N"/>
                             <fault:attribute name="http.request.clientaddr" value="/10.254.123.44:43840"/>
                             <fault:attribute name="soap_action" value="pushDocument"/>
                             <fault:attribute name="message.reception_time" value="1349769769742"/>
                             <fault:attribute name="user.api_logging_flag" value="Y"/>
                             <fault:attribute name="circuit.exception" value="com.es.circuit.CircuitAbortException: connection rejected"/>
                             <fault:attribute name="end_point" value="https://es.live.com/pdfs"/>
                             <fault:attribute name="message.protocol.type" value="http"/>
                             <fault:attribute name="user.incoming_date" value="09-11-2013 09:02:49"/>
                             <fault:attribute name="http.destination.host" value="es.live.com"/>
                             <fault:attribute name="message.local.address" value="/100.25.40.82:8085"/>
                             <fault:attribute value="N"/>
                        </fault:attributes>
                   </env:Detail>
              </env:Fault>
         </env:Body>
    </env:Envelope>
    My goal is to search for documents TRANSFER_LOGS for lines that contain flaws: attribute name = "circuit.exception". Then report "fault: name attribute" and their values in relational format. For example:
    TRANSFER_ID    TRANSFER_RESULT FAULT_FAIL_REASON    FAULT_CIRCUIT_EXCEPTION                               FAULT_WS_NAME   FAULT_DESTINATION_HOST
    ----------     --------------- ----------------     -------------------------------------------------------- -------------   ---------------------
    T3217          REJECTED       CONNECTION REJECTED  com.es.circuit.CircuitAbortException: connection rejected  PUSHDOC       es.live.com
    I am new to oracle XML sql querying. Documents in the column of xmltype TRANSFER_LOGS have many namespaces and the query I've tried does not work. So, any help or pointers to search and extract TRANSFER_LOGS in above format is greatly appreciated.

    Thanks in advance.

    VC

    Hello

    You can use something like this:

    SQL> select t.transfer_id, t.transfer_result, x.*
      2  from bulkmessages t
      3     , xmltable(
      4         xmlnamespaces(
      5           'http://www.w3.org/2003/05/soap-envelope' as "e"
      6         , 'http://www.es.com/soapfaults' as "f"
      7         )
      8       , '/e:Envelope/e:Body/e:Fault/e:Detail/f:attributes'
      9         passing t.transfer_logs
     10         columns
     11           FAULT_FAIL_REASON       varchar2(200) path 'f:attribute[@name="circuit.failure.reason"]/@value'
     12         , FAULT_CIRCUIT_EXCEPTION     varchar2(200) path 'f:attribute[@name="circuit.exception"]/@value'
     13         , FAULT_WS_NAME           varchar2(200) path 'f:attribute[@name="ws_name"]/@value'
     14         , FAULT_DESTINATION_HOST  varchar2(200) path 'f:attribute[@name="http.destination.host"]/@value'
     15         ) x
     16  where xmlexists(
     17         'declare namespace e = "http://www.w3.org/2003/05/soap-envelope"; (: :)
     18          declare namespace f = "http://www.es.com/soapfaults"; (: :)
     19          /e:Envelope/e:Body/e:Fault/e:Detail/f:attributes/f:attribute[@name="circuit.exception"]'
     20          passing t.transfer_logs
     21        ) ;
    
    TRANSFER_ID     TRANSFER_RESULT FAULT_FAIL_REASON        FAULT_CIRCUIT_EXCEPTION                                       FAULT_WS_NAME    FAULT_DESTINATION_HOST
    --------------- --------------- ------------------------ ------------------------------------------------------------- ---------------- -------------------------
    T3217           REJECTED        connection rejected      com.es.circuit.CircuitAbortException: connection rejected     PUSHDOC          es.live.com
     
    

    Or, more simply:

    SQL> select t.transfer_id, t.transfer_result, x.*
      2  from bulkmessages t
      3     , xmltable(
      4         xmlnamespaces(
      5           'http://www.w3.org/2003/05/soap-envelope' as "e"
      6         , 'http://www.es.com/soapfaults' as "f"
      7         )
      8       , '/e:Envelope/e:Body/e:Fault/e:Detail/f:attributes'
      9         passing t.transfer_logs
     10         columns
     11           FAULT_FAIL_REASON       varchar2(200) path 'f:attribute[@name="circuit.failure.reason"]/@value'
     12         , FAULT_CIRCUIT_EXCEPTION     varchar2(200) path 'f:attribute[@name="circuit.exception"]/@value'
     13         , FAULT_WS_NAME           varchar2(200) path 'f:attribute[@name="ws_name"]/@value'
     14         , FAULT_DESTINATION_HOST  varchar2(200) path 'f:attribute[@name="http.destination.host"]/@value'
     15         ) x
     16  where x.FAULT_CIRCUIT_EXCEPTION is not null ;
    
    TRANSFER_ID    TRANSFER_RESULT FAULT_FAIL_REASON      FAULT_CIRCUIT_EXCEPTION                                      FAULT_WS_NAME      FAULT_DESTINATION_HOST
    -------------- --------------- ---------------------- ------------------------------------------------------------ ------------------ --------------------------
    T3217          REJECTED        connection rejected    com.es.circuit.CircuitAbortException: connection rejected    PUSHDOC            es.live.com
      
    
  • ADF and the use of the XMLType columns

    After discovering the Jdeveloper 11 g was able to generate business components/data controls for complex web services (see this tutorial excellet http://www.oracle.com/technology/tech/fmw4apps/agile/pdf/adf11g-agile.pdf), I assumed that jdev 11 g should now have the same capacity on XMLtype columns with a registered scheme, and was therefore a good match for our enforcement objectives be able to edit
    parts of an XML document to aid in the face of components and Assembly/store the document in a way centic document in a relational/XML database XMLType column hybrid.

    I tested this point, has created a table with an XMLType column binary, saved the schema in database (11g) and jdev(11g) and generated my components.


    I was very disappointed at the discovery of the structure of data controls stops at the level of the attribute in the table (ie the XMLType column), so none of the structure of the XML document is revealed or can be used in a meaningful way through data control.

    Am I missing something here? should not control data generated reveal the XML structure and allow the use of components of forms/table faces on some parts of the structure of the document? I'm not a java programmer, so was really hoping to do this with data not generated controls beans not.

    If it is just to treat it as a CLOB, what's the point of registered xsd schemas?

    Yes, it is through java. Sorry

  • Need help: best way to exchange the Ipads?

    Dear all,

    Need help a genre:

    I use Ipad Air2 and my father is using retina Ipad Mini... I gifted him before 2 years...!

    We thought to share the Ipads because he loved the biggest... Can someone guide what is the best way to swap the parameters of the iPad?

    It is by taking backup and restore from Icloud? There will be data loss? or anything else that needs attention (something that he needed to be reconfigured)?

    Any help is very appreciated!

    Make a backup of each individual iPad. Use your own accounts: How to back up your device using iCloud or iTunes - Apple Support

    Import your photos from each iPad: import pictures and videos from your iPad, iPhone or iPod touch to your computer - Apple Support

    Then do it on every iPad: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

    Then restore the backup in your 'new' ipads: restore your device from an iCloud or iTunes backup - Apple Support

    If the ipads have the same size of storage with the same iOS version, it should work fine. -AJ

  • best way to clear the cache on an iMac 2011 - el capitan

    best way to clear the cache on an iMac 2011 - el capitan

    The best way is not for everyone. Clear the caches unnecessarily makes your computer run more slowly while they are rebuilt. Did you have a specific problem that you thought that clearing cache can solve? If so, post on the real problem.

  • What is the best way to use the Y50-70 battery please?

    I bought the laptop y50-70

    but I want to know what is the best method to use the battery.

    and the best way to recharge.

    NOTE *.

    IAM always use the cable and I gave the battery except a few times.

    Thank you very much..

    Best way to use the battery, if your laptop should ALWAYS be connected in-

    Go to eat energy Lenovo - should be a RED icon in the system tray - and choose the mode for a better health of the battery (or battery Protection or health of battery optimized mode).

    I don't know what the energy Manager version you have, but the option must seem similar. What it does is, it will keep your battery charged ONLY up to 60 percent and will increase its service life.

  • Photon: Best way to snap the back cover in place?

    What is the best way to put the cover back on? What sequence I use, it seems that one of the plastic snaps is not committed.

    There are instructions inside the battery cover. You start at the bottom and work your way up to the left and the right. That being said, check the clips on your lid and make sure that one of them is not folded. This happened to me the first day I bought the phone. I had to get a new one from the Sprint Store. Do not force the clip if it is wrong. I think that's how mine has folded.

  • Best way to charge the battery

    Can someone tell me which is the best way to increase the autonomy?

    Is it a good idea to let the battery charge even after it displays 100%?

    Hi Matt,

    Please take a look at battery care discussions in this son...

    http://forums.Lenovo.com/T5/idea-Windows-based-tablets-and/how-to-protect-the-Yoga-13-battery/TD-p/1...

    http://forums.Lenovo.com/T5/IdeaPad-Y-U-V-Z-and-P-series/Z500-how-to-stop-using-battery-when-plugged...

    Zehn

Maybe you are looking for