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.

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.

  • 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.

  • 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

  • Am i the only one who when trying to enter the code for creative cloud activation ?

    I give up,i have been trying to activate a 3 month subscription for CS6 from Staples and every time i try the code it will not work.  I have used the chat live and spent about 3 hours already going nowhere.  I do not like talking on the phone to some help desk overseas and the only thing i think left to do is to return the junk.

    I tried all that and even took a picture of the numbers and blew them up so a blind person could read them and had 3 others read them off.  A simple way to fix the problem is get someone on Adobes staff to find a font that most people can read from whatever product the stick it to.
    John McDonough
    Date: Wed, 1 Aug 2012 18:33:58 -0600
    From: [email protected]
    To: [email protected]
    Subject: Am i the only one who when trying to enter the code for creative cloud activation ?
        Re: Am i the only one who when trying to enter the code for creative cloud activation ?
        created by David__B in Adobe Creative Cloud - View the full discussion
    Hey John,
    Not sure if it helps or not, but I know sometimes with codes like that its really hard to tell certain characters apart, O - like in Oscar versus 0 - number and number 1 versus lowercase L like in Lima.
    Might test entering it both ways if you have any suspect characters?
    -Dave
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4592955#4592955
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4592955#4592955. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • 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;
    }

  • Set default value on field KNA1-AUFSD when creating Customer

    Hi,
    How to set default value on field KNA1-AUFSD when creating customer master using XD01/VD01?
    I have tried user exit SAPMF02D, but all KNA1 values are read only.
    Thx

    Hi
    Try to implement an enhancement option in include MF02DFEX. (at the beginning before call to FM CALL CUSTOMER-FUNCTION '001'.).
    and Initialize the value for KNA1-AUFSD.
    In this Include you can see that there is a call for CALL CUSTOMER-FUNCTION '001'.
    So even you test/check the initialized value for field KNA1-AUFSD is updated by putting a break point in this function module after implementation of your enhancement SAPMF02D.
    Regards,
    Dwaraka.S

  • 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

  • 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.)

  • Why only gets one node when select many nodes of tree in DWCS4 on Mac OS

    I use tag <mm:treecontrol> to create tree in DWCS4 on Mac OS.
    When I select many nodes in tree, but I only get one node by method: selectedNodes.
    codes of created tree as following:
    <mm:treecontrol name='tree' size='20' multiple noheaders>
         <mm:treecolumn state='hidden'>
              <mm:treenode value='A' state='expanded'></mm:treenode>
              <mm:treenode value='B' state='expanded'></mm:treenode>
              <mm:treenode value='C' state='expanded'></mm:treenode>
    </mm:treecontrol>
    Who can  tell me reasons?
    Thanks!
    comments: if don't use tag <mm:treecolumn>, tree will not show on Mac OS.

    Hi macbig,
    I finally got to look at my sister's computer. The HDD "Repair Disk" found missing threads, missing directory records, etc. and ended with:
    Error: Disk Utility can't repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-
    up files.
    Then, I tried "Verify Disk" and it found invalid volume file count and ended with:
    The volume Macintosh HD was found corrupted and needs to be repaired.
    Error: This disk needs to be repaired. Click Repair Disk
    I guess running Apple Hardware Test is not going to happen. :/
    I've ordered online a new 2.5 disk, make a Maverick boot USB, and start from scratch. Do you have any other suggestions?
    As for the corrupted old hard drive, do you have any suggestions of how to get out the data somehow?
    Thank you so much!

  • How to flag only ONE image when several selected in 'N' mode ?

    Hi,
    I want to compare several images in a same serie. I select. I press N key, then I select in strip bottom bar the group of picture.
    I want to put a flag (or star) to only the ONE I prefer, but all pics get the flags or star...
    I need to take out the reject by clicking each X of each pic to threw them away, and finally pick only the on I want...
    How to pick or star only ONE image on N mode (ENSEMBLE Mode in french LR)
    Manys tks
    Fred

    I can't reproduce your issue on Mac or Windows. Quite often when odd ball behaviour arises it's an indication that Lr preference file has become corrupt. Have you tried trashing your Lr preference file then relaunching the application? The name and location for the preference file described here Preference and other file locations in Lightroom 5

Maybe you are looking for