Pin dbms_cube.build parallel jobs to specific node on RAC

Is there a way to Pin dbms_cube.build parallel jobs to specific node on RAC.Currently the job with say parallelism of 10 spans over all nodes of RAC.
IS there a way to control it so the child jobs runs on subset of nodes. Unable to see how we can tie job classes and services with dbms_cube.build .
Any suggestions will be hugely appreciated.

Used undocumented JOB_CLASS and it seems to working fine.
SQL> desc sys.dbms_cube.build
Parameter Type Mode Default?
SCRIPT VARCHAR2 IN
METHOD VARCHAR2 IN Y
REFRESH_AFTER_ERRORS BOOLEAN IN Y
PARALLELISM BINARY_INTEGER IN Y
ATOMIC_REFRESH BOOLEAN IN Y
AUTOMATIC_ORDER BOOLEAN IN Y
ADD_DIMENSIONS BOOLEAN IN Y
SCHEDULER_JOB VARCHAR2 IN Y
MASTER_BUILD_ID BINARY_INTEGER IN Y
REBUILD_FREEPOOLS BOOLEAN IN Y
NESTED BOOLEAN IN Y
JOB_CLASS VARCHAR2 IN Y

Similar Messages

  • Constraining OWB to specific nodes of RAC install

    Hello all,
    I was wondering if anyone has installed OWB 10.2 on a RAC environment and has successfully constrained OWB to run on one specified node in the cluster?
    If so, is there some documentation that you can share on what to avoid and any setup / configuration that needs to be done before, during and after the install. Likewise, assuming that OWB is active on node 1 what is involved in transferring the processing to node 2 (NOT a fail over situation) so that node 1 can be shut down and have scheduled maintenance activities performed?
    Thanks
    Steve

    As far as the repository assistant in concerned, you do need to run it on all nodes. The first time you run the repository asst against the first node, it is used create the repository and other Builder users. Subsequently, the next time you run the repository asst it is to register the other nodes. When you run it a second time, select the Advanced setup and you will then see the option to register the other nodes. <Something you would not have seen the first time>.
    That small detail drove us nuts because we were expecting to register all nodes at the same time the first time we ran the asst. Registering all subsequent nodes was not possible until after successfully creating the repository in our db.
    Did you register the other nodes? I tend to think that registering the other nodes with OWB is not optional. Although we designated only 1 node to run our <owb_srvc>, all other nodes were registered during the install.
    You don't mention why you are trying to limit OWB to one node only. For us, it was a way to test the behavior of OWB and the jobs we had scheduled. There was also the fact that we had an issue with signing on to Design Ctr using the net service name. So instead of using the net service name we would sign to one particular node. That in itself is a completely different subject because how you sign in to the Design Ctr appears to affect other aspects of the Design Ctr.
    By the way, can you post he Java errors you mention? We too had several along the way.
    Regards,
    David

  • JOB on a specific node

    Is it possible to execute a scheduled job to run on a specific node.

    BEGIN
      SYS.DBMS_SCHEDULER.CREATE_JOB_CLASS
          job_class_name          => 'TEST'
         ,resource_consumer_group => 'DEFAULT_CONSUMER_GROUP'
         ,service                 => 'ORCL'
         ,log_history             => 30
         ,comments                => NULL
    END;
    / ORCL must exists:
    SELECT NAME FROM DBA_SERVICES:
    NAME                                                           
    SYS$BACKGROUND                                                 
    SYS$USERS                                                      
    ORCLXDB                                                        
    ORCL                                                           
    BEGIN
      SYS.DBMS_SCHEDULER.CREATE_JOB
           job_name        => 'SYS.TEST_JOB'
          ,start_date      => TO_TIMESTAMP_TZ('sysdate','yyyy/mm/dd hh24:mi:ss.ff tzr')
          ,repeat_interval => NULL
          ,end_date        => NULL
          ,job_class       => 'TEST'
          ,job_type        => 'PLSQL_BLOCK'
          ,job_action      => 'begin null; end;'
          ,comments        => NULL
    /

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • Query to Report on Parallel Jobs Running

    Morning!
    I would like to get a query that reports on my parallel jobs.
    For each minute that a procedure is running I would like to know what stages are running.
    I log the whole procedure in a table called run_details and the start and end of each stage in a table called incident.
    I'm running Oracle 9i
    Here is some sample data based on 2 threads Expected output at the bottom
    SQL>CREATE TABLE run_details
      2  (run_details_key  NUMBER(10)
      3  ,start_time       DATE
      4  ,end_time         DATE
      5  ,description      VARCHAR2(50)
      6  );
    SQL>CREATE TABLE incident
      2  (run_details_key NUMBER(10)
      3  ,stage           VARCHAR2(20)
      4  ,severity        VARCHAR2(20)
      5  ,time_stamp      DATE
      6  );
    SQL>INSERT INTO run_details
      2  VALUES (1
      3         ,TO_DATE('08/10/2007 08:00','DD/MM/YYYY HH24:MI')
      4         ,TO_DATE('08/10/2007 08:10','DD/MM/YYYY HH24:MI')
      5         ,'Test'
      6         );
    SQL>INSERT INTO incident
      2  VALUES (1
      3         ,'Stage1'
      4         ,'START'
      5         ,TO_DATE('08/10/2007 08:00','DD/MM/YYYY HH24:MI')
      6         );
    SQL>INSERT INTO incident
      2  VALUES (1
      3         ,'Stage1'
      4         ,'END'
      5         ,TO_DATE('08/10/2007 08:08:53','DD/MM/YYYY HH24:MI:SS')
      6         );
    SQL>INSERT INTO incident
      2  VALUES (1
      3         ,'Stage2'
      4         ,'START'
      5         ,TO_DATE('08/10/2007 08:00','DD/MM/YYYY HH24:MI')
      6         );
    SQL>INSERT INTO incident
      2  VALUES (1
      3         ,'Stage2'
      4         ,'END'
      5         ,TO_DATE('08/10/2007 08:04:23','DD/MM/YYYY HH24:MI:SS')
      6         );
    SQL>INSERT INTO incident
      2  VALUES (1
      3         ,'Stage3'
      4         ,'START'
      5         ,TO_DATE('08/10/2007 08:04:24','DD/MM/YYYY HH24:MI:SS')
      6         );
    SQL>INSERT INTO incident
      2  VALUES (1
      3         ,'Stage3'
      4         ,'END'
      5         ,TO_DATE('08/10/2007 08:10','DD/MM/YYYY HH24:MI')
      6         );
    SQL>select * from incident;
    RUN_DETAILS_KEY STAGE      SEVERITY   TIME_STAMP
                  1 Stage1     START      08/10/2007 08:00:00
                  1 Stage1     END        08/10/2007 08:08:53
                  1 Stage2     START      08/10/2007 08:00:00
                  1 Stage2     END        08/10/2007 08:04:23
                  1 Stage3     START      08/10/2007 08:04:24
                  1 Stage3     END        08/10/2007 08:10:00  So stages 1 and 2 run in parallel from 08:00, then at 08:04:23 stage 2 stops and a second later stage 3 starts.
    set some variables
    SQL>define start_time = null
    SQL>col start_time new_value start_time
    SQL>define end_time = null
    SQL>col end_time new_value end_time
    SQL>
    SQL>SELECT start_time-(1/(24*60)) start_time
      2        ,end_time
      3  FROM   run_details
      4  WHERE  run_details_key =  1;
    START_TIME          END_TIME
    08/10/2007 07:59:00 08/10/2007 08:10:00Get every minute that the process is running for:
    SQL>WITH t AS (SELECT TRUNC(TO_DATE('&start_time','dd/mm/yyyy hh24:mi:ss'),'MI') + rownum/24/60 tm
      2             FROM   dual
      3             CONNECT BY ROWNUM <= (TO_DATE('&end_time','dd/mm/yyyy hh24:mi:ss')
      4                                   -TO_DATE('&start_time','dd/mm/yyyy hh24:mi:ss')
      5                                  )*24*60
      6            )
      7  SELECT tm
      8  FROM t;
    old   1: WITH t AS (SELECT TRUNC(TO_DATE('&start_time','dd/mm/yyyy hh24:mi:ss'),'MI') + rownum/24/60 tm
    new   1: WITH t AS (SELECT TRUNC(TO_DATE('08/10/2007 07:59:00','dd/mm/yyyy hh24:mi:ss'),'MI') + rownum/24/60 tm
    old   3:            CONNECT BY ROWNUM <= (TO_DATE('&end_time','dd/mm/yyyy hh24:mi:ss')
    new   3:            CONNECT BY ROWNUM <= (TO_DATE('08/10/2007 08:10:00','dd/mm/yyyy hh24:mi:ss')
    old   4:                                -TO_DATE('&start_time','dd/mm/yyyy hh24:mi:ss')
    new   4:                                -TO_DATE('08/10/2007 07:59:00','dd/mm/yyyy hh24:mi:ss')
    TM
    08/10/2007 08:00:00
    08/10/2007 08:01:00
    08/10/2007 08:02:00
    08/10/2007 08:03:00
    08/10/2007 08:04:00
    08/10/2007 08:05:00
    08/10/2007 08:06:00
    08/10/2007 08:07:00
    08/10/2007 08:08:00
    08/10/2007 08:09:00
    08/10/2007 08:10:00
    11 rows selected.Get stage, start & end times and duration
    SQL>SELECT ai1.stage
      2        ,ai1.time_stamp start_time
      3        ,ai2.time_stamp end_time
      4        ,SUBSTR(numtodsinterval(ai2.time_stamp-ai1.time_stamp, 'DAY'), 12, 8) duration
      5  FROM   dw2.incident ai1
      6  JOIN   dw2.incident ai2
      7         ON ai1.run_details_key = ai2.run_details_key
      8         AND ai1.stage = ai2.stage
      9  WHERE ai1.severity = 'START'
    10  AND ai2.severity = 'END'
    11  AND ai1.run_details_key  = 1
    12  ORDER BY ai1.time_stamp
    13  /
    STAGE      START_TIME          END_TIME            DURATION
    Stage1     08/10/2007 08:00:00 08/10/2007 08:08:53 00:08:52
    Stage2     08/10/2007 08:00:00 08/10/2007 08:04:23 00:04:22
    Stage3     08/10/2007 08:04:24 08/10/2007 08:10:00 00:05:36Then combine both (or do something else) to get this:
    TM                  THREAD_1 THREAD_2
    08/10/2007 08:00:00 Stage1   Stage2
    08/10/2007 08:01:00 Stage1   Stage2
    08/10/2007 08:02:00 Stage1   Stage2
    08/10/2007 08:03:00 Stage1   Stage2
    08/10/2007 08:04:00 Stage1   Stage2
    08/10/2007 08:05:00 Stage1   Stage3
    08/10/2007 08:06:00 Stage1   Stage3
    08/10/2007 08:07:00 Stage1   Stage3
    08/10/2007 08:08:00 Stage1   Stage3
    08/10/2007 08:09:00          Stage3
    08/10/2007 08:10:00          Stage3Ideally I'd like this to work for n-threads, as I want this to run on different environments that have different numbers of CPUs.
    Thank you for your time.

    > Ideally I'd like this to work for n-threads, as I want this to run on
    different environments that have different numbers of CPUs.
    The number of CPUs are not always a good indication of the processing load that a platform can take - especially when the processing load involves a lot of I/O.
    You can have 99% CPU idle time with a 1000 active processes... as that idle time is in fact CPU time spend waiting on I/O completion. Courtesy of a severely strained I/O channel that is the bottleneck.
    Another factor is memory (resources). You for example have 4 CPUs with 8GB physical memory.. where a single process (typically a Java VM for a complex process) grabs a huge amount of memory. Assuming that 4 threads/CPU or 1 threads/CPU can be a severe overestimate due to the amount of memory needed. Getting this wrong leads in turn to excessive virtual memory paging and reduces the platform's performance drastically.
    CPU alone is a very poor choice when deciding on the platform's capacity to run parallel processes.

  • How to expand a tree at a specific node/item?

    Hi,
    we have a tree and the nodes/items were binded to context with this code
    lo_nd_nvccmp = wd_context->get_child_node( name = wd_this->wdctx_nvccmp ).
    lo_nd_tree = lo_nd_nvccmp->get_child_node( name = wd_this->wdctx_tree ).
    lo_el_tree = lo_nd_tree->bind_structure( new_item = ls_tree set_initial_elements = abap_false ).
    We want that the tree is expanded at a specific node/item?
    The structure has the field is_expanded of type WDY_BOOLEAN. I think that if the field of the right structure is 'X' then the tree should expanded. How can we find the right structure in the context and change this field to 'X'?
    Code is appreciated.
    Thanks, regards
    Susanne

    Oh, apparently if you try that call right after you create
    the Tree, it will throw a null reference exception. That might
    count as a bug in the flex api...
    If you create a Tree, and give it's dataProvider some xml
    data, and then add it to the stage (addChild), and then you call
    expandItem or expandChildrenOf() right after, you will get a null
    object exception. You have to wait... for something. I don't know
    what.
    I even tried calling _tree.invalidateList() before the
    expandItem, but it will still throw the error...
    I wonder what the Tree needs to wait for? Is this a bug for
    Adobe to fix?

  • XSLT Mapping - replacing attribute value of a specific node

    Hi,
    I want to replace the value of an attribute for a specific node. Can you please tell me how this can be achieved using XSLT coding?
    The input file is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
         <EnvelopeVersion>2.0</EnvelopeVersion>
         <Header>
              <MessageDetails>
                   <Class>IR-PAYE-MOV</Class>
                   <Qualifier>request</Qualifier>
                   <Function>submit</Function>
                   <CorrelationID/>
                   <Transformation>XML</Transformation>
                   <GatewayTimestamp/>
              </MessageDetails>
              <SenderDetails>
                   <IDAuthentication>
                        <SenderID>isv142</SenderID>
                        <Authentication>
                             <Method>MD5</Method>
                             <Value>1L2xFE8WqHHI5iVMGhixAg==</Value>
                        </Authentication>
                   </IDAuthentication>
              </SenderDetails>
         </Header>
         <GovTalkDetails>
              <Keys>
                   <Key Type="TaxOfficeNumber">123</Key>
                   <Key Type="TaxOfficeReference">MD345</Key>
              </Keys>
              <ChannelRouting>
                   <Channel>
                        <URI>0142</URI>
                   </Channel>
              </ChannelRouting>
         </GovTalkDetails>
         <Body>
              <IRenvelope xmlns="http://www.govtalk.gov.uk/taxation/PAYE/MOV/09-10/1">
                   <IRheader>
                        <Keys>
                             <Key Type="TaxOfficeNumber">123</Key>
                             <Key Type="TaxOfficeReference">MD345</Key>
                        </Keys>
                        <PeriodEnd>2009-09-29</PeriodEnd>
                        <DefaultCurrency>GBP</DefaultCurrency>
                        <IRmark Type="generic">03Bfkipk6UDWSXLj77ObBVoK894=</IRmark>
                        <Sender>Company</Sender>
                   </IRheader>
                   <InYearMovements>
                        <EmployerName>form p60</EmployerName>
                        <P46 Statement="A">
                             <Name>
                                  <Fore>Smith</Fore>
                                  <Sur>John</Sur>
                             </Name>
                             <Address>
                                  <Line>Sterling Residency</Line>
                                  <Line>Gehde</Line>
                                  <Line>Hedge End</Line>
                                  <Line>Southampton</Line>
                                  <PostCode>12345678</PostCode>
                             </Address>
                             <WorksNumber>20090030</WorksNumber>
                             <NINO>NP258719D</NINO>
                             <BirthDate>1985-07-11</BirthDate>
                             <Gender>male</Gender>
                             <StartDate>2009-04-20</StartDate>
                             <TaxCodeInUse>647L</TaxCodeInUse>
                        </P46>
                   </InYearMovements>
              </IRenvelope>
         </Body>
    </GovTalkMessage>
    I want to replace the value 'http://www.govtalk.gov.uk/taxation/PAYE/MOV/09-10/1' of attribute xmlns belonging to the node 'IRenvelope' with the value 'http://www.govtalk.gov.uk/taxation/PAYE/MOV/10-11/1'
    So the output of the mapping should be:
    <?xml version="1.0" encoding="UTF-8"?>
    <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">
         <EnvelopeVersion>2.0</EnvelopeVersion>
         <Header>
              <MessageDetails>
                   <Class>IR-PAYE-MOV</Class>
                   <Qualifier>request</Qualifier>
                   <Function>submit</Function>
                   <CorrelationID/>
                   <Transformation>XML</Transformation>
                   <GatewayTimestamp/>
              </MessageDetails>
              <SenderDetails>
                   <IDAuthentication>
                        <SenderID>isv142</SenderID>
                        <Authentication>
                             <Method>MD5</Method>
                             <Value>1L2xFE8WqHHI5iVMGhixAg==</Value>
                        </Authentication>
                   </IDAuthentication>
              </SenderDetails>
         </Header>
         <GovTalkDetails>
              <Keys>
                   <Key Type="TaxOfficeNumber">123</Key>
                   <Key Type="TaxOfficeReference">MD345</Key>
              </Keys>
              <ChannelRouting>
                   <Channel>
                        <URI>0142</URI>
                   </Channel>
              </ChannelRouting>
         </GovTalkDetails>
         <Body>
              <IRenvelope xmlns="http://www.govtalk.gov.uk/taxation/PAYE/MOV/10-11/1">
                   <IRheader>
                        <Keys>
                             <Key Type="TaxOfficeNumber">123</Key>
                             <Key Type="TaxOfficeReference">MD345</Key>
                        </Keys>
                        <PeriodEnd>2009-09-29</PeriodEnd>
                        <DefaultCurrency>GBP</DefaultCurrency>
                        <IRmark Type="generic">03Bfkipk6UDWSXLj77ObBVoK894=</IRmark>
                        <Sender>Company</Sender>
                   </IRheader>
                   <InYearMovements>
                        <EmployerName>form p60</EmployerName>
                        <P46 Statement="A">
                             <Name>
                                  <Fore>Smith</Fore>
                                  <Sur>John</Sur>
                             </Name>
                             <Address>
                                  <Line>Sterling Residency</Line>
                                  <Line>Gehde</Line>
                                  <Line>Hedge End</Line>
                                  <Line>Southampton</Line>
                                  <PostCode>12345678</PostCode>
                             </Address>
                             <WorksNumber>20090030</WorksNumber>
                             <NINO>NP258719D</NINO>
                             <BirthDate>1985-07-11</BirthDate>
                             <Gender>male</Gender>
                             <StartDate>2009-04-20</StartDate>
                             <TaxCodeInUse>647L</TaxCodeInUse>
                        </P46>
                   </InYearMovements>
              </IRenvelope>
         </Body>
    </GovTalkMessage>
    Thanks & Regards,
    Aditi Naik

    Hi,
    You get name of an attribute by this code
    <xsl:for-each select="@*">
        <xsl:text>Value of </xsl:text>
               <xsl:value-of select="name(.)"/>
        <xsl:text> is </xsl:text><xsl:value-of select="."/>
    </xsl:for-each>
    Change value by providing new value in <xsl:value-of select="."/>
    Regards
    suraj

  • IXML - Checking if a specific node exists in XML data

    Hi,
    I´m reading XML data by using iXML classes. One XML file I´m reading contains header and
    item data.
    Right now I´m starting with reading the header attributes and then read all nested nodes and their attribute data. That works all fine, but now I had the error, that the XML file wrongly didn´t contain the items.
    My XML reading method then ended up in a dump because the node was null:
    l_node = l_iterator->get_next( ).
    Can anybody give me an advice, how to check at the beginning of reading my xml data, if a specific node (in my case the node for items) exists in the XML data? If not, I want to stop with an error message. I want to check that at the beginning, before reading all element data, to keep my method structured.
    Thank you very much!

    Hi,
    You can create a filter and set that filter to the iterator. If this is done the iterator returns you only the node with a specific node name or node ID.
    You can also check the parsing in the following WIKI code gallery
    https://wiki.sdn.sap.com/wiki/x/JoDmAQ
    Subroutines create_set_filter_attribute and parse_xml_file would be helpful.

  • Using XSLT to empty nodes with the exception of  specific node.

    I have XSLT code working which will remove all the empty elements. My user wishes to exempt a specific node, <BypassDateEdits>. I can not figure out the correct syntax to do this.
    Source XML is:
    <?xml version="1.0" encoding="UTF-8"?>
    <IMDSCDB xmlns="http://xml.dod.mil/log/maint/fs/main/4.0.0">
    <EndItemTCTOReporting originator="EMOC">
    <PartialJobDataDocumentationData/>
    <JobControlNumber>
    <EventId>052790038</EventId>
    <WorkcenterEvent>001</WorkcenterEvent>
    </JobControlNumber>
    <End/>
    <HomeEnterpriseLocationCode>7494</HomeEnterpriseLocationCode>
    <CurrentEnterpriseLocationCode>7494</CurrentEnterpriseLocationCode>
    <HostUnitDateAndTime>2006-02-23T19:29:37</HostUnitDateAndTime>
    <TransactionOrdinalDate>06054</TransactionOrdinalDate>
    <ComponentPosition>0</ComponentPosition>
    <HowMalfunctionCode>802</HowMalfunctionCode>
    <UnitsProduced>01</UnitsProduced>
    <StartTime>0800</StartTime>
    <StopDate>05200</StopDate>
    <StopTime>0805</StopTime>
    <CrewSize>6</CrewSize>
    <CategoryOfLaborCode>1</CategoryOfLaborCode>
    <ActivityIdentifierCode>02</ActivityIdentifierCode>
    <CorrectedByIMDSCDBUserId>GU03CW</CorrectedByIMDSCDBUserId>
    <CorrectiveActionNarrative>Test Test</CorrectiveActionNarrative>
    <InspectedByIMDSCDBUserId>GU03CW</InspectedByIMDSCDBUserId>
    <DocumentMoreTCTOThisJobControlNumber/>
    <InspectionPassed>Y</InspectionPassed>
    <BypassDateEdits/>
    </EndItemTCTOReporting>
    </IMDSCDB>
    Desired output is:
    <?xml version="1.0" encoding="UTF-8"?>
    <IMDSCDB xmlns="http://xml.dod.mil/log/maint/fs/main/4.0.0">
    <EndItemTCTOReporting originator="EMOC">
    <PartialJobDataDocumentationData/>
    <JobControlNumber>
    <EventId>052790038</EventId>
    <WorkcenterEvent>001</WorkcenterEvent>
    </JobControlNumber>
    <HomeEnterpriseLocationCode>7494</HomeEnterpriseLocationCode>
    <CurrentEnterpriseLocationCode>7494</CurrentEnterpriseLocationCode>
    <HostUnitDateAndTime>2006-02-23T19:29:37</HostUnitDateAndTime>
    <TransactionOrdinalDate>06054</TransactionOrdinalDate>
    <ComponentPosition>0</ComponentPosition>
    <HowMalfunctionCode>802</HowMalfunctionCode>
    <UnitsProduced>01</UnitsProduced>
    <StartTime>0800</StartTime>
    <StopDate>05200</StopDate>
    <StopTime>0805</StopTime>
    <CrewSize>6</CrewSize>
    <CategoryOfLaborCode>1</CategoryOfLaborCode>
    <ActivityIdentifierCode>02</ActivityIdentifierCode>
    <CorrectedByIMDSCDBUserId>GU03CW</CorrectedByIMDSCDBUserId>
    <CorrectiveActionNarrative>Test Test</CorrectiveActionNarrative>
    <InspectedByIMDSCDBUserId>GU03CW</InspectedByIMDSCDBUserId>
    <InspectionPassed>Y</InspectionPassed>
    <BypassDateEdits/>
    </EndItemTCTOReporting>
    </IMDSCDB>
    XSLT to remove all empty nodes is:
    <?xml version="1.0"?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:template match="@* | node()">
    <xsl:copy>
    <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="*[not(descendant::text()[normalize-space()])]" >
    </xsl:template>
    </xsl:stylesheet>
    I believe I need to use the | operator to select the additional node set of just the <BypassDateEdits> node, but repeated attempt and research on the web has enabled me to find a solution.
    Any assistance would be appreciated.
    Bill

    having gotten a big clue from tsuji, I finally achieved the correct XSLT.
    This XSLT:
    <?xml version="1.0"?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:template match="@* | node()">
    <xsl:copy>
    <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="*[not(local-name()='BypassDateEdits') and namespace-uri()='http://xml.dod.mil/log/maint/fs/main/4.0.0'][not(descendant::text()[normalize-space()])]" >
    </xsl:template>
    </xsl:stylesheet>
    Yields the desired results:
    <?xml version="1.0" encoding="UTF-8"?><IMDSCDB xmlns="http://xml.dod.mil/log/maint/fs/main/4.0.0">
    <EndItemTCTOReporting originator="EMOC">
    <JobControlNumber>
    <EventId>052790038</EventId>
    <WorkcenterEvent>001</WorkcenterEvent>
    </JobControlNumber>
    <HomeEnterpriseLocationCode>7494</HomeEnterpriseLocationCode>
    <CurrentEnterpriseLocationCode>7494</CurrentEnterpriseLocationCode>
    <HostUnitDateAndTime>2006-02-23T19:29:37</HostUnitDateAndTime>
    <TransactionOrdinalDate>06054</TransactionOrdinalDate>
    <ComponentPosition>0</ComponentPosition>
    <HowMalfunctionCode>802</HowMalfunctionCode>
    <UnitsProduced>01</UnitsProduced>
    <StartTime>0800</StartTime>
    <StopDate>05200</StopDate>
    <StopTime>0805</StopTime>
    <CrewSize>6</CrewSize>
    <CategoryOfLaborCode>1</CategoryOfLaborCode>
    <ActivityIdentifierCode>02</ActivityIdentifierCode>
    <CorrectedByIMDSCDBUserId>GU03CW</CorrectedByIMDSCDBUserId>
    <CorrectiveActionNarrative>Test Test</CorrectiveActionNarrative>
    <InspectedByIMDSCDBUserId>GU03CW</InspectedByIMDSCDBUserId>
    <InspectionPassed>Y</InspectionPassed>
    <BypassDateEdits/>
    </EndItemTCTOReporting>
    </IMDSCDB>
    Thank you tsuji,
    Bill

  • Xml search for specific node/attribute

    Hi,
    I load an xml in as3 and need to find and output (as an
    XMLList) a specific node with a specific attribute (example:
    <xs:element name="abcd"> ), or at least find out its path
    (after, I would know what to do to get the XMLList). I looked at
    the XPath classes for Actionscript but the documentation is very
    poor and I did not see any method doing this. Could someone help me
    please? If no method exists, how can I loop through all the xml and
    test each node to see if it is the proper node I am looking for?
    thanks so much in advance for your help
    Pierrot

    You could do it this way, using the descendant accessor:
    var xml:XML =
    <data xmlns:xs="
    http://www.w3.org/2001/XMLSchema">
    <xs:element name="abcd">
    <tagA>hjfhsldf</tagA>
    <tagB>dummy stuff</tagB>
    </xs:element>
    <xs:sequence>
    <xs:element name="dd">
    <tagA>words</tagA>
    <tagB>dummy stuff too</tagB>
    </xs:element>
    </xs:sequence>
    </data>;
    var xs:Namespace = xml.namespaceDeclarations()[0];
    var nodelist:XMLList = xml..xs::element.(@name=="dd");
    trace(nodelist)
    If you need generic code that accounts for no namespaces, you
    can use
    something like this:
    var xs:Namespace = xml.namespaceDeclarations()[0];
    var nodelist:XMLList =
    (xs == null || xs == undefined)
    ? xml..element.(@name=="dd");
    : xml..xs::element.(@name=="dd");
    trace(nodelist)

  • Add node to a specific node in JTree

    I use the following TreePanel class to add node to the tree. My question is how to add a new node under
    a specific node which has been created before. In other words, how to get the path and identify the node.
    For e.g., I first loaded some raw data files and created the "raw data" node, later I need to load another file
    and create a new node under the "raw data" node. Each node is created by using user object. Any help is greatly appreicated.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    public class TreePanel extends JPanel {
      protected DefaultMutableTreeNode rootNode;
      protected DefaultTreeModel treeModel;
      protected JTree tree;
      public TreePanel() {
        super(new GridLayout(1,0));
        rootNode = new DefaultMutableTreeNode("Experiment");
        treeModel = new DefaultTreeModel(rootNode);
        tree = new JTree(treeModel);
        tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.setShowsRootHandles(true);
        JScrollPane scrollPane = new JScrollPane(tree);
        add(scrollPane);
      public JTree getTree(){
        return tree;
      /* Add child to the currently selected node. */
      public DefaultMutableTreeNode addObject(Object child){
        DefaultMutableTreeNode parentNode = null;
        TreePath parentPath = tree.getSelectionPath();
        if(parentPath == null){
          parentNode = rootNode;
        else{
          parentNode = (DefaultMutableTreeNode)(parentPath.getLastPathComponent());
        return addObject(parentNode, child, true);
      /* Add child */
      public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child){
        return addObject(parent, child, false);
      /* Add child */
      public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, Object child, boolean shouldBeVisible){
        DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(child);
        if(parent == null){parent = rootNode;}
        treeModel.insertNodeInto(childNode, parent, parent.getChildCount());
        if(shouldBeVisible){
          tree.scrollPathToVisible(new TreePath(childNode.getPath()));
        return childNode;
      /* Add child */
      public DefaultMutableTreeNode addObject(DefaultMutableTreeNode parent, DefaultMutableTreeNode child){
       if(parent == null){parent = rootNode;}
       treeModel.insertNodeInto(child, parent, parent.getChildCount());
       return child;
    }Thanks in advance!

    public static DefaultMutableTreeNode findNode(DefaultMutableTreeNode from, Object userObject) {
              if (userObject == null && from.getUserObject() == null) {
                   return from;
              } else if (userObject.equals(from.getUserObject())) {
                   return from;
              DefaultMutableTreeNode node = null;
              for (int i = 0; i < from.getChildCount(); i ++) {
                   node = (DefaultMutableTreeNode) from.getChildAt(i);
                   if (userObject == null) {
                        if (userObject == node.getUserObject()) {
                             break;
                   } else {
                        if (userObject.equals(node.getUserObject())) {
                             break;
                   node = null;
              if (node != null) {
                   return node;
              //Node not found
              //dig deeper
              for (int i = 0; i < from.getChildCount(); i ++) {
                   node = (DefaultMutableTreeNode) from.getChildAt(i);
                   if (!node.isLeaf()) {
                        node = findNode(node, userObject);
                        if (node != null) {
                             return node;
              //Not found
              return null;
         }     

  • Problem in table locking while running the parallel jobs (deadlock?)

    Hi,
    I am trying to delete the entried from a custom table. If I schedule the parallel jobs, I am getting the following dump while deleting the entries from table. This is happening for custom table ( in CRM system).
    Exception : DBIF_RSQL_SQL_ERROR
    And complaining that, deadlock occured. I am not sure what it is..
    Could you please help me out, how can we solve this issue?
    Thanks,
    Sandeep

    Hello Sandeep ,
    I would suggest you Record based  Lock Objects ,
    take a look at below link...to get a general idea..!
    <link removed>
    Hope it helps,
    Thanks and Regards,
    Edited by: Suhas Saha on Aug 19, 2011 11:27 AM

  • How to iterate to a specific node in Oracle ATS OpenScript

    Hi,
    I have recorded a script in Oracle ATS Open Script tool. I want to iterate back to a specific node after completing the first iteration. Is there any way to do that?
    I don't want to iterate back to first step again and again.
    Regards,
    Sahil
    Edited by: 1009073 on May 31, 2013 1:39 AM

    Hi, DeepuM,
    Thnxs fr this info,I've followed the step which was mentioned earlier in your posts..but i m getting error.
    here's my scenario : i have a lo-gin script node and two child scripts in RUN Section,i want to iterate only the lo-gin node.. hence i moved the child scripts to initialize section ended up with this error "Failure when running child script"
    kindly help.
    Thanks in Advance.
    Regards,
    Diane

  • JBoss cluster - call to a specific node

    Hi!
    is it possible to send a remotecall only to a specific node in the cluster?
    Simple example:
    I have three nodes in my cluster (A, B, C) and i want to send a call only to an object on node C. Node A and B shouldn't be involved in this call.
    Best Regards
    Hendrik

    Hi,
    Assuming "doc" is an XMLType variable containing your XML document, you can do :
    SELECT insertchildxml(doc, 'ROWSET', '@IS_SUCCESS', '1') INTO doc FROM dual;Slightly off-topic, but to add attributes to ROW elements, DBMS_XMLGEN can handle it for us provided we prefix column aliases with "@".
    For example :
    SQL> SELECT dbms_xmlgen.getXML('SELECT ''Hello!'' as "@msg" FROM dual') FROM dual;
    DBMS_XMLGEN.GETXML('SELECT''HE
    <?xml version="1.0"?>
    <ROWSET>
    <ROW msg = "Hello!">
    </ROW>
    </ROWSET>
    Edited by: odie_63 on 2 nov. 2010 12:50 - added remark on ROW attributes

  • Load Distribution Versus Parallel Jobs processing

    Hello,
    I would request feedback.
    In Industry Solutions - PS, for mass activity - Automatic Clearing run, there is an Technical Settings tab.
    This tab has Load distribution settings and an value that can be defined for Number of Jobs.
    If I put an value greater than 1, so many number of jobs gets executed in the background.
    I would request clarification on the following :
    1. What is its use / benefits of putting defining an automatic load distribution ?
    2. Does this setting equals the Config settings for IMG - Finnancial Accounting- Contract AR - Technical Settings - Prepare Mass.
    In here, we can set parallel jobs that can be initiated by providing an maximum number of jobs under the job control panel.
    Does this setting override Load distribution settings or vice-versa  OR IS this an different setting ?
    3. What is the difference between Load distribution versus parallel Jobs ?
    Any feedback, most welcome and appreciated.
    I am functional consultant and hence unable to distinguish between the two.
    I am not sure if this query needs to be posted here, but I have also posted the same in IS fourm too.
    Regards
    Bala
    email : [email protected]

    Hi Bala,
    In any Mass Activity you will find Technical Settings tab. There you will find Parallel Processing Object and Load Distribution. In Parallel Processing Object, you can select object according to Input depending upon which you will able to divide the job. For example, GPART is used when job have to divide depending upon Business partner. In Maintain Variants you have to create Variants.You have to give Variant name and value in either Interval length or Number of Intervals. Interval length will decide what is the maximum number of object will be processed in a single part. Number of Interval is the number which tells job will be divided in how many parallel process.
    For example, let you r running a parallel process for 1000 Business Partner.You choose GPART as object.Now if you put 200 in interval length it will divide job in 5 parallel process.If you put 10 in number of interval it will divide the job in 10 parallel process each of 100 Business partner.
    After creating variant, you use it in technical setting.
    Let u already define variants which divide the job in 30 but you want maximum number of parallel process will be executed at a time is 6.Then put 6 in Number of jobs field in automatic load distribution.
    Hope this can able to clear your question. Still if have any doubt feel free to ask me.
    Thanks and regards,
    Jyotishankar Dutta

Maybe you are looking for

  • How do I use Disk Utility to help install Mountain Lion after many failed attempts?

    I tried to install Mountain Lion from an App onto my MacBook. First it said that my disk was damaged to i tried to repair it. Didn't work. Then it said I didn't have enough room to install Mountain Lion. Then I tried to restore Lion. Didn't work. The

  • Kernel panics at boot--starts after 10 restarts--weird AHT results

    I'm a long-time Mac user although I don't have as much OSX experience as I did with 6,7,8 and 9. I have a just-over-one-year-old (of course) iMac G5 20" 1.8ghz. In the past few weeks it started suddenly darkening the screen and display a message sayi

  • DVD media drive cannot detect DVD\s and CD's

    don't know why and how my dv6725ee DVD media drive doesn't detect some blank imation DVD's and CD's whereas some genuine games DVD's and genuine software were able to read. (tried fifa 2008 and microsoft office 2007 small business) they are running w

  • IPhoto 6 - photos there, but not there!

    Hi some help would be appreciated: After some major issues, I had to wipe my HD, reinstall OSX 10.6 and then restore my system from Time Machine. Things seemed to be ok at first.  But now when I open iPhoto 6, although the file names of all my photos

  • Distribution of Costs from CCA to CO-PA

    Hi All, Can someone please help me find a solution to the following scenario? There is a requirement to distribute costs from CCA to Cust/Prod level in CO-PA. *The cost allocations factors can only be provided at the Customer Group/Product level. *Us