Problem in Update using last value of a duplicate row

Hi,
I have 2 values in a table TEST
10 ABC
10 DEF
I want to get the last value i.e 10 DEF
I want the last value i.e 10 DEF to update in the table TEST1 which has value 10 XYZ.I want to update with 10 DEF
I have tried using :
with t
as
select 10 no, 'ABC' val from dual
union all
select 10 no, 'DEF' val from dual
select no, val
from (
select no, val, row_number() over(order by val) rno, count(*) over() cnt
from t)
where rno = cnt
But i got the last row of the duplicate values but how to update the last value into TEST1
Any help will be needful for me.

Just update it
update test1 t
   set val = (select val
                from (select no, val, row_number() over(order by val) rno, count(*) over() cnt
                        from test) t1
               where rno = cnt
                 and t.no = t1.no)
where exists(select null
                from (select no, val, row_number() over(order by val) rno, count(*) over() cnt
                        from test) t1
               where rno = cnt
                 and t.no = t1.no)

Similar Messages

  • How can I have a waveform graph (or chart) updated using the value propertynode without loosing previous data plots?

    I want to have a master waveform graph (or chart) capable of displaying data via the value property node. There are several value nodes in a flat sequence structure. The problem is that the graph (or chart) doest keep the previous data and does display just the very last value property node. Can anybody help me? 

    A graph does not "keep" any data. It is strictly an indicator which displays the most recent values written to it. 
    A chart has an internal buffer, called, Chart History which retains previously written data until the buffer is full. Then it removes the oldest data when new data is sent to the chart.
    1. Sequence structures are almost never needed in good LabVIEW programs. They defeat dataflow and limit parallelism.
    2. Value property nodes (and local variables) should only be used under special circumstances and a sequence structure is not one of those.
    A state machine with shift registers or a Producer/Consumer architecture are more likely to be better ways of doing what you are trying to do and can be implemented without sequence structures or Value property nodes.
    Lynn

  • Problem while updating the forecast value in m.master by direct input menth

    Hi All
      Good Day
      I am updating the forecast value in material master by direct input method.
    my program is working fine when I am running it online.
    but when i am runnig in back ground I am getting one error which is mentioned below
                                                                                    Job ZM_OPTIMIZA_UPLOAD: Data does not match the job definition; job terminated    BD    078     E    
    Please anyone can help ne in above case.
    Thanks in advance.
    Cheers
    Vallabhaneni

    Hi Hakim
    How are you
    Thanks for your valuable suggestion.
    I am executing my program in background with bmv0 transaction with variant, in development I can run this job in background with out any logical errors but in QA I am getting errors.
    Can you please help me in the above case.
    In Bmv0 transaction first I defined the job and in  program rmdatind (execute) screen first I mentioned the Max. no of logical errors as 500 and Transactions per commit unit as 500 and I run the program in background in bmv0 transaction and I am getting the message background job terminated immediately
    Because of this again I changed the Max. no of logical errors 500 to 99999 and transaction per commit unit 500 to 999999 and then i scheduled my program in background.
    Alomost it ran for 27 hours and then it has given the message background job terminated.
    Job log entries are as follows.
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040840; material number SUJ82J8400; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040840: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040841; material number SUJ84G3001; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040841: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040842; material number SUJ84G3002; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040842: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040843; material number SUJ86G0100; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040843: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040844; material number SUJ86G0300; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040844: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040845; material number SUJ86G0900; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040845: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040846; material number SUJ86G9600; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040846: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040847; material number SUJ86G9601; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040847: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:19:46  Transaction 0000040848; material number SUJ86J0000; error gravity E       
    22.12.2008  11:19:46  Transaction 0000040848: Taxes for sales org.  cannot be transferred       
    22.12.2008  11:19:46  A system error has occurred while locking                                 
    22.12.2008  11:20:54  Transaction 0000040848 completed Mat. no.  No. of log. errors 0000040848  
    22.12.2008  11:21:30  ABAP/4 processor: TSV_TNEW_PAGE_ALLOC_FAILED                              
    22.12.2008  11:21:30  Job cancelled      
    I know it has taken long time to process the job  because of I changed the transactions per commit unit (500 to 999999) it kills the system
    But I am supposed to provide some number < 999999 in transactions per commit unit
    actually I haven't tried like I said above < 999999 because i don't have any hopes.
    Please look at this problem and help me in this case.
    Thanks in advance.
    Vallabhaneni

  • Use last value if new value not avaliable after a certain amount oft time

    Hey guys,
    So I want the loop below to execute every half second,
    however the "read power in" VI takes around 5 seconds to return a value, which means the loop can only operate every 5 seconds (it waits on a value from the "read power in" VI.
    Is there a way to tell the program to use the last value of power returned from "get power" every 0.5 seconds if no new value has been returned?

    Ahhh, I see why you did this.  I thought that diagram looked familiar.  You posted this question: http://forums.ni.com/t5/LabVIEW/Search-string-value-to-return-integer/td-p/1330516
    You need to use a USR (uninitialised shift register) to remember what the last string was that was not processed and prepend it to the last one. Attached is an example.  The inner loop breaks up the string but remembers where it was broken the last time to allow it to spit out the next part of the string on it's next call.  The outter loop reassembles the string and only spits it out if it has gotten a full string.
    A
    Attachments:
    read partial till complete.vi ‏29 KB

  • Problems after updating to last Pro Apps version

    Hi.
    I have installed recently the last Pro Apps update and after that no one of the Final Cut Studio applications open.
    I heard a long ago that it happened when you have a "pirate" serial number, but I've got a legal copy with a valid sn, so is not related to that.
    I have tried to remove the Final Cut Studio System ID for FCP to ask me for the serial number again, but it doesn't work.
    I have tried to remove all the files from FCP ( including all on user's preferences and on hard disk's Library folder ) and reinstall the application, but it doesn't work.
    What else I can do? I don't want to reinstall the whole system because there's something wrong at the last Pro Apps update.
    Thanks in advance.
    Tomtzart

    The new system 10.4.10 update has been a big hassle for me and nothing but trouble. This started with a couple of severe system crashes, the computer would not restart until I disconnected all peripherals. I then discovered that there were problems with Aperture crashes when I did some research on MacFixit to find out what had happened with my computer.
    I then decided to try to see if Aperture would open, and sure enough, it crashed, along with all the other Pro Apps. So, again, I did some research and found the following information at Mac OS Hints. I am actually on a Power PC, not an Intel Mac.
    http://forums.macosxhints.com/archive/index.php/t-55278.html
    SOLUTION:
    The solution to this problem (snip), is to get the Universal version of ProKit.Framework (v3.1.1) either from your Intel-based Tiger install DVD (via pacifist [Google it]) that came with your Intel-mac, OR download it from the following URL:
    http://www1.chapman.edu/~wayla100/ProKit.zip
    BE SURE TO REPAIR PERMISSIONS AFTER REPLACING/INSTALLING THE ProApp.Framework file into /System/Library/PrivateFrameworks
    I unzipped the file, and took the offending folder out of the PrivateFrameworks Library and then replaced it with the equivalent folder which I had unzipped. After having repaired permissions as instructed, I have launched Aperture, and then I opened the Aperture Library file, and it is now reloading all my pictures.
    I assume that this procedure has corrected the issue with all the other Pro Apps.
    I hope this is as much use to you as it was to me.
    Message was edited by: hilofoz

  • Condition type value updation using characteristic value in sales order

    Hi Experts,
    We are implementing SAP for one of our Spain client. In that one of the Legal requirements is, whenever they are selling the finished products to domestic customers who contain OIL as one of the component then, some additional cost needs to be calculated and collected from customer and which needs to be paid back to Spain Government every month on Region basis.
           If OIL is not a component to produce the finished product then, not required to charge the customer additionally.
    The OIL content used to produce every finished product will vary based on product characteristic value. Meaning, for some finished product the OIL used will be 2.2 KG and for some products it will be 3.5, 4.3 KG and etc.
    Since various combinations of products are available for the client, during sales order creation we are planning to update some special characteristic which the data flow from u201CVariant Tableu201D. In the variant table we are going to maintain the OIL Quantity required making finished product.
    But we are not sure how to activate a new condition type with the value fetched in the special characteristic. This new condition type needs to be activated based on this characteristic value and multiplied with total order quantity and price to charge from customer.
    Example, the special characteristic fetched the value of 2.2 KG based on variant table. Total Order quantity is 10 PC and charge is 0.06 EURO per KG. in this case, (2.2 x 10 ) x 0.06 EURO = 1.32 EURO
    I need the expert opinion how to activate the new condition type based on characteristic value and achieve the above requirement.
    Thanks in advance.
    Warm Regards,
    VEL

    Hello,
    I have replicated the whole requirememt in IDES and getting the price calculation as needed but the only issue with the Conversion factor for the condition type. Either you need to maintian the conv factor in material master or need to enter manually for the condition type in SO. Some how you have to maintain the conversion factor to calculate the price for the condition type in different unit.
    For easy of understanding Lets make the whole requirement in 2 parts
    Part - 1
    Oil qty calculation. For convenience sake I have taken oil qty also in TO
    1) Created a num char OIL_QTY1 with length 9 and decimal places 5 and UOM as TO
    2) Created Variant table to infer the OIL qty in TO per piece of finished prod ( This oil qty data may be depends on various factors). For certain Finished products the oil qty may be 0 or blank
    3) Created a REF char SO_QTY  to pull the SO qty to configuration and add this char in class 300(Table:VBAP,Field :KWMENG)
    4) Created another char SO_OIL_QTY  (Num with length 9 and decimal places 5 and UOM as TO)
    5) Created a PROCEDURE say PROC_SO_OIL_QTY with code
    *$self.SO_OIL_QTY = $self.OIL_QTY1 * $self.SO_QTY*
    6) Create another PROCEDURE as mentioned earlier with modified code
    $SELF.A_VARCOND = 'TEST_001' if OIL_QTY1 specified,
    $SET_PRICING_FACTOR ($SELF,A_VARCOND,'TEST_001', SO_OIL_QTY)
    Note: Maintain proper seq of the procedures in profile. The Qty cal proc should be before the price related procedures.
    PART-2
    1) For the condition type maintained 60 EUR per TO (0.06 EUR per KG)
    Now if you create SO for the Finished product of 10 PC
    the Char values will be
    OIL_QTY1  = 0.00022 TO (inferred from Variant table th proc)
    SO_QTY    = 10
    SO_OIL_QTY = 0.0022 TO
    Get into conditions tab
    Here Condition type ZSIG will be displayed as error with Amount 60 EUR per TO and condition value will be blank. Just enter value 1 in the col NumC and CCon fields.
    Now the Condition value will appear as 1.32 EUR.
    Hope this gives some more clarity
    Regards
    Brahmaji D

  • Problem while updating the forecast value in m.master by direct input metho

    Hi Hakim
    Thanks for your prompt response.
    Yeah, I can see the same in St22 as you said, If I contaced the basis team for memory extension
    is my problem can get solved?
    and I will change the Transactions per commit unit to 100 again.
    Is there anything else is causing the background job termination
    really I couldn't find anything wrong in my program and it is running successfully in development client
    and it is giving the message completed and
    Job name Last update Current status
    ZM_OPTIMIZA_FORECAST 23.12.2008 09:18:47 C Completed: job executed w/o logical errors
    ZM_OPTIMIZA_FORECAST 19.12.2008 11:22:31 C Completed: job executed w/o logical errors
    ZM_OPTIMIZA_FORECAST 19.12.2008 11:21:20 C Completed: job executed w/o logical errors
    and the job log is as follows in development client.
    23.12.2008 09:18:47 The field MARA-FORMT is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-KUNNR is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-MEINS is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-PRZUS is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 No changes made
    23.12.2008 09:18:47 Transaction 0000000004; material number 2210017320; error gravity W
    23.12.2008 09:18:47 Transaction 0000000004: Taxes for sales org. cannot be transferred
    23.12.2008 09:18:47 Not possible to transfer tax data
    23.12.2008 09:18:47 The field MARA-BEGRU is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-BMATN is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-FERTH is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-FORMT is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-KUNNR is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-MEINS is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-PRZUS is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 No changes made
    23.12.2008 09:18:47 Transaction 0000000005; material number 6777295J01; error gravity W
    23.12.2008 09:18:47 Transaction 0000000005: Taxes for sales org. cannot be transferred
    23.12.2008 09:18:47 Not possible to transfer tax data
    23.12.2008 09:18:47 The field MARA-BEGRU is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-BMATN is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-FERTH is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-FORMT is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-KUNNR is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-MEINS is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 The field MARA-PRZUS is not ready for input and was therefore not initialized
    23.12.2008 09:18:47 No changes made
    23.12.2008 09:18:47 Transaction 0000000005 completed Mat. no. T6777295J01 No. of log. errors 0000000000
    23.12.2008 09:18:47 Data transfer (job 00000007) completed
    23.12.2008 09:18:47 No logical (business) errors occurred
    23.12.2008 09:18:47 Job finished
    But in QA it is behaving totally different like i said in my earlier threat .
    Thanks
    Vallabhaneni

    Hi Nani,
    Dont open multiple threads for the same question. Im requesting you to close your threads similar to this thread.Keep only one thread open for the same issue.
    Please read the Rules of Engagement in SCN.
    Regards,
    Hakim

  • Problem with updating net price value through PORDCH Idoc

    Hi All,
    I have a ABAP program which calls the function module BAPI_PO_CHANGE to update the line item details using an idoc.
    During this change it is updating Limit values in PO bot not the net price.
    And the Idoc status is having message as BAPI Change has been done successfully instead of "PO number changed".
    Any suggestions to solve this issue.
    Thanks,
    Spandana

    Please post the details of the application release, database version and OS.
    Please see these MOS docs.
    Getting "ORA-20001: The primary key specified is invalid" Error Using HR_ASSIGNMENT_API.UPDATE_EMP_ASG_CRITERIA API [ID 737145.1]
    APP-PAY-07220: The primary key specified is invalid - ERROR Received Creating GRE/Legal Entity In New Business Group [ID 849754.1]
    Error Occurs While Hiring Applicants APP-PAY-07220: The Primary Key Specified Is Invalid [ID 1084464.1]
    Terminated Employee Scorecards Error's: Ora-20001: The Primary Key Specified Is Invalid [ID 859315.1]
    Hr_assignment_api.Update_emp_asg_criteria Gives Ora-20001, Ora-06512 [ID 334491.1]
    PERWSTEM Termination 'APP-PAY-07220 The Primary key specified is invalid' and Database 11.1.0.7.0 [ID 1263357.1]
    Error 'APP-PAY-07220: Primary Key Specified Is Invalid' When Attempting to Process Open Life Event [ID 567224.1]
    Republishing Performance Management Plan (PMP) Fails with Error: ORA-20001: The primary key specified is invalid [ID 956234.1]
    Thanks,
    Hussein

  • Toplink 11.1.1.1.0 Locking problem during update using ServerSession

    Hi,
    I m using toplink as ORM tool in my project. I have a scenario wherein I m using ServerSession and acquiring UnitOfWork. I do locking on the orm entity using following code.
    ExpressionBuilder builder = new ExpressionBuilder();
         Expression expr = builder.get("id").equal(id);
         Employee employee = (Employee )uow.readObject(Employee .class, expr);                    
    try {
              uow.refreshAndLockObject(employee, ObjectLevelReadQuery.LOCK_NOWAIT);
         } catch (Exception e){
              throw new LockedException(); //Custom exception
    The execution fails with the following error details.
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070428)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01747: invalid user.table.column, table.column, or column specification
    Error Code: 1747
    Call:SELECT ID, UDF_VALUE_20, UDF_VALUE_21, CATEGORY FROM EMPLOYEE WHERE (ID = 20001) FOR UPDATE OF * NOWAIT
    Query:ReadObjectQuery(com.ofss.elcm.domain.ge.Liability)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:290)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:581)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
         at oracle.toplink.publicinterface.Session.executeCall(Session.java:728)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectOneRow(DatasourceCallQueryMechanism.java:501)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRowFromTable(ExpressionQueryMechanism.java:862)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectOneRow(ExpressionQueryMechanism.java:837)
         at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:415)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:811)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:836)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2604)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
         at oracle.toplink.publicinterface.Session.refreshAndLockObject(Session.java:2632)
    However if I load the UnitOfWork using DatabaseSession it works fine and build the query like this.
    SELECT ID, UDF_VALUE_20, UDF_VALUE_21, CATEGORY  FROM EMPLOYEE WHERE (ID = 20001) FOR UPDATE NOWAIT
    Thanks in Advance.
    Srini

    Hi Chris,
    Yes you are right, databasePlatform is set in the sessions.xml. However I have created two sessions.xml one for database session and the other for server session. In both the cases the file content is same except for session name.
    database-session.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--<?xml version="1.0" encoding="Cp1252"?>-->
    <toplink-sessions version="11g Release 1 (11.1.1.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>database-session</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>finest</log-level>
    </logging>
    <primary-project xsi:type="xml">META-INF/employee.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <!--<external-connection-pooling>true</external-connection-pooling>
    --><!-- Thru Junit Testing -->
         <user-name>Test1</user-name>
                   <password>Test1</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    <preallocation-size>100</preallocation-size>
    </default-sequence>
    </sequencing>
    <!-- Thru Junit Testing -->
                   <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                   <connection-url>jdbc:oracle:thin:@testDB:1521:ORCL</connection-url>
    <!--<datasource lookup="string">jdbc/TestDataSource</datasource>
    --></login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    server-session.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--<?xml version="1.0" encoding="Cp1252"?>-->
    <toplink-sessions version="11g Release 1 (11.1.1.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>server-session</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>finest</log-level>
    </logging>
    <primary-project xsi:type="xml">META-INF/employee.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <!--<external-connection-pooling>true</external-connection-pooling>
    --><!-- Thru Junit Testing -->
         <user-name>Test1</user-name>
                   <password>Test1</password>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    <preallocation-size>100</preallocation-size>
    </default-sequence>
    </sequencing>
    <!-- Thru Junit Testing -->
                   <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                   <connection-url>jdbc:oracle:thin:@testDB:1521:ORCL</connection-url>
    <!--<datasource lookup="string">jdbc/TestDataSource</datasource>
    --></login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    And I m loading the xmls uring singleton java class.
    import java.io.IOException;
    import oracle.toplink.exceptions.TopLinkException;
    import oracle.toplink.sessions.DatabaseSession;
    import oracle.toplink.threetier.ServerSession;
    import oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader;
    import oracle.toplink.tools.sessionmanagement.SessionManager;
    * This class represents the DBSessionManager. This class will be responsible
    * for creating the server session and multiple client session. The server session
    * would be loaded from sessions.xml file and the client session will be created
    * on the server session but the client session would use the external connection
    * to make the transactions, it would not use the connection that is being created
    * during loading the server session.
    * @author
    public class DBSessionManager {
    * This attribute will hold the value for DBSession Manager.
    private static DBSessionManager instance;
    * This attribute will hold the value for session file path
    private static final String SERVER_SESSIONS_XML = "META-INF/server-sessions.xml";
    private static final String DATABASE_SESSIONS_XML = "META-INF/database-sessions.xml";
    private static final String DATABASE_SESSION = "database-session";
    private static final String SERVER_SESSION = "server-session";
    * This attribute will hold the value for session file
    private String serverSessionConfigLocation = SERVER_SESSIONS_XML;
    * This attribute will hold the value for session file
    private String databaseSessionConfigLocation = DATABASE_SESSIONS_XML;
    * This attribute will hold the value for session name.
    private static final String DEFAULT_SESSION_NAME = "default";
    * This attribute will hold the value for session name
    private String sessionName = SERVER_SESSION;
    private boolean standalone = false;
    private static Session toplinkSession = null;
    * This is attribute which tell the session type<br>
    * Supported values are
    * <li> DATABASE is DatabaseSession </li>
    * <li> SERVER is ServerSession </li>
    private static final String TOPLINK_SESSION_TYPE = "TOPLINK_SESSION_TYPE";
    * Default Constructor.
    * This constructor will create the server session.
    //     private DBSessionManager() {
    // // setSessionType();
    //     toplinkSession = new Session();
    // if(standalone) {
    // toplinkSession.setDatabaseSession(buildDatabaseSession());
    // } else {
    // ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    // toplinkSession.setServerSession((ServerSession) buildServerSession(this.configLocation, this.sessionName, classLoader));
    private DBSessionManager() {
    // setSessionType();
    toplinkSession = new Session();
    toplinkSession.setDatabaseSession(buildDatabaseSession());
    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    toplinkSession.setServerSession((ServerSession)buildServerSession(this.serverSessionConfigLocation, this.sessionName,classLoader));
    * This method will return the instance of DBSessionManager class.
    * @return
    public static DBSessionManager getInstance() {
    if (instance == null) {
    synchronized (DBSessionManager.class) {
    if (instance == null) {
    instance = new DBSessionManager();
    return instance;
    public boolean isStandalone() {
    return standalone;
    * This method will load the server session from the sessions.xml file.
    * @param configLocation
    * @param sessionName
    * @param sessionClassLoader
    * @return ServerSession
    * @throws TopLinkException
    private ServerSession buildServerSession(String configLocation,
    String sessionName,
    ClassLoader sessionClassLoader) throws TopLinkException {
    ServerSession serverSession =
    (ServerSession)SessionManager.getManager().getSession(new XMLSessionConfigLoader(SERVER_SESSIONS_XML),
    SERVER_SESSION,
    // Session name
    this.getClass().getClassLoader(), false, // shouldLoginSession
    false, // shouldRefreshSession
    true) // shouldCheckClassLoader
    serverSession.login();
    return serverSession;
    * Use to get server session
    * @return ServerSession
    private ServerSession getServerSession() {
    return toplinkSession.getServerSession();
    * This method is used to release client session. The client session should<br>
    * be released so that the server does not hang refusing new client session<br>
    * requests. <br>
    * It has been observed in local setups that the server hangs after firing<br>
    * 30 to 40 requests even in a single thread if the client session is not<br>
    * released.
    * @param clientSession
    public void releaseClientSession() {
    toplinkSession.releaseClientSession();
    private DatabaseSession buildDatabaseSession() {
    XMLSessionConfigLoader loader =
    new XMLSessionConfigLoader(DATABASE_SESSIONS_XML);
    SessionManager sessionManager = SessionManager.getManager();
    DatabaseSession session =
    (DatabaseSession)sessionManager.getSession(loader, DATABASE_SESSION,
    DBSessionManager.class.getClassLoader(),
    true, true, true);
    // SessionLog log = new TopLinkLog();
    // Do not change the log level here. SessionLog.FINE logs DML statements
    // and few other 'nonsenses'. DML statements are enough to debug an
    // issue. All TopLink logs are logged as debug messages by LogUtil.
    // log.setLevel(SessionLog.FINE);
    return session;
    public Session getSession() {
    return toplinkSession;
    * This method read the session type from elcm.properties and set the value for standalone attribute.<br>
    * If the session is type of database the value is true, if the session is server session the value is false.
    private void setSessionType() {
    try {
    String sessionType =
    ELCMApplicationGlobals.getInstance().getProperty(TOPLINK_SESSION_TYPE);
    if (DATABASE_SESSION.equalsIgnoreCase(sessionType)) {
    standalone = true;
    } else if (SERVER_SESSION.equalsIgnoreCase(sessionType)) {
    standalone = false;
    } catch (IOException e) {
    e.printStackTrace();
    Please review and let me know if I m missing anything or wrongly implemented.
    Thanks,
    Srini

  • Problem in Update using STREAMS in Ora 10g EE

    Hi
    I am using Oracle 10g Enterprise Edition for replicating datas after failover occurs in DB
    I had followed the steps in below URL..
    http://blogs.ittoolbox.com/oracle/guide/archives/oracle-streams-configuration-change-data-capture-13501
    The replication is achived using streams.
    INSERT,DELETE operations working fine without any issue. But UPDATE operation is not replicated immediately.
    I did UPDATE and gave COMMIT, no replication. Again I did UPDATE and gave COMMIT, now only it updates the Streams table.
    For every UPDATES it needs two times? Why? How to solve this?
    Or Any other URL which gives working examples of Streams in 10g..
    Any help regard this highly appreciated..

    Thanks for ur reply..
    There is no specific reason to use STREAMS..
    I have to replicate the data during my properity database stated up.
    We already discuss with this topic
    Data Replication in after downtime
    Instead of using Triggers or procedure, i have to use anyone of the technologies in Oracle 10g for DataReplication..
    Can you give me more info like advantages of using DataGuard or other techologies in Oracle 10g EE .

  • Having problems reading checkbox using $(item).value

    Is this the correct way to get the value of a checkbox using javascript
    var rem = 'P525_REMOVE_TEST';
    var isRem = $x(rem).value;
    alert(isRem);
    The checkbox return value is 'YES'
    I am getting undefined. What am I doing wrong?
    Howard

    Hi,
    Check box will return data only if it is checked otherwise it will return null.
    Put this code in "HTML Form Element Attributes" of your check box
    onchange="if (this.checked ) { alert(this.value);} else {alert('not checked')};"Regards,
    Manish

  • How can I make an Equation apply to an entire column, but only use the values in the specific rows?

    I am working on a research project using Numbers 09 and have columns for values that require me to use formulas using values in other columns. Becuase I am lazy and have 180 rows of data, I would like to find a way to have a formula apply to an entire column so that I don't have to go row by row inputting the formula.
    Essentially, I want to be able to have N(X)=F(X)+G(X). Where X is the row number. Is this possible?
    The real formula I want to have is (4*(F(X))^2)/G(X)
    Thanks! 

    Place this formula in your chosen column in the first row containing data in columns F and G.
    =(4*F^2)/G
    Press enter to confirm the entry. The result will appear in the cell.
    Click (once) on the cell containing the formula.
    Shift Click on the cell in the same column on the last row containing data in F and G to select all cells between. .
    Go Insert > Fill > Fill down.
    Done.
    Regards,
    Barry

  • How to use simple values services for multiple rows ina table

    Hi Frnds...
    As per my requirment i need to use SVS for multile rows in a table.
    The coding goes like this for getting single attribute which is directly under root context.
    objSimpleValueSetCurr = wdContext.getNodeInfo().getAttribute("ctx_attribute");
    (this is only for context attribute directly placed under root context in the view controller.)
    We need to use value node and a value attribute inside this node. And retrieve the same. so need help regarding the code changes.
    Regards,
    Sudeep

    Hi ,
    I had tried out your suggestion. Its not working.
    The code goes like this, but the data is not getting populated.
    "controller_curr" is the value attribute  under the node "InitTable" in the controller which is further mapped to view controller with the same structure.
    The data is geting printed through the message manager just before the line
    divSMT.put(currency,currency); in this code, at the end.
    But "divSMT.put" is not able to populate the data.
    _________START________
    public void currency( )
        //@@begin currency()
              IWDMessageManager msg = wdComponentAPI.getMessageManager();     
              ISimpleTypeModifiable objSimpleTypeCurr = null;
              IModifiableSimpleValueSet objSimpleValueSetCurr = null;
              String currency=null;
              String bandg = null;
              Z_Bapi_Get_Curr_Rate_Input authCurrDet = null; //for FCURR
        Try
    authCurrDet = new Z_Bapi_Get_Curr_Rate_Input();
                         wdContext.nodeZ_Bapi_Get_Curr_Rate_Input().bind(authCurrDet);
                              wdContext.nodeZ_Bapi_Get_Curr_Rate_Input().currentZ_Bapi_Get_Curr_Rate_InputElement().modelObject().execute();     
    IWDAttributeInfo  objSimpleValueSetCurr1 = wdContext.nodeInitTable().getNodeInfo().getAttribute("controller_curr");
    ISimpleTypeModifiable countryType = objSimpleValueSetCurr1.getModifiableSimpleType();
    IModifiableSimpleValueSet divSMT = countryType.getSVServices().getModifiableSimpleValueSet();
    int sizeofCurrencyFCURR = wdContext.nodeOPCURROutput().nodeIt_Curr_Rate().size();
    msg.reportSuccess("SizeofCurrency FCURR : "+sizeofCurrencyFCURR);
    for(int i=0;i<sizeofCurrencyFCURR;i++)
    currency = wdContext.nodeOPCURROutput().nodeIt_Curr_Rate().getIt_Curr_RateElementAt(i).getFcurr();
    msg.reportSuccess("Currency : "+currency);
    divSMT.put(currency,currency);
         catch(Exception e)
    //@@end
    _________END________
    Please look into the issue.
    Regards.

  • Downloading updates using Satellite broadband

    I have recently moved "out bush" and now have to use a Activ8 satellite connection. When downloading updates I get a message that the digital signal is incorrect and may have been tampered with or corrupted since being signed by Apple. Whenever I return to the city I have no problem downloading updates using cable broadband. The satellite company were unable to assist. It would be great if anyone can suggest what the issue may be and a solution.

    Does the satellite broadband service provider have a support website with user discussions such as these? Fellow users are generally much more helpful than tech support! Also have you done an internet search as well?
    A quick search turned this up:
    http://forums.whirlpool.net.au/forum-replies-archive.cfm/1102830.html
    http://forums.whirlpool.net.au/forum-threads.cfm?f=67
    Good luck,
    Steve M.
    Message was edited by: Steve M.
    Message was edited by: Steve M.

  • Problem using default value of report parameter 1 to validate parameter 2 passed in to report

    I am having a problem with an SSRS report using the default value of report parameter 1 to validate parameter 2 passed in to report (via C#) instead of using the value of parameter 1 that is also passed into the report.  Here are the
    simplified details:
    Using SSDT, SQL Server 2008 R2
    SSRS report has 2 parameters:
    P1 -- text, hidden, default value 'R1', ... front-end C# code can pass 'R2' or 'R1'
    P2 -- text, allows multiple values, list of available values provided by stored procedure (sproc_list) that takes P1 value as a parameter.  Hence, sproc_list either provides a list for P1 = 'R1' or P1 = 'R2'.
    List for P1 = 'R1' is 'A', 'B', 'C'
    List for P1 = 'R2' is 'A', 'B', 'D'
    Values for P1 and P2 can be passed in via C# to the report.
    The C# front-end displays 2 report choices to the user, R1 and R2, where both choices call the same RDL; but choice R1 passes in 'R1' for P1, and the choice R2 passes in 'R2' for P1.
    Upon a users 1st time use of the report no parameters are passed in.  Then when the user exits the report, the parameter value for P2 that was chosen is saved off to a file for R1 or R2, and used the next time the user selects the report.
    Everything always works fine for report R1 since the default value for P1 is 'R1'.
    When R2 is chosen and the user selects 'D' as the value for P2, runs the report, then exits, the P2 value of 'D' for R2 is saved to a file.  When the user returns the next day to run report R2, 'R2' is passed for P1, and 'D' is passed for P2.
    This is when the problem occurs.  The value of 'D' for P2 is validated against a list generated for P2 based on the default value of 'R1' for parameter P1.  Hence, SSRS considers 'D' an invalid value for P2 and blanks out the P2 parameter. 
    The user can then use the drop down list for P2 and choose 'D', but this defeats the purpose of saving the parameter values to be used the next time.
    Why is the stored procedure that provides a list of available values for parameter P2 using the default value of 'R1' for parameter P1 instead of using the value of 'R2' passed into the report for parameter P1?

    Hi Tom,
    Sorry for my delay.
    If I understand correctly, you have two parameter in your report. It is a couple of cascading parameter. If we have choose ‘R1’ of P1, the P2 values is A, B, C. ‘R2’ of P1, corresponding P2 values is A, B, D. What your requirement is to save the end use
    select option of these two parameters.
    In SSRS, if we have configure the parameter with default value. When we run the report, the parameter will fill with the default value to filter data. If we want to save the last status we are render the report, we need to update the default value of P1.
    If we are query the default value from database, if possible, we can
    update the database try to resolve the issue.  Alternatively, we can set the dynamic default value for the parameter.
    Hope this helps.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • Tried to upgrade to iTunes 10.7, got error 7 (windows error 5). How do i fix this?

    Tried to upgrade and install the latest version of iTunes, 10.7 and received an error after install process. Error states that itunes was not installed properly, and a reinstall is necessary. Shows Error 7 (Windows error 5) in the message. No matter

  • Problem with my iPod Touch

    Every time I tried to play music or an app my iPod would crash, so I tried restoring it, and backed it up, but it wont finish restoring, and says I need to insert a disk to complete the installation, which I don't have. What can I do to fix this?

  • IE 11 Temporary Internet Files Settings

    Hello! I want to set IE settings for everyone in my company to the desired goal. This is the desired goal. Open IE. Tools -> Internet Options -> General -> Settings. I want under Temporary Internet Files: Check for newer version of stored pages to be

  • Sun-cmp-mappings.xml exists but has invalid contents: getSchema() == null

    Can anyone help please! what this error means by invalid contents: getSchema() == null when I try to deploy or veryfy, this is what I get: deployment started : 0% Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJ

  • Color consistency printing in Aperture 2.1, Epson R2880

    I just got a new Epson R2880. After a lot of initial test printing, looking there, reading that, I have come to the conclusion that Aperture has a major issue with color management printing from it- I have been reading others with Epson R1800, R1900,