XML - ORA-19025: EXTRACTVALUE returns value of only one node

Hi,
I am new to XML DB. Can somebody help me with the below XML
I use the following XML ... (I have pasted only a part of it coz i require data only till this section )
XML
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body>
<ns:PicklistWS_GetPicklistValues_Output xmlns:ns="urn:crmondemand/ws/picklist/">
<ListOfParentPicklistValue xmlns="urn:/crmondemand/xml/picklist">
<ParentPicklistValue>
<Language>ENU</Language>
<ParentFieldName>plProduct_Team</ParentFieldName>
<ParentDisplayValue>Marketing On Demand</ParentDisplayValue>
<ParentCode>Marketing On Demand</ParentCode>
<Disabled>N</Disabled>
<ListOfPicklistValue>
<PicklistValue>
<Code>OCP/SME Escalation</Code>
<DisplayValue>OCP/SME Escalation</DisplayValue>
<Disabled>N</Disabled>
</PicklistValue>
<PicklistValue>
<Code>Fusion Request</Code>
<DisplayValue>Fusion Request</DisplayValue>
<Disabled>N</Disabled>
</PicklistValue>
Code
SELECT distinct
EXTRACTVALUE(VALUE(SR), '/ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code','xmlns="urn:/crmondemand/xml/picklist"') AS Display,
EXTRACTVALUE(VALUE(SR),'/ParentPicklistValue/ListOfPicklistValue/PicklistValue/DisplayValue','xmlns="urn:/crmondemand/xml/picklist"') AS Return,
EXTRACTVALUE(VALUE(SR),'/ParentPicklistValue/ParentDisplayValue','xmlns="urn:/crmondemand/xml/picklist"') AS parent_display,
EXTRACTVALUE(VALUE(SR),'/ParentPicklistValue/ParentCode','xmlns="urn:/crmondemand/xml/picklist"') AS parent_return
FROM TABLE(XMLSEQUENCE(EXTRACT(
WEB_SERVICE('<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<PicklistWS_GetPicklistValues_Input xmlns="urn:crmondemand/ws/picklist/">
<FieldName>Type</FieldName>
<RecordType>Service Request</RecordType>
</PicklistWS_GetPicklistValues_Input>
</soap:Body>
</soap:Envelope>'
,'document/urn:crmondemand/ws/picklist/:GetPicklistValues', Sessionid),
'/soap:Envelope/soap:Body/*/*/*','xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/'))) SR
ERROR
ORA-19025: EXTRACTVALUE returns value of only one node
UNDERSTANDING
As my Xpath points only until the node - ParentPicklistValue and not the child nodes under it. Hence when i try to query the child nodes - /ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code, I recieve the above mentioned error.
REQUIREMENT
Can somebody help me to recieve the Parent values and also its child values based on the above query and xml.

Hi,
That's a classic ;)
You need a second XMLSequence that will shred the collection of PicklistValue into relational rows :
select extractvalue(value(sr2), '/PicklistValue/Code', 'xmlns="urn:/crmondemand/xml/picklist"') AS Display
     , extractvalue(value(sr2), '/PicklistValue/DisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS Return
     , extractvalue(value(sr1), '/ParentPicklistValue/ParentDisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_display
     , extractvalue(value(sr1), '/ParentPicklistValue/ParentCode', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_return
from table(
       xmlsequence(
         extract( WEB_SERVICE( ... )
                , '/soap:Envelope/soap:Body/ns:PicklistWS_GetPicklistValues_Output/ListOfParentPicklistValue/ParentPicklistValue'
                , 'xmlns="urn:/crmondemand/xml/picklist"
                   xmlns:ns="urn:crmondemand/ws/picklist/"
                   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"' )
     ) sr1
   , table(
       xmlsequence(
         extract( value(sr1)
                , '/ParentPicklistValue/ListOfPicklistValue/PicklistValue'
                , 'xmlns="urn:/crmondemand/xml/picklist"' )
     ) sr2
;What's your database version BTW?
On 10.2 and up, you may use XMLTable instead.

Similar Messages

  • "ORA-19025 EXTRACTVALUE returns value of only one node" - Suggestion

    ORA-19025 EXTRACTVALUE returns value of only one node
    When this error occurs, would you please provide some or all of the following information:
    (1) row number
    (2) row id
    (3) the name of the offending column
    (5) the XQuery expression
    (6) the node name
    (7) the text value being parsed, in which an excess node was found
    and would you consider processing every good row, assuming it may be correct,
    because, in 13 thousand lines generated by my view, there is unlikely to even one more row in error.
    Thank you,
    Mike Rainville
    FYI,
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    ojdbc6.jar 11.1.0.7.0

    Thanks for the suggestion...
    The problem is that in one row, information in a data dump about two different things was combined into one, due to a gap in the input file. The starting delimiter for the second thing and the ending delimiter for the first were missing. The result was that many entity tags that should have been unique were duplicated, ion that particular row.
    I was able to guard the view against future such errors with occurrences using this
    in the WHERE clause ...
    AND NOT ( XMLCLOB LIKE '%<TAG1>%<TAG1>%'
    OR XMLCLOB LIKE '%<TAG2>%<TAG2>%'
    OR XMLCLOB LIKE '%<TAG3>%<TAG3>%'
    /* ... Repeated once for each tag used with extractvalue */
    OR XMLCLOB LIKE '%<TAGN>%<TAGN>%'
    It filters out any row with two identical starting tags, where one is expected.
    I am pleased to see that the suggestion got through.

  • ORA-19025: EXTRACTVALUE returns value of only one nod- When creating index

    Hi,
    My table have 2 columns . Columns are
    Key varchar2(50)
    Attribute XMLType
    Below is my sample XML which is stored in Attribute column.
    <resource>
    <lang>
    <lc>FRE</lc>
    <lc>ARA</lc>
    </lang>
    <site>
    <sp>257204</sp>
    <sp>3664</sp>
    </site>
    <page>
    <pp>64272714</pp>
    <pp>64031775</pp>
    <pp>256635</pp>
    </page>
    <key>
    <kt>1</kt>
    </key>
    </resource>
    When i try to create a index on XML column and i am getting the above exception. kindly help me out becz i'm not familar with oracle.
    Query is
    create index XMLTest_ind on language_resource_wrapper
         (extractValue(attribute, '/resource/site/sp') )
    index on sp,pp elements in the above XML.

    Thanks for the suggestion...
    The problem is that in one row, information in a data dump about two different things was combined into one, due to a gap in the input file. The starting delimiter for the second thing and the ending delimiter for the first were missing. The result was that many entity tags that should have been unique were duplicated, ion that particular row.
    I was able to guard the view against future such errors with occurrences using this
    in the WHERE clause ...
    AND NOT ( XMLCLOB LIKE '%<TAG1>%<TAG1>%'
    OR XMLCLOB LIKE '%<TAG2>%<TAG2>%'
    OR XMLCLOB LIKE '%<TAG3>%<TAG3>%'
    /* ... Repeated once for each tag used with extractvalue */
    OR XMLCLOB LIKE '%<TAGN>%<TAGN>%'
    It filters out any row with two identical starting tags, where one is expected.
    I am pleased to see that the suggestion got through.

  • ERROR: ORA-19025: EXTRACTVALUE returns... after a deleteXML command.

    Hi
    My Oracle details are:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    I'm getting the following error:
    ERROR:
    ORA-19025: EXTRACTVALUE returns value of only one node
    when I try and select the content of a row after I have performed an deleteXML command on a node from with in the xml content.
    This process can reproduced the error.
    CREATE TABLE test OF XMLType xmltype STORE as BINARY XML;
    INSERT INTO test VALUES (XmlType('<product_details id="1"><product id="21"><name>test1</name><code>123</code></product><product id="20"><name>test2</name><code>456</code></product></product_details>'));Select the xml content...
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    <product_details id="1">
      <product id="21">
        <name>test1</name>
        <code>123</code>
      </product>
      <product id="20">
        <name>test2</name>
        <code>456</code>
      </product>
    </product_details>then delete the product node with id = 21 from the xml content...
    UPDATE test SET OBJECT_VALUE = deleteXML(OBJECT_VALUE, '/product_details[@id=1]/product[@id=21]')  WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    1 row updated.The same select now produces the following error:
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    ERROR:
    ORA-19025: EXTRACTVALUE returns value of only one node
    no rows selectedThe current content of the test table is:
    SELECT * FROM test;
    <product_details id="1">
      <product id="20">
        <name>test2</name>
        <code>456</code>
      </product>
    </product_details>I would now expect the select statement:
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    to return:
    <product_details id="1">
      <product id="20">
        <name>test2</name>
        <code>456</code>
      </product>
    </product_details>Can anyone tell me why this select is not returning any rows and an error message?
    Having done some more research around this problem, it would seem that deleting the last node first ie the node with the product id of 20 does not cause the error!
    eg running the following deleteXML works as I would expect:
    UPDATE test SET OBJECT_VALUE = deleteXML(OBJECT_VALUE, '/product_details[@id=1]/product[@id=20]')  WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    1 row updated.then running...
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml" FROM test WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    <product_details id="1">
      <product id="21">
        <name>test1</name>
        <code>123</code>
      </product>
    </product_details>returns what I would expect.
    Many thanks
    Edited by: Baseman on 20-Apr-2011 16:55
    Edited by: Baseman on 20-Apr-2011 17:00

    I tried it myself and found something very strange. It seems when using xmltype with binary storage, that oracle isnt able to read xmldata, the same way that it reads using clob storage.
    Here is what I get if I use clob storage:
    CREATE TABLE test_clob OF XMLType xmltype STORE as CLOB;
    INSERT INTO test_clob VALUES (XmlType('<product_details id="1"><product id="21"><name>test1</name><code>123</code></product><product id="20"><name>test2</name><code>456</code></product></product_details>'));
    UPDATE test_clob SET OBJECT_VALUE = deleteXML(OBJECT_VALUE, '/product_details[@id=1]/product[@id=21]') 
    WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    SELECT extract(OBJECT_VALUE, '/product_details[@id=1]') "Xml"
    FROM test_clob WHERE XMLEXISTS('/product_details[@id=1]' PASSING OBJECT_VALUE);
    -- works fine and prints out:
    <product_details id="1"><product id="20"><name>test2</name><code>456</code></product></product_details>
    SELECT t.*, x.*
    ,extract(value(x), '/product_details/@id') id
    FROM test_clob t, table (xmlsequence(extract(t.object_value,'/product_details'))) xThe last select statement prints out the "id" as "1" which we expected.
    But if I use the same select statement in your example on a table test like this:
    SELECT t.*, x.column_value
    ,extract(value(x), '/product_details/@id') id
    FROM test t, table (xmlsequence(extract(t.object_value,'/product_details'))) xit prints out:
    120
    <name>test2</name>
    <code>456</code>It seem it printed out the "id" from product_details, plus "id" from "product" plus all the data of the element product.
    Edited by: Romci on 3.5.2011 13:16

  • Extract return only one node.

    error is ORA-19025: EXTRACTVALUE returns value of only one node
    CREATE OR REPLACE PROCEDURE a_insertZipcodes
       IS
        p_directory  VARCHAR2(100);
        p_filename   VARCHAR2(100);
        l_xml xmltype;
          type tp is record (c1 varchar2(100), c2 varchar2(100));
          type t is table of tp;
          r t;
        BEGIN
        sp_co_set_globalvar(null,null,null,null,51,null,null,'EOD',null);
        p_filename :='myxml.xml';
        p_directory:=get_handoff_path_batch(PKG_CO_GLOBALVAR.ctrl1);
        l_xml := xmltype(bfilename(p_directory, p_filename), nls_charset_id('AL32UTF8'));
        select extractvalue(l_xml,'root/flexcube/contractStatus/system'),
        extractvalue(l_xml,'root/flexcube/contractStatus/accessKey') bulk collect into r from dual;
          for i in r.first..r.last loop
          dbms_output.put_line(r(i).c1);
          dbms_output.put_line(r(i).c2);
       end loop;
      END;
    xml file is :
    <root>
         <flexcube>
              <contractStatus>  
                   <system>TRESTEL</system>
                   <accessKey>eDealer</accessKey>
                   <password>eDealer</password>
                   <uuid>eDealer</uuid>
                   <sequenceNumber>206981112980100</sequenceNumber>
                   <sourceAddress>M@112980000201@2011-10-25 02:10:03.016@Internal@1112980100@20698@FX@1</sourceAddress>
                   <signature>FEDCBA98765432100123456789ABCDEF</signature>     
                   <ref_num>
                        <contractRef>1112980100</contractRef>
                   </ref_num>
                 <branch>018</branch>    
            </contractStatus>
            <contractStatus>  
                   <system>TRESTEL</system>
                   <accessKey>eDealer</accessKey>
                   <password>eDealer</password>
                   <uuid>eDealer</uuid>
                   <sequenceNumber>206981112980100</sequenceNumber>
                   <sourceAddress>M@112980000201@2011-10-25 02:10:03.016@Internal@1112980100@20698@FX@1</sourceAddress>
                   <signature>FEDCBA98765432100123456789ABCDEF</signature>     
                   <ref_num>
                        <contractRef>1112980100</contractRef>
                   </ref_num>
                 <branch>018</branch>    
            </contractStatus>
            <contractStatus>  
                   <system>TRESTEL</system>
                   <accessKey>eDealer</accessKey>
                   <password>eDealer</password>
                   <uuid>eDealer</uuid>
                   <sequenceNumber>206981112980100</sequenceNumber>
                   <sourceAddress>M@112980000201@2011-10-25 02:10:03.016@Internal@1112980100@20698@FX@1</sourceAddress>
                   <signature>FEDCBA98765432100123456789ABCDEF</signature>     
                   <ref_num>
                        <contractRef>1112980100</contractRef>
                   </ref_num>
                 <branch>018</branch>    
            </contractStatus>
         </flexcube>
    </root>
    error is ORA-19025: EXTRACTVALUE returns value of only one node

    use xmltable as in Re: XMl Inserting

  • Extractvalue gives "only one node" error

    Here is an example I tried to create based on some information I found at:
    http://www.orafaq.com/faq/how_does_one_store_and_extract_xml_data_from_oracle
    I created the table with the following:
    create table XMLTable (doc_id number, filename varchar2(100), xml_data XMLType);
    For a particular record, the xml_data field looks like this:
    <FAQ-LIST>
         <QUESTION>
              <QUERY>Question 1</QUERY>
    <RESPONSE>Abraham Lincoln</RESPONSE>
    </QUESTION>
         <QUESTION>
         <QUERY>Question 2</QUERY>
         <RESPONSE>Thomas Jefferson</RESPONSE>
         </QUESTION>
    </FAQ-LIST>
    I tried to model my select statement after the example:
    select extractValue(xml_data, '/FAQ-LIST/QUESTION/RESPONSE')
    from XMLTable
    where doc_id = 1
    and existsNode(xml_data, '/FAQ-LIST/QUESTION[QUERY="Question 1"]') = 1;
    hoping for a result of "Abraham Lincoln", but instead get the error:
    ORA-19025: EXTRACTVALUE returns value of only one node ...
    How can I arrange the query so I get one RESPONSE for each QUERY value named?
    Thanks,
    --Dave                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    SQL> SELECT EXTRACTVALUE (COLUMN_VALUE, 'QUESTION/RESPONSE') response
      FROM TABLE
              (XMLSEQUENCE
                  (EXTRACT
                      (XMLTYPE
                          ('<FAQ-LIST>
    <QUESTION>
    <QUERY>Question 1</QUERY>
    <RESPONSE>Abraham Lincoln</RESPONSE>
    </QUESTION>
    <QUESTION>
    <QUERY>Question 2</QUERY>
    <RESPONSE>Thomas Jefferson</RESPONSE>
    </QUESTION>
    </FAQ-LIST>'
                       '/FAQ-LIST/QUESTION'
              ) t
    WHERE EXTRACTVALUE (COLUMN_VALUE, 'QUESTION/QUERY') = 'Question 1'
    RESPONSE                                                                       
    Abraham Lincoln                                                                
    1 row selected.

  • The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.

    Hello. I added custom http response headers to my SP site web config file as follows: 
    <httpProtocol>
          <customHeaders>
                 <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS" />
          <add name="Access-Control-Allow-Origin" value="*" />
          <add name="Access-Control-Allow-Headers" value="Content-Type,Authorization" />
          </customHeaders>
        </httpProtocol>
    When I try to call any web service, i get these headers two times each: 
    HTTP/1.1 200 OK
    Cache-Control: private, max-age=0
    Transfer-Encoding: chunked
    Content-Type: application/atom+xml;type=entry;charset=utf-8
    Expires: Sat, 01 Mar 2014 19:11:37 GMT
    Last-Modified: Sun, 16 Mar 2014 19:11:37 GMT
    ETag: "3"
    X-SharePointHealthScore: 0
    SPClientServiceRequestDuration: 20
    SPRequestGuid: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    request-id: b4e77d9c-bfc3-a050-493a-ca5d251d1a72
    X-FRAME-OPTIONS: SAMEORIGIN
    Persistent-Auth: true
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    X-AspNet-Version: 4.0.30319
    X-Powered-By: ASP.NET
    Access-Control-Allow-Methods: POST,GET,OPTIONS
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: Content-Type,Authorization
    MicrosoftSharePointTeamServices: 15.0.0.4569
    Date: Sun, 16 Mar 2014 19:11:37 GMT
    and that gives me error from ajax: The 'Access-Control-Allow-Origin'
    header contains multiple values '*, *', but only one is allowed. Origin 'null' is therefore not allowed access.
    The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.
     Origin 'null' is therefore not allowed access.
    Any idea???

    Hi Ann,
    Please check whether there are duplicate custom headers in your code.
    Similar issue for your reference:
    http://social.msdn.microsoft.com/Forums/office/en-US/b79b75f4-b46b-46ae-ae29-17a352b6b90b/custom-http-response-headers-for-sp-2013-shown-2-times?forum=sharepointdevelopment 
    Regards,
    Rebecca Tu
    TechNet Community Support

  • SCAN LISTENER runs from only one node at a time from /etc/hosts !

    Dear all ,
    Recently I have to configure RAC in oracle 11g(r2) in AIX 6.1 . Since in this moment it is not possible to configure DNS, so I dont use SCAN ip into the DNS/GNS, I just add the SCAN ip into the host file like :
    cat /etc/hosts
    SCAN 172.17.0.22
    Got the info from : http://www.freeoraclehelp.com/2011/12/scan-setup-for-oracle-11g-release211gr2.html#ORACLE11GR2RACINS
    After configuring all the steps of RAC , Every services are ok except SCAN_LISTENER . This listener is up only one node at a time . First time when I chek it from node1 , it shows :
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr1
    now when I relocate it from node 2 using
    "srvctl relocate scan -i 1-n DCDBSVR2" , then the output shows :
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr2
    Baring these , we have to try to relocate it from the node2 by the following way, then it shows the error :
    srvctl relocate scan -i 2 -n DCDBSVR2
    resource ora.scan2.vip does not exists
    Now my question , How can I run the SCAN and SCAN_LISTENER both of the NODES ?
    Here is my listener file (which is in the GRID home location) configuration :
    Listener File OF NODE1 AND NODE 2:
    ==================================
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON
    LISTENER_SCAN1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC) (KEY = LISTENER_SCAN1)
    ADR_BASE_LISTENER_SCAN1 = /U01/APP/ORACLE
    2)
    Another issue , when I give the command : " ifconfig -a " , then it shows the SCAN ip either node1 or node2 . suppose if the SCAN ip is in the node1 , and then if I run the "relocate" command from node2 , the ip goes to the Node 2 . is it a correct situation ? advice plz ... ...
    thx in advance .. ...
    Edited by: shipon_97 on Jan 10, 2012 7:22 AM
    Edited by: shipon_97 on Jan 10, 2012 7:31 AM

    After configuring all the steps of RAC , Every services are ok except SCAN_LISTENER . This listener is up only one node at a time . First time when I chek it from node1 , it shows :If I am not wrong and after looking at the document you sent, you will be able to use only once scan in case you use /etc/host file and this will be up on only one node where you added this scan entry in /etc/hosts file.
    Now my question , How can I run the SCAN and SCAN_LISTENER both of the NODES ?Probably you can't in your case, you might run only one i think and on one node only
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr1
    now when I relocate it from node 2 using
    "srvctl relocate scan -i 1 -n DCDBSVR2" , then the output shows :
    srvctl status scan_listener
    SCAN listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node dcdbsvr2You moved scan listener from node 1 to node 2, OK
    Baring these , we have to try to relocate it from the node2 by the following way, then it shows the error :
    srvctl relocate scan -i 2 -n DCDBSVR2
    resource ora.scan2.vip does not exists
    --------------------------------------------------------------------------------Since you have only one scan, you can't relocate "2". So ise "1" instead here also
    FYI
    http://www.oracle.com/technetwork/database/clustering/overview/scan-129069.pdf
    Salman

  • I want to make only one node draggable in the tree. How?

    I want to make only one node draggable in the tree. How?
    when we have only
    tree.setDragEnable(true)which makes draggable the entire nodes in the tree.
    Thanks -

    Hi Andrea
    Just to clarify things up: is this what you want?
    package treeDnD;
    * DragJustOneNode.java
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    public class DragJustOneNode extends JFrame {
        private JTree tree;
        private DefaultTreeModel model;
        private DefaultMutableTreeNode root;
        public DragJustOneNode() {
            super("Only child 1 is draggable!");
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            setSize(400,300);
            setLocationRelativeTo(null);
            tree = new JTree();
            tree.setDragEnabled(true);
            getContentPane().add(new JScrollPane(tree), BorderLayout.CENTER);
            tree.setTransferHandler(new TreeTransferHandler());
            root = new DefaultMutableTreeNode(new NodeData(0, "root"));
            root.add(new DefaultMutableTreeNode(new NodeData(1, "child 1")));
            root.add(new DefaultMutableTreeNode(new NodeData(2, "child 2")));
            root.add(new DefaultMutableTreeNode(new NodeData(3, "child 3")));
            root.add(new DefaultMutableTreeNode(new NodeData(4, "child 4")));
            model = new DefaultTreeModel(root);
            tree.setModel(model);
        public static void main(final String args[]) {new DragJustOneNode().setVisible(true);}
    class NodeData{
        private int id;
        private String data;
        public NodeData(final int id, final String data){
            this.id = id;
            this.data = data;
        public int getId() {return id;}
        public void setId(final int id) {this.id = id;}
        public String getData() {return data;}
        public void setData(final String data) {this.data = data;}
        public String toString() {return data;}
    class TreeTransferable implements Transferable{
        private NodeData nodeData;
        public TreeTransferable(NodeData nodeData){
            this.nodeData = nodeData;
        public DataFlavor[] getTransferDataFlavors() {
            return new DataFlavor[]{DataFlavor.stringFlavor};
        public boolean isDataFlavorSupported(DataFlavor flavor) {
            return true;
        public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {
            return nodeData;
    class TreeTransferHandler extends TransferHandler{
        private DefaultMutableTreeNode sourceNode, targetNode;
        public boolean canImport(final JComponent comp, final DataFlavor[] transferFlavors) {
            NodeData nodeData = (NodeData) (sourceNode).getUserObject();
            if(nodeData.getId() == 1) return true;
            return false;
        protected Transferable createTransferable(final JComponent c) {
            JTree tree = ((JTree)c);
            sourceNode = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
            return new TreeTransferable((NodeData) sourceNode.getUserObject());
        public int getSourceActions(final JComponent c) {return DnDConstants.ACTION_MOVE;}
        public boolean importData(final JComponent comp, final Transferable t) {
            JTree tree = ((JTree)comp);
            DefaultTreeModel model = (DefaultTreeModel)tree.getModel();
            targetNode = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
            DefaultMutableTreeNode parent = (DefaultMutableTreeNode)targetNode.getParent();
            if(parent == null) return false;
            model.removeNodeFromParent(sourceNode);
            model.insertNodeInto(sourceNode, parent, parent.getIndex(targetNode));
            tree.setSelectionPath(new TreePath(model.getPathToRoot(sourceNode)));
            return true;
    }

  • OIA jobs.xml constrain execute of file import on only one of two app server

    I am trying to get the jobs.xml and scheduling-context.xml files to fire an import job on one of the two app servers. There are two application servers utilizing the same shared database. Files to import into OIA reside on one of the two application servers file systems only and we want to use the jobs.xml and scheduling-context.xml files on one of the app servers to setup the imports.
    I have these two beans enabled
    <ref bean="usersImportJob"/>
    <ref bean="usersImportTrigger"/>
    This is a snippet from the jobs.xml file
    <bean id="usersImportTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    <property name="jobDetail">
    <ref bean="usersImportJob"/>
    </property>
    <property name="cronExpression">
    <value>0 0/5 * * * ?</value>
    </property>
    </bean>
    <bean id="usersImportJob" class="org.springframework.scheduling.quartz.JobDetailBean">
    <property name="name">
    <value>Users Import</value>
    </property>
    <property name="description">
    <value>Users import Job</value>
    </property>
    <property name="jobClass">
    <value>com.vaau.rbacx.scheduling.manager.providers.quartz.jobs.IAMJob</value>
    </property>
    <property name="group">
    <value>SYSTEM</value>
    </property>
    <property name="durability">
    <value>true</value>
    </property>
    <property name="jobDataAsMap">
    <map>
    <!-- only single user name can be specified for jobOwnerName (optional)-->
    <entry key="jobOwnerName">
    <value>REPLACE_ME</value>
    </entry>
    <!-- multiple user names can be specified as
    comma delimited e.g user1,user2 (optional)-->
    <entry key="usersToNotify">
    <value>REPLACE_ME</value>
    </entry>
    <entry key="IAMActionName">
    <value>ACTION_IMPORT_USERS</value>
    </entry>
    <entry key="IAMServerName">
    <value>FILE_SERVER</value>
    </entry>
    <!-- Job chaining, i.e. specify the next job to run (optional) -->
    <entry key="NEXT_JOB">
    <value>rolesImportJob</value>
    </entry>
    </map>
    </property>
    </bean>
    QUESTION:_
    Is the IAMServerName value suppose to have the literal hostname of the application server (ex. "oia.bluebird.com") configured in place of the default "FILE_SERVER" text?
    Your insite is greatly appreciated

    Hi Meg,
    I have to say that I've only seen the jobs.xml be defined for data feeds only. It does not make calls out to app/DB servers OOTB.
    The alternative solution are the following:
    1. Use your IDM provisioning connector to the application then pull the data from the IDM product into OIA
    2. Extract the data from the app server using the ETL functionality/engine within the OIA product to extract the data into a data feed (then OIA will pick that up)
    3. Construct some extracting functionality (like a java class) instead of ETL
    Hope this has helped
    Regards,
    Daniel Redfern
    Technicalconfessions.com

  • AA implement aaset value for only one depreciation area

    Hi,
    Is it possible change acquisition value of asset for only one depreciation area, the area 20 for example?
    By point of view of FI I can post the accounts of area 20 by  trx OASV,
    but in AA how can I do?
    If I use the trx AB01 the  acquisition value is modified in every area.
    Any assistance would be greatly appreciated.

    You upload the values in AM with the transaction AS91, this don't create postings in FI. It is possible to upload different values by depreciation area.
    With the transaction OASV you create manual the total postings in FI. An other option is to use the transaction  ABF1 (search on this forum with ABF1 how it is working)
    When an area post direct you have to use the transaction OASV (asset account is reconcilation accounts) for the other area you can use a standard FI posting.
    When you use AB01 you can create you own transaction type and limet them to one depreciation area or a group (tray to play with Tty 147, there you can fill in amounts by depreciation area.)

  • In the DTN only one node Open

    Hi
    I am working on portal SP14.
    I wan't that the DTN will show only one Open folder (node) at a time.
    Meaning, when a user presses on a folder (node) in the DTN- This folder (node) will open and  other opened Folder (node) will be closed automatically.
    Thanks
    Nir

    Hi, I have the same Problem. Has nobody a solution?

  • Xml doc as a return value of an RPC-style SOAP call

    Hi all,
    Which is the best way of having an xml Document returned as the result of
    the execution of an RPC-style SOAP call ?
    My distributed service currently returns an xml Document and i would like to
    make it web/http available without an unaffordable cost (i.e. double
    parsing, two much memory consumtion, etc.).
    Is there anyway i can mark my service return as an internal xml in the xml
    soap response (and therefore, for instance, be able to apply specific schema
    validation processes in the client side).
    Thanks in advance

    You do need to write xmlReadObj.toXMLString() to file to update it with the new value. Here's how I do it in xtools/xlib/stdlib.js:
    Stdlib.writeXMLFile = function(fptr, xml) {
      var rc;
      if (!(xml instanceof XML)) {
        Error.runtimeError(19, "xml"); // "Bad XML parameter";
      var file = Stdlib.convertFptr(fptr);
      file.encoding = "UTF8";
      rc = file.open("w", "TEXT", "????");
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      // unicode signature, this is UTF16 but will convert to UTF8 "EF BB BF"
      // optional
      //file.write("\uFEFF");
      file.lineFeed = "unix";
      file.writeln('<?xml version="1.0" encoding="utf-8"?>');
      rc = file.write(xml.toXMLString());
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      rc = file.close();
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      return file;
    The error handling code is in there because it's easier to track down IO problems when they occur.

  • Search with multiple values in only one field

    Hello there,
    I have this query to get the results when the user make a search query:
    select * from (
    select
    "ID",
    "ID" ID_DISPLAY,
    "SHIFT_DATE",
    "SHIFT",
    "OFFENSE_ID",
    "DESCRIPTION",
    "ANALYST",
    "STATUS",
    "SUBSTATUS"
    from "#OWNER#"."IDSIEM_OFFENSES")
    where
    OFFENSE_ID IN(:P223_OFFENSES) AND
    instr(upper("DESCRIPTION"),upper(nvl(:P223_DESCRIPTION,"DESCRIPTION"))) > 0
    AND
    instr(upper("SHIFT"),upper(nvl(:P223_SHIFT,"SHIFT"))) > 0
    AND
    instr(upper("SUBSTATUS"),upper(nvl(:P223_SUBSTATUS,"SUBSTATUS"))) > 0
    AND
    instr(upper("ANALYST"),upper(nvl(:P223_ANALYST,"ANALYST"))) > 0
    AND
    instr(upper("SHIFT_DATE"),upper(nvl(:P223_SHIFTDATE,"SHIFT_DATE"))) > 0
    AND
    instr(upper("STATUS"),upper(nvl(:P223_STATUS,"STATUS"))) > 0
    ORDER BY OFFENSE_ID DESC
    The thing that I want to do is to put multiple values on the field P223_OFFENSES when I search. For example an offense is a number, so I would like to put in the search field 1111, 3333, 4444, 5555 and the report shows me those 4 offenses in the report. The search operation works only when I put only 1 offenses, but when I put more than 1 separated by comma, it shows me this error: report error:ORA-01722: invalid number. That's why because is a number and the comma character is not allowed, how can I achieve this? Thank you in advance.
    Regards, Bernardo

    Try this one please
    select *
      from (select "ID",
                   "ID" ID_DISPLAY,
                   "SHIFT_DATE",
                   "SHIFT",
                   "OFFENSE_ID",
                   "DESCRIPTION",
                   "ANALYST",
                   "STATUS",
                   "SUBSTATUS"
              from "#OWNER#"."IDSIEM_OFFENSES")
    where (instr(upper("DESCRIPTION"),
                  upper(nvl(:P223_DESCRIPTION, "DESCRIPTION"))) > 0)
       AND (instr(upper("SHIFT"), upper(nvl(:P223_SHIFT, "SHIFT"))) > 0)
       AND (instr(upper("SUBSTATUS"), upper(nvl(:P223_SUBSTATUS, "SUBSTATUS"))) > 0)
       AND (instr(upper("ANALYST"), upper(nvl(:P223_ANALYST, "ANALYST"))) > 0)
       AND (instr(upper("SHIFT_DATE"),
                  upper(nvl(:P223_SHIFTDATE, "SHIFT_DATE"))) > 0)
       AND (instr(upper("STATUS"), upper(nvl(:P223_STATUS, "STATUS"))) > 0)
       AND regexp_like(offense_id,'^('||
                       regexp_replace(regexp_replace(:P233_OFFENSES,'[[:space:]]'),
                                      '|')||')$','i')
    What I am trying to achieve is this
    *** I expect your user to put in the values separated by commas like 27823, 27815, 27834 ****
    1. from the input the user gives back via :P233_OFFENSES, remove SPACES.
    2. Replace all "," with "|"
    3. do a regexp_like search by boxing in the input values with a "^" and "$" so that it does not select values like 278157  which contains the value you searched for viz. 27815
    You can better understand this if you try this query out
    with q1 as
    ( select 1 as id, 27823 as offense_id from dual
      union
      select 2 as id,  27815 as offense_id from dual
      union
      select 3 as id  ,27834 as offense_id from dual
      union
      select 11 as id, 227823 as offense_id from dual
      union
      select 12 as id,  278157 as offense_id from dual
      union
      select 13 as id , 278347 as offense_id from dual
      union
      select 21 as id, 278233 as offense_id from dual
      union
      select 22 as id,  278156 as offense_id from dual
      union
      select 23 as id  ,627834 as offense_id from dual ),
      q2 as (
    select regexp_replace(regexp_replace('27823, 27815, 27834','[[:space:]]'), ',','|') as P233_OFFENSES from dual )
    select * from q1 q, q2 g
       where regexp_like(q.offense_id , '^('||P233_OFFENSES||')$','i') ;
    This should return only the first 3 rows

  • Xml parse, only one node

    Hello,
    I need to parse a xm string (i've got a String variable with an xml in it) to extract some fields.
    All the examples i've read tell you how to index a xml with different nodes on it, but isn't there some function to extract just the field you need?
    For example, CPU.
    Thanks.
    <TEMPLATE><CONTEXT><FILES><![CDATA[/srv/cloud/images/cursos_images/-curso-iop-nodos/context/init.sh]]></FILES><HOSTNAME><![CDATA[ioparal_node1]]></HOSTNAME><IP><![CDATA[192.168.210.2]]></IP><TARGET><![CDATA[hdd]]></TARGET></CONTEXT><CPU><![CDATA[1]]></CPU><DISK><DISK_ID><![CDATA[0]]></DISK_ID><SOURCE><![CDATA[/srv/cloud/images/cursos_images/curso-iop-nodos/-curso-iop-nodo.img]]></SOURCE><TARGET><![CDATA[hda]]></TARGET></DISK><GRAPHICS><KEYMAP><![CDATA[es]]></KEYMAP><LISTEN><![CDATA[127.0.0.1]]></LISTEN><PORT><![CDATA[6680]]></PORT><TYPE><![CDATA[vnc]]></TYPE></GRAPHICS><MEMORY><![CDATA[2048]]></MEMORY><NAME><![CDATA[curso-ioparal_node1]]></NAME><NIC><BRIDGE><![CDATA[br1]]></BRIDGE><IP><![CDATA[192.168.210.2]]></IP><MAC><![CDATA[fe:c0:a8:d2:02]]></MAC><NETWORK><![CDATA[curso-iop-local]]></NETWORK><NETWORK_ID><![CDATA[145]]></NETWORK_ID></NIC><OS><ROOT><![CDATA[hda1]]></ROOT></OS><RANK><![CDATA[- RUNNING_VMS]]></RANK><REQUIREMENTS><![CDATA[HYPERVISOR = "kvm"]]></REQUIREMENTS><VCPU><![CDATA[1]]></VCPU><VMID><![CDATA[780]]></VMID></TEMPLATE>

    i tried it and i got 1 as a result value of CPU tag.
    Here is the code.
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    public class XMLParse
    public static void main(String[] args) throws Exception
    String tmp = "<TEMPLATE><CONTEXT><FILES><![CDATA[/srv/cloud/images/cursos_images/-curso-iop-nodos/context/init.sh]]></FILES><HOSTNAME><![CDATA[ioparal_node1]]></HOSTNAME><IP><![CDATA[192.168.210.2]]></IP><TARGET><![CDATA[hdd]]></TARGET></CONTEXT><CPU><![CDATA[1]]></CPU><DISK><DISK_ID><![CDATA[0]]></DISK_ID><SOURCE><![CDATA[/srv/cloud/images/cursos_images/curso-iop-nodos/-curso-iop-nodo.img]]></SOURCE><TARGET><![CDATA[hda]]></TARGET></DISK><GRAPHICS><KEYMAP><![CDATA[es]]></KEYMAP><LISTEN><![CDATA[127.0.0.1]]></LISTEN><PORT><![CDATA[6680]]></PORT><TYPE><![CDATA[vnc]]></TYPE></GRAPHICS><MEMORY><![CDATA[2048]]></MEMORY><NAME><![CDATA[curso-ioparal_node1]]></NAME><NIC><BRIDGE><![CDATA[br1]]></BRIDGE><IP><![CDATA[192.168.210.2]]></IP><MAC><![CDATA[fe:c0:a8:d2:02]]></MAC><NETWORK><![CDATA[curso-iop-local]]></NETWORK><NETWORK_ID><![CDATA[145]]></NETWORK_ID></NIC><OS><ROOT><![CDATA[hda1]]></ROOT></OS><RANK><![CDATA[- RUNNING_VMS]]></RANK><REQUIREMENTS><![CDATA[HYPERVISOR = \"kvm\"]]></REQUIREMENTS><VCPU><![CDATA[1]]></VCPU><VMID><![CDATA[780]]></VMID></TEMPLATE>";
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
    InputStream inp = new ByteArrayInputStream(tmp.getBytes());
    Document doc = docBuilder.parse(inp);
    System.out.println(XMLParse.getTagValue(doc,"TEMPLATE#CPU"));
    public static String getTagValue(Document doc,String tagPattern)
    String[] tags = tagPattern.split("#");
    String resultValue = "";
    Element el;
    NodeList nodes = doc.getElementsByTagName(tags[0]);
    if(nodes != null && nodes.getLength() > 0)
    el = (Element)nodes.item(0);
    for(int i=1; i < tags.length; i++)
    nodes = el.getElementsByTagName(tags[ i]);
    if(nodes != null && nodes.getLength() > 0)
    el = (Element)nodes.item(0);
    if(el != null && el.getFirstChild() != null)
    resultValue = el.getFirstChild().getNodeValue();
    return (resultValue == null)?"":resultValue;
    -----

Maybe you are looking for

  • Improving audio quality in iMovie 4

    I'm editing a video which has an audio track that consists of interviews, some recorded next to a busy street. Is there a way to clean up the track and take out the ambient noise? Note that I'm using the (antique) iMovie 4.0. Also, there is a variati

  • Restrict Material Group Access when creating a PO

    Folks- I have a scenario where in different material groups are created for different levels Ex: Machinery - 1500 Machinery-Warehouse 150010 Machinery Warehouse Exteriors 15001010 If I want to restrict the buyer to use only level 3(15001010) of the m

  • Large tabular cube w/ lots of measures -- keyboard stuck

    hi folks, I was wondering if anyone has seen this weird behavior:  on fairly large tabular cubes (SSAS 2012 SP2), with lots of calculations, the keyboard seems to be stuck, one cannot type or make any modifications to any measures, even after closing

  • "_blank" won't do anything for me in Internet Explorer 7

    I have a bunch of menus on my website that are supposed to open HTML in blank windows using the "_blank" function but now it won't work in IE 7. Now when I click on those buttons it doesn't open anything. Please help!!!

  • Al colocarlo deshabilita la barra google que tiene traducir en el momento

    Mientras tengo firefox 3 me funciona la barra google, donde aparecen botones como Traducir, lo cual hace en el mismo momento de tener una página en otro idioma enfrente, además tiene esta barra corrector ortográfico; en cambio al colocar firefox 6 me