Select node based on another node

Hello - If I have XML code such as:
<ROWSET>
−<ROW>
<AREA>AAA</AREA>
<ACTIVITY>ACTIVE</ACTIVITY>
<TOTAL>4</TOTAL>
</ROW>
−<ROW>
<AREA>AAA</AREA>
<ACTIVITY>NOTACTIVE</ACTIVITY>
<TOTAL>1</TOTAL>
</ROW>
−<ROW>
<AREA>AAA</AREA>
<ACTIVITY>INOP</ACTIVITY>
<TOTAL>2</TOTAL>
</ROW>
−<ROW>
<AREA>BBB</AREA>
<ACTIVITY>NOTACTIVE</ACTIVITY>
<TOTAL>20</TOTAL>
</ROW>
−<ROW>
<AREA>BBB</AREA>
<ACTIVITY>OFFLINE</ACTIVITY>
<TOTAL>2</TOTAL>
</ROW>
−<ROW>
<AREA>BBB</AREA>
<ACTIVITY>INOP</ACT_LEVEL>
<TOTAL>32</TOTAL>
</ROW>
−<ROW>
<AREA>CCC</AREA>
<ACTIVITY>ACTIVE</ACTIVITY>
<TOTAL>2</TOTAL>
</ROW>
−<ROW>
<AREA>CCC</AREA>
<ACTIVITY>INOP</ACTIVITY>
<TOTAL>2</TOTAL>
</ROW>
</ROWSET>
How can I retrieve the TOTAL data based on the value of ACTIVITY?
Can I use something like:
<RowData>
<xsl:for-each-group select=".//ROW" group-by="AREA" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<Cell>
<xsl:if test="count(current-group()/ACTIVITY[.='INOP'])">
<xsl:value-of select="???????????????)" />
</xsl:if>
</Cell>
</xsl:for-each-group>
</RowData>

I knew this would be ridiculously easy for a smart person out there. The final answer turned out to be:
<RowData>
<xsl:for-each-group select=".//ROW" group-by="AREA"xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<Cell>
<xsl:if test="current-group()/ACTIVITY[.='OFFLINE']">
<xsl:value-of select="current-group()[./ACTIVITY='OFFLINE']/TOTAL" />
</xsl:if>
</Cell>
</xsl:for-each-group>
</RowData>
I wasn't looking to sum the TOTAL values (I didn't explain myself well), I was looking to grab the individual value from the TOTAL node (I think I'm saying that right) based on what the value was in the ACTIVITY node - in this case, OFFLINE.
I did try the "current-group()/TOTAL" but that just gave me the first TOTAL value, which in my example, would have been 20 from NOTACTIVE node.

Similar Messages

  • XML E4X Select nodes based on child node attribute.

    Hey,
    I am trying to make a selection on following XML.
    I want to retrieve a list of the variable node when its child nodes metadata attribute "name" is not equal to "transient". I have read through the documentation but have not been able to solve this and it should be rather simple. So far I have tried with something like.
    var variables:XMLList = classInfo.variable.(metadata.(@name != "transient"));
    var variables:XMLList = classInfo.variable.(metadata.@name != "transient");
    But it returns all variable nodes.
    <type name="com.sca.dataModel::PresentationDataEntity" base="com.sca.dataModel::BaseEntity" isDynamic="false" isFinal="false" isStatic="false">
      <extendsClass type="com.sca.dataModel::BaseEntity"/>
      <extendsClass type="Object"/>
      <variable name="subtitle" type="String">
        <metadata name="__go_to_definition_help">
          <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/>
          <arg key="pos" value="128"/>
        </metadata>
      </variable>
      <variable name="id" type="Number">
        <metadata name="__go_to_definition_help">
          <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/>
          <arg key="pos" value="153"/>
        </metadata>
      </variable>
      <variable name="tableName" type="String">
        <metadata name="transient"/>
        <metadata name="__go_to_definition_help">
          <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/>
          <arg key="pos" value="118"/>
        </metadata>
      </variable>
      <variable name="db_SortAsc" type="Boolean">
        <metadata name="transient"/>
        <metadata name="__go_to_definition_help">
          <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/>
          <arg key="pos" value="281"/>
        </metadata>
      </variable>
      <variable name="title" type="String">
        <metadata name="__go_to_definition_help">
          <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/>
          <arg key="pos" value="100"/>
        </metadata>
      </variable>
      <method name="setData" declaredBy="com.sca.dataModel::BaseEntity" returnType="*">
        <parameter index="1" type="Object" optional="false"/>
        <metadata name="__go_to_definition_help">
          <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/BaseEntity.as"/>
          <arg key="pos" value="330"/>
        </metadata>
      </method>
      <metadata name="__go_to_ctor_definition_help">
        <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/>
        <arg key="pos" value="167"/>
      </metadata>
      <metadata name="__go_to_definition_help">
        <arg key="file" value="/Users/jonas/projects/SCA-CMS/src/com/sca/dataModel/PresentationDataEntity.as"/>
        <arg key="pos" value="42"/>
      </metadata>
    </type>

    Perfect, that worked!
    Thanks.
    Jonas

  • Ocrmirror gets added on one node not on another node 11gr2 RAC on AIX 5.3

    Hi,
    I created another external diskgroup for redundancy and added ocr on to it and got added successfully on node1 but not on another node in a two node cluster,please find the below outputs.
    node1:
    mvx20b:/>ocrcheck
    Status of Oracle Cluster Registry is as follows :
    Version : 3
    Total space (kbytes) : 262120
    Used space (kbytes) : 3064
    Available space (kbytes) : 259056
    ID : 1640695116
    Device/File Name : +CRS_DATA
    Device/File integrity check succeeded
    Device/File Name : +crs_data1                                        ------>newly added ocr
    Device/File integrity check succeeded
    Device/File not configured
    Device/File not configured
    Device/File not configured
    Cluster registry integrity check succeeded
    Logical corruption check succeeded
    node 2:
    mvx21b:/>ocrcheck
    Status of Oracle Cluster Registry is as follows :
    Version : 3
    Total space (kbytes) : 262120
    Used space (kbytes) : 3064
    Available space (kbytes) : 259056
    ID : 1640695116
    Device/File Name : +CRS_DATA
    Device/File integrity check succeeded
    Device/File not configured
    Device/File not configured
    Device/File not configured
    Device/File not configured
    Cluster registry integrity check succeeded
    Logical corruption check succeeded
    mvx20b:/home/gmvmxu1>cluvfy comp ocr -n all
    Verifying OCR integrity
    Checking OCR integrity...
    Checking the absence of a non-clustered configuration...
    All nodes free of non-clustered, local-only configurations
    ASM Running check passed. ASM is running on all cluster nodes
    Checking OCR config file "/etc/oracle/ocr.loc"...
    OCR config file "/etc/oracle/ocr.loc" check successful
    Disk group for ocr location "+CRS_DATA" available on all the nodes
    Disk group for ocr location "+crs_data1" available on all the nodes
    Checking OCR device "+CRS_DATA" for sharedness...
    Checking size of the OCR location "+CRS_DATA" ...
    mvx20b:Size check for OCR location "+CRS_DATA" successful...
    mvx21b:Size check for OCR location "+CRS_DATA" successful...
    Checking OCR device "+crs_data1" for sharedness...
    Checking size of the OCR location "+crs_data1" ...
    mvx20b:Size check for OCR location "+crs_data1" successful...
    mvx21b:Size check for OCR location "+crs_data1" successful...
    WARNING:
    This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the contents of OCR.
    OCR integrity check passed
    Verification of OCR integrity was successful.
    mvx21b:/home/gmvmxu1>cluvfy comp ocr -n all
    Verifying OCR integrity
    Checking OCR integrity...
    Checking the absence of a non-clustered configuration...
    All nodes free of non-clustered, local-only configurations
    ERROR:
    PRVF-4194 : Asm is not running on any of the nodes. Verification cannot proceed.
    OCR integrity check failed
    Verification of OCR integrity was unsuccessful on all the specified nodes.
    SQL> select name,state,inst_id from gv$asm_diskgroup order by inst_id;
    NAME STATE INST_ID
    MVMXU1_DATA MOUNTED 1
    MVMXU1_REC MOUNTED 1
    CRS DISMOUNTED 1
    CRS_DATA MOUNTED 1
    CRS_DATA1 MOUNTED 1------mounted
    MVMXU1_REC MOUNTED 2
    MVMXU1_DATA MOUNTED 2
    CRS MOUNTED 2
    CRS_DATA MOUNTED 2
    CRS_DATA1 MOUNTED 2-------->mounted
    Please let me know where to look or how to add it to 2nd node.
    Thanks
    Edited by: user9097501 on Oct 21, 2010 6:37 AM
    Edited by: user9097501 on Oct 21, 2010 7:10 AM

    Issue got resolved with ML "The CRS Daemon Fails to Start with 'my hash ids don't match' in the Crsd.log [ID 855932.1] "
    Thanks

  • Filter on Mutli-Select Picklist based on another column

    Hi,
    I have 2 columns in a report, the first one is Account Post Code (OOTB) and other is the custom multi-select picklist Service Area which contains multiple post codes.
    The report looks like.
    Post Code Service Area
    1 - 1,2,3,4
    1 - 2,3,4
    So ideally I want to show only the first row, since Service Area contains value 1 which is the value of the Post Code. I don't want the 2nd row since we don't have the value 1 on the Service Area.
    Can we do this in Answers on Demand? Any Case statement or any other approach. Kindly advice.
    Thanks
    Roshan
    Edited by: 965307 on Nov 29, 2012 1:13 AM
    Edited by: 965307 on Nov 29, 2012 1:14 AM

    Post defaults will not work based on Multi-Select Picklist field.

  • Creating target field based on input node

    Hi all,
      I'm facing a problem in creating the target node based on input node. See if the input node value is repeated I don't want to create the target field for the second occurrence.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_temp xmlns:ns0="urn:test">
       <row>
          <temp_id>1002</temp_id>
       </row>
       <row>
          <temp_id>1002</temp_id>
       </row>
    </ns0:MT_ItemEvent>
    In the above structure you can see the temp_id is repeated , I want to create only one target node. Plz help me to solve this.

    HI,
    Use the UDF and in that use Vector to create the result list with the values.
    use temp_id as imput and before that remove context
    after the UDF use the Splitbyvalue
    See the below code
    String () a;
    Vector prod = new Vector();
    for (i=0;i<a.length;i++){
    if(!prod.contains(a(i))) prod.add(a(i));
    Collections.sort(prod);
    for(i=0;i<prod.size();i++){
    result.addValue((String) prod.get(i));
    Regards
    Chilla

  • In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    The query is re-issued as a flashback query and the client process can continue to fetch from the cursor. This is described in the Net Services Administrators Guide, the section on Transparent Application Failover.

  • Analysis Authorization based on Hier node with multiple display hierarchies

    Hi guys - I've got a problem where s.o. might have an idea of how to switch on the light at the end of the tunnel, I am currently standing in:
    Requirement:
    Cost Center Authorization should be given through RSECADMIN, reporting should be possible for any hierarchy that exists for the authorization relevant info object.
    Preferred solution:
    The Cost Center Analysis Authorization should be given through RSECADMIN - Hierarchy node assignment.
    u2022     A dedicated Authorization Cost Center Hierarchy will be maintained in ECC6 as an alternative cost center hierarchy and extracted into BW.
    u2022     The RSECADMIN Hierarchy node assignment should be based on a particular node (Type 2).
    u2022     The display level will be specified as required (here: Level 7)
    u2022     The Authorization granted should be independent of hierarchy name and version (validity 3).
    Reporting Scenario and technical impact:
    As mentioned above, when designing and running a query the user should be able to freely select other (i.e. than the authorization) display hierarchies for the authorization relevant reporting object 'Cost Center' as well. The technical names of the semantically relevant hierarchy nodes could therefore vary. E.g. cost centers 1, 2 and 3, being assigned under hierarchy node u2018Au2019 of the RSECADMIN relevant authorization hierarchy, could be subsumed by hierarchy node u2018Bu2019 in another display hierarchy, which the user may want to display in accordance to his reporting needs. Ideally, the alternative display hierarchy should therefore display node u2018Bu2019.
    My findings so far (based on prototyping) turn out that this is not possible as long u2018Bu2019 (and its hierarchy) is not authorized in RSECADMIN. Can these findings be confirmed? And if not, would anyone have an idea of how to facilitate the reporting scenario?
    Would there be any other way to grant access, possibly based on RSECADMIN single values, and also enable the user to flexibly display hierarchies with only those hierarchy nodes whose single cost center values the user has been given access to?
    Thanks everyone for your input...
    Claus
    Edited by: Claus64 on Jul 13, 2009 4:10 AM

    HI CLause,
    On Jul 14 2009, you wrote in SDN and said:
    FYI: Found a solution...
    The hierarchy analysis authorization will be based on a navigational attribute of cost center.
    With analysis authorizations it is possible to declare the Auth object (e.g. 0COSTCENTER__RACCAUT0) as authorization relevant and leave the superior object 0COSTCENTER auth irrelevant.
    The auth will be given for 0COSTCENTER__RACCAUT0. This object will be placed as a filter of the query, being restricted by an Authorization variable for hierarchy nodes.
    Due to the concept of Analysis Authorizations, this variable will automatically pick up the nodes granted as part of RSECADMIN Hierarchy based Authorization.
    As mentioned above, 0COSTCENTER as the regular reporting characteristic remains auth irrelevant and can therefore take any hierarchy thatu2019s available. Reporting on single values will be possible, too. Only those nodes show up that hold the authorized cost centers in accordance to the authorization.
    If the auth relevant 0COSTCENTER__RACCAUT0 is not used in the query definition by either not taking it in as a filter or skipping the Auth variable, the query will launch the message that the authorization is missing. No data show up at all.
    Claus
    See this thread:
    Analysis Authorization based on Hier node with multiple display hierarchies
    I am also in the same situation as you and need to understadn your solution. I understand that you created a Nav Attr on 0COSTCENTER and made this auth relevant whilst ensuring that 0COSTCENTER is NOT auth relevant. This is all fine. The issue was you have multiple hierachies for 0COSTCENTER, how did the new Nav Attr help you solve your issue. When loading 0COSTCENTER what values did you load ino the new Nav Attribute and how did that link to the hierachies? Also, in RSECADMIN you created hiearchy nodes based on the Nav Attribute but I am confused as to what values you have in the Nav Attr.
    I appreciate if you can share your solution from the past in more details.
    many thanks

  • How to populate a context node on the basis of the values in another node?

    Hi,
    I have a Webdynpro application which has to run on Portal as well as BlackBerry.
    In this application I have a scenario where I need to have a sub node inside a node but as Blackberry doesn't support sub nodes with Singleton value false, I have to use another node for storing the values which earlier wre present in the sub node.
    The actual scenario here is that we have two tables A & B. For each row of table A we have a no of rows in table B. This can be easily accomplished for Web Browser but we need to do this for Blackberry.
    My question here is that how can i populate the data in table B at runtime using the concept of onLeadSelect. I am not able to fully undersans this concept.
    According to my approach I have two a while loop which generates data for  table A and inside this while loop I have another while which generates data for table B corresponding to each iteration of the outer while loop. I create the node elements for the rows of the table B and store them in a list and then store this list in a HashMap corresponding to a key formed by combining the values of all the elements of the row of table A.
    Now I am not able to understand how can I display this data into table on user slecting a particular row.
    Please guide ASAP.
    It wille quite useful if you can provide me with some code snippets for the same.
    Thanks in advance!
    Manish

    Hi Manish,
             In WebDynpro u can use the onLeadSelect event of table A and do all the processing in that method.Like u can use this method to fill ur context node,which will be the source node for table B. So this way u need not to use any hash map.Fill the source node of table B with data corresponding to ur selected data of table A.
      I hope this solution wud help u in solving ur problem.
    Reena

  • Use of filters and aggregations based on hierarchy nodes in an update rule

    Hello,
    I need to calculate some indicators from a ODS (BW 3.5) that contain raw data to another one that will contain indicators. These figures are the results of the use of filters and aggregations based on hierarchy nodes (for example: all sales accounts under a node).
    In fact, this is typically a query but I want to store these figures, so I need
    I understood I have to use a start routine. I never did that before.
    Could you provide me with easy-to-understand-for-newbies examples of:
    - filtering data based on the value of an infoobject (value must be empty, for example)
    - filtering and aggregation of data based on the appartenance to hierarchy nodes (all sales figures, ....)
    - aggregation of the key figures based on different characteristics after filtering of these
    Well, I am asking a lot ...
    Thank you very much
    Thomas

    Please go through the following link to learn more on aggregates:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e55aaca6-0301-0010-928e-af44060bda32
    Also go through the very detailed documentation:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/67efb9bb-0601-0010-f7a2-b582e94bcf8a
    Regards,
    Mahesh

  • Add another Node EBS 11i

    Hi all,
    this thread is in continuation with thread. Re: EBS upgrade path
    Applicaiotn=11.5.10.2
    DB=10.2.0.5.0
    OS= OEL 4.8
    Nodes configuration is 1+1+1
    i.e.
    Node Name
    erpapps (Admin+Web+Form+Concurrent)
    erpdb db tier
    erpdrdb standby database
    <b>want to add another node
    erpapps1 with (Admin+Web+Form+Concurrent)</b>
    I followed following steps:
    <b>1- prepare to source system, executed</b>
    perl adpreclone.pl dbTier // although it has nothing to do with this activity
    perl adpreclone.pl appsTier // on erpapps node
    <b>2- Copy the appsTier from erpapps to erpapps1 </b>
    <b>3- executed perl adcfgclone.pl appsTier </b>
    adcfgclone completed successfully.
    parameters entered for adcfgclone.pl are as
    PROMPT :
    Do you want to use a virtual hostname for the target node (y/n) [n] ?
    ANSWER :
    n
    PROMPT :
    Target system database SID [PROD]
    ANSWER :
    PROD
    Default value found for s_contextname : PROD_erpapps1
    PROMPT :
    Target system database server node [erpdb]
    ANSWER :
    erpdb
    PROMPT :
    Target system database domain name [abc.def.com]
    ANSWER :
    abc.def.com
    PROMPT :
    Does the target system have more than one application tier server node (y/n) [y] ?
    ANSWER :
    y
    PROMPT :
    Does the target system application tier utilize multiple domain names (y/n) [n] ?
    ANSWER :
    n
    PROMPT :
    Target system concurrent processing node [erpapps]
    ANSWER :
    erpapps1
    PROMPT :
    Target system administration node [erpapps]
    ANSWER :
    erpapps1
    PROMPT :
    Target system forms server node [erpapps]
    ANSWER :
    erpapps1
    PROMPT :
    Target system web server node [erpapps]
    ANSWER :
    erpapps1
    PROMPT :
    Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?
    ANSWER :
    n
    PROMPT :
    Target system APPL_TOP mount point [/oracle/oraapps/prodappl]
    ANSWER :
    /oracle/oraapps/prodappl
    PROMPT :
    Target system COMMON_TOP directory [/oracle/oraapps/prodcomn]
    ANSWER :
    /oracle/oraapps/prodcomn
    PROMPT :
    Target system 8.0.6 ORACLE_HOME directory [/oracle/oraapps/prodora/8.0.6]
    ANSWER :
    /oracle/oraapps/prodora/8.0.6
    PROMPT :
    Target system iAS ORACLE_HOME directory [/oracle/oraapps/prodora/iAS]
    ANSWER :
    /oracle/oraapps/prodora/iAS
    PROMPT :
    Do you want to preserve the Display set to :0.0 (y/n) [y] ?
    ANSWER :
    y
    at the end
    The new context file has been created at:
            /oracle/oraapps/prodappl/admin/PROD_erpapps1.xml
    then autconfig completed successfully and services started with one exception while starting services
    Checking for FNDFS executable.
    Starting listener process APPS_PROD.
    adalnctl.sh: exiting with status 127<b>4- executed perl adaddnode.pl </b>
    [oraapps@erpapps1 ~]$ more set_apps_env.sh
    . /oracle/oraapps/prodappl/APPSPROD_erpapps1.env
    [oraapps@erpapps1 ~]$ . set_apps_env.sh
    [oraapps@erpapps1 ~]$ cd $COMMON_TOP/clone/bin
    [oraapps@erpapps1 bin]$ ls
    adaddnode.pl  adcfgclone.pl  adchkutl.sh  adclonectx.pl  adclone.pl
    [oraapps@erpapps1 bin]$ perl adaddnode.pl
    Enter the APPS username: APPS
    Enter the APPS user password:
            Using CONTEXT_FILE : /oracle/oraapps/prodappl/admin/PROD_erpapps1.xml
            Using      CTXORIG : /oracle/oraapps/prodcomn/clone/bin/../context/apps/CTXORIG.xml
    APPL_TOP name of the source system (old APPL_TOP name) : erpapps
    APPL_TOP name of the target system (new APPL_TOP name) : erpapps1
    Configuring snapshot information for the original (clone source) node...
    Executing command:
    sqlplus /nolog @/oracle/oraapps/prodappl/ad/11.5.0/patch/115/sql/adadmrat.sql APPS pals15 PROD PROD erpapps1 erpapps /oracle/oraapps/prodcomn/temp/adadmat_sql.spool
    SQL*Plus: Release 8.0.6.0.0 - Production on Wed Sep 28 21:52:17 2011
    (c) Copyright 1999 Oracle Corporation.  All rights reserved.
    Connected.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Current data
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    APPL_TOP Names in AD_APPL_TOPS:
    *PRESEEDED*
    GLOBAL
    erpapps
    erpapps1
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Updating tables...
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    declare
    *<b>
    ERROR at line 1:
    ORA-00001: unique constraint (APPLSYS.AD_APPL_TOPS_U2) violated
    ORA-06512: at line 16
    </b>
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Error configuring snapshot information for the source node...cannot proceed with adding the node.[oraapps@erpapps1 bin]$
    [oraapps@erpapps1 bin]$ sqlplus apps
    SQL*Plus: Release 8.0.6.0.0 - Production on Wed Sep 28 21:52:29 2011
    (c) Copyright 1999 Oracle Corporation.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    <b>followed thread  Error:ORA-00001: unique constraint (APPLSYS.AD_APPL_TOPS_U2) violated </b>
    SQL> create table ad_timestamps_bak as select * from ad_timestamps;
    Table created.
    SQL> create table ad_appl_tops_bak as select * from ad_appl_tops;
    Table created.
    SQL> delete ad_appl_tops where name='erpapps1';
    1 row deleted.
    SQL> delete from ad_timestamps where attribute like '%erpapps1';
    2 rows deleted.
    SQL> commit;
    SQL> exit<b>rerun perl adaddnode.pl</b>
    Enter the APPS username: APPS
    Enter the APPS user password:
            Using CONTEXT_FILE : /oracle/oraapps/prodappl/admin/PROD_erpapps1.xml
            Using      CTXORIG : /oracle/oraapps/prodcomn/clone/bin/../context/apps/CTXORIG.xml
    APPL_TOP name of the source system (old APPL_TOP name) : erpapps
    APPL_TOP name of the target system (new APPL_TOP name) : erpapps1
    Configuring snapshot information for the original (clone source) node...
    Executing command:
    sqlplus /nolog @/oracle/oraapps/prodappl/ad/11.5.0/patch/115/sql/adadmrat.sql APPS pals15 PROD PROD erpapps1 erpapps /oracle/oraapps/prodcomn/temp/adadmat_sql.spool
    SQL*Plus: Release 8.0.6.0.0 - Production on Wed Sep 28 22:25:33 2011
    (c) Copyright 1999 Oracle Corporation.  All rights reserved.
    Connected.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Current data
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    APPL_TOP Names in AD_APPL_TOPS:
    *PRESEEDED*
    GLOBAL
    erpapps
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Updating tables...
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    PL/SQL procedure successfully completed.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Updated data
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    APPL_TOP Names in AD_APPL_TOPS:
    *PRESEEDED*
    GLOBAL
    erpapps
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Done
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Commit complete.
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Completed snapshot configuration on source node.
    Configuring snapshot information for the new (clone target) node...
    Executing command:
    sqlplus /nolog @/oracle/oraapps/prodappl/ad/11.5.0/patch/115/sql/adadmdat.sql APPS pals15 PROD PROD erpapps erpapps1 /oracle/oraapps/prodcomn/temp/adadmdat_sql.spool
    SQL*Plus: Release 8.0.6.0.0 - Production on Wed Sep 28 22:25:33 2011
    (c) Copyright 1999 Oracle Corporation.  All rights reserved.
    Connected.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Checking configuration...
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    AOL Schema Name         : APPLSYS
    Applications System Name: PROD
    Source APPLTOP Name     : erpapps
    Target APPLTOP Name     : erpapps1
    ACTIVE_FLAG present?    : TRUE
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Current data
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    APPL_TOP Names in AD_APPL_TOPS:
    *PRESEEDED*
    GLOBAL
    erpapps
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Updating tables...
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    PL/SQL procedure successfully completed.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Updated data
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    APPL_TOP Names in AD_APPL_TOPS:
    *PRESEEDED*
    GLOBAL
    erpapps
    erpapps1
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Done
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Commit complete.Following are the observations:
    - concurrent is not starting on both nodes
    - if access application through url http://erpapps.abc.def.com:8010/--- then till login page url remains for same host, but after successfull login url redirects to http://erpapps1.abc.def.com:8010/.
    <b>
    we want this setup
    erpapps (Admin+Web+Form+Concurrent)
    erpapps1 (Admin+Web+Form+Concurrent)
    erpdb db tier
    erpdrdb standby database
    What I missed in the configuration?
    </b>
    Regards,
    Asim

    cocurrent error at node ERPAPPS1
    Could not contact Service Manager FNDSM_ERPAPPS_PROD. The TNS alias could not be located, the listener process on ERPAPPS could not be contacted, or the listener failed to spawn the Service Manager process.
    Could not contact Service Manager FNDSM_ERPAPPS1_PROD. The TNS alias could not be located, the listener process on ERPAPPS1 could not be contacted, or the listener failed to spawn the Service Manager process.concurrent error for node ERPAPPS, eralier it was working fine
    Routine &ROUTINE has attempted to start the internal concurrent manager.  The ICM is already running.  Contact you system administrator for further assistance.afpdlrq received an unsuccessful result from PL/SQL procedure or function FND_DCP.Request_Session_Lock.
    Routine FND_DCP.REQUEST_SESSION_LOCK received a result code of 1 from the call to DBMS_LOCK.Request.
    Possible DBMS_LOCK.Request resultCall to establish_icm failed
    The Internal Concurrent Manager has encountered an error.
    Review concurrent manager log file for more detailed information. : 28-SEP-2011 23:07:59 -
    Shutting down Internal Concurrent Manager : 28-SEP-2011 23:07:59
    List of errors encountered:
    _ 1 _
    Routine AFPCSQ encountered an ORACLE error. .
    Review your error messages for the cause of the error. (=<POINTER>)
    List of errors encountered:
    _ 1 _
    Routine AFPCAL received failure code while parsing or running your
    concurrent program CPMGR
    Review your concurrent request log file for more detailed information.
    Make sure you are passing arguments in the correct format.
    The PROD_0928@PROD internal concurrent manager has terminated with status 1 - giving up.<b>Do you have PCP implemented?</b>
    No, till now we haven't done that.

  • Calling EJB on specific node from EJB on another node

    Hello,
    In cluster environment what is the best approach to call session bean on one node from session bean on another node? The scenario would allow synchronization of local cache (singleton) between two nodes. I understand that there are other options like SingletonService, distributed cache etc., but I wonder how hard would be to implement synchronization calls between nodes on remote session beans.
    Thanks
    Greg K.

    Hi,
    Based on your query on thread i can suggestthe following as a best option: Re: replica-aware stub.
    Use the JMX code to get the Cluster details....It means the name of the Cluster members and their Listen port and Listen Addresses then in your Client code do the following:
    InitialContext ic = getInitialContext(“t3://ClusterMemberOne:7002,ClusterMemberTwo:7003″);Like that whatever InitialContext object you will get will be able to provide you the correct EJB from any newly added member of the Cluster as well..
    You can enhance the JMX code mentioned in the following link : http://middlewaremagic.com/weblogic/?p=210 you will need to add only 2-3 lines to make it work for your requirement.
    Just tweak the following code to get the ListenPort and ListenAddress of cluster Nodes:
    public void printClusterInfo() throws Exception
         ObjectName[] serverRT = getServerRuntimes();
         Hashtable server_states = new Hashtable();
         for(ObjectName ser: serverRT)
              server_states.put((String) connection.getAttribute(ser,”Name”), (String) connection.getAttribute(ser,”State”));
         }Thanks
    Jay SenSharma

  • Sum on child nodes based on attribute value in xslt

    Hi all,
    Any one can post helpful code to calculate the sum of child nodes based on the attribute value of other child node.
    Let's say for example.
    I have one child element has attribute value let's say Tax so I have to put condition on child element having value of "Tax" I need to calcualte sum of Invoice amount that element is also child node
    After calculating sum I have to apply that sum at the header level of the Invoice. For each Invoice I have calculate sum and apply at the header level.

    It isn't working :(.Got the following error:
    An error was reported compiling the XPath expression: error: XPath expression invalid, not a selection: declare namespace ws = 'http://www.bea.com/wli/sb/transports/ws';
    declare namespace tuxedo = 'http://www.bea.com/wli/sb/transports/tuxedo';
    declare namespace wsa = 'http://schemas.xmlsoap.org/ws/2004/08/addressing';
    declare namespace http = 'http://www.bea.com/wli/sb/transports/http';
    declare namespace xsi = 'http://www.w3.org/2001/XMLSchema-instance';
    declare namespace wsp = 'http://schemas.xmlsoap.org/ws/2004/09/policy';
    declare namespace file = 'http://www.bea.com/wli/sb/transports/file';
    declare namespace xsd = 'http://www.w3.org/2001/XMLSchema';
    declare namespace soap12-env = 'http://www.w3.org/2003/05/soap-envelope';
    declare namespace flow = 'http://www.bea.com/alsb/flow/transport';
    declare namespace sftp = 'http://www.bea.com/wli/sb/transports/sftp';
    declare namespace sb = 'http://www.bea.com/wli/sb/transports/sb';
    declare namespace soap-enc = 'http://schemas.xmlsoap.org/soap/encoding/';
    declare namespace ejb = 'http://www.bea.com/wli/sb/transports/ejb';
    declare namespace soap-env = 'http://schemas.xmlsoap.org/soap/envelope/';
    declare namespace jpd = 'http://www.bea.com/wli/sb/transports/jpd';
    declare namespace email = 'http://www.bea.com/wli/sb/transports/email';
    declare namespace tp = 'http://www.bea.com/wli/sb/transports';
    declare namespace dsp = 'http://www.bea.com/dsp/transport/sb';
    declare namespace ctx = 'http://www.bea.com/wli/sb/context';
    declare namespace soap12-enc = 'http://www.w3.org/2003/05/soap-encoding';
    declare namespace wsu = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';
    declare namespace jms = 'http://www.bea.com/wli/sb/transports/jms';
    declare namespace ftp = 'http://www.bea.com/wli/sb/transports/ftp';
    fn:string(./xml-fragment/@IntObjectName).

  • Recover 2 nodes RAC to another server

    Hi
    I am trying to restore our 2 nodes database to another single instance server.
    I successfully restore controlfile, datafile but when I try to recover the database,
    rman ask for a archivelog seq from thread 2 even though the next system change # is in thread 1 archivelog.
    Please refer to the v$archived_log below
    RECID     THREAD#     SEQUENCE#     NEXT_CHANGE#     FIRST_CHANGE#
    853     1     476     10058590635887     10058588406010
    852     1     475     10058588406010     10058586932543
    851     2     377     10058588406003     10058586932534
    After rman recovered the log seq 475, it keep asking for the next seq 378 in thread 2 which hasn't been archived by thread 2 instance,
    the next change actuall in thread# 1, seq 476.
    Is that mean I will have to wait thread# 2 archive the seq 378 log before I can recover seq 476 in thread#1?
    Pek

    Hi,
    Here is the result..
    select status, checkpoint_change#, fuzzy,
    to_char(checkpoint_time, 'DD-MON-YYYY HH24:MI:SS') as checkpoint_time,
    count(*)
    from v$datafile_header
    group by status, checkpoint_change#, fuzzy, checkpoint_time
    order by status, checkpoint_change#, fuzzy, checkpoint_time;
    select distinct checkpoint_change# from v$datafile_header;
    select hxfil file_id, fhscn scn, fhthr thread, fhrba_seq sequence, fhsta status from x$kcvfh;
    select distinct fhscn from x$kcvfh;
    STATUS CHECKPOINT_CHANGE# FUZ CHECKPOINT_TIME COUNT(*)
    ONLINE 10058588406003 NO 25-NOV-2012 19:00:30 16
    1 row selected.
    SQL>
    CHECKPOINT_CHANGE#
    10058588406003
    1 row selected.
    SQL>
    FILE_ID SCN THREAD SEQUENCE STATUS
    1 10058588406003 2 378 8192
    2 10058588406003 2 378 0
    3 10058588406003 2 378 0
    4 10058588406003 2 378 0
    5 10058588406003 2 378 0
    6 10058588406003 2 378 0
    7 10058588406003 2 378 0
    8 10058588406003 2 378 0
    9 10058588406003 2 378 0
    10 10058588406003 2 378 0
    11 10058588406003 2 378 0
    12 10058588406003 2 378 0
    13 10058588406003 2 378 0
    14 10058588406003 2 378 0
    15 10058588406003 2 378 0
    16 10058588406003 2 378 0
    16 rows selected.
    SQL>
    FHSCN
    10058588406003
    SQL> select hxfil file_id, fhtnm tablespace_name from x$kcvfh;
    FILE_ID TABLESPACE_NAME
    1 SYSTEM
    2 SYSAUX
    3 UNDOTBS1
    4 UNDOTBS2
    5 USERS
    6 DATA_SE
    7 INDEX_SE
    8 DATA_SE
    9 INDEX_SE
    10 DATA_SE
    11 DATA_SE_LOJACK
    12 INDEX_SE
    13 CJHIT
    14 FLOW_1
    15 DATA_SE
    16 INDEX_SE
    16 rows selected.
    Edited by: pj**** on 26-Nov-2012 16:18

  • How to blink TreeView Nodes based on condition c#

    suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes  based on condition in winform application.

    Hi Mou_kolkata,
    >> anyone can give me small working code for tree node blinking
    Thank Armin for the details about blinking TreeView Nodes.
    For a simple demo to blink TreeView nodes, you could refer the link below:
    # Treeview control - How to make a node blink?
    https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
    If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to avoid the selection of a Parent node and its child node at a time?

    Example:
    consider the below JTree.
    Parent1
    ---->Parent2
    -------->Child3
    Parent3
    ---->Parent4
    My requirement :
    Parent1 and Parent3 can be selected at a time(using ctrl keys)
    Parent2 and Parent4 can be selected at a time
    Parent1 and Parent2 should not allowed to select at a time.
    In general : A parent and any of its child should not be selected at a time.
    How to achieve this? Anyone please help me.

    Thanikai wrote:
    I am very sorry.Whatever for? It's a valid question.
    How do i implement a custom TreeSelectionModel?I would start by going through the source of DefaultTreeSelectionModel so see how the default selection is handled. Also probably check out JTree.EmptySelectionModel to see how selection is prevented.
    Which methods to override?Methods in the class you choose to extend, obviously. But before that you need to firm up certain design decisions: if a parent node is selected and the user attempts to select one of its child nodes, do you select the child and deselect the parent or do nothing/ and vice versa.
    etc.... may form the basis for a future, more specific question accompanied by a [_SSCCE_|http://mindprod.com/jgloss/sscce.html].
    luck, db

Maybe you are looking for