Adding RAM to Servers in the pool, manager doesn't see the new value.

We recently updated all of the servers that make up our OVM Server Farm from 8G to 16G however when I click on one of the servers in the pool using the Manager it still displays the old value of 8G. One way we found to update the value was to delete and add the server back into the pool. Once we did that it displayed the new value, however I can not use that on the Server Pool Master as it will not allow me to delete the pool master node.
I tried using the Metalink document 467663.1 to assign one of the other servers to be the pool master, but the documentation seems flawed.
When following Scenario 3 you pretty much move all VM off the new and old pool master, remove the server you want to be the new pool master then edit the existing pool master's entry to be the new servers IP/hostname. However when I attempt to edit the server pools information the server name/IP is not editable only the machine name is.
Does anyone know of an easier way to update the RAM listing for the server pool master? Or is there updated documentation for moving the server pool master? I'm using version 2.1.5

You may also delete the whole Server Pool, taking care NOT selecting the various "ALSO DELETE FILES FROM REPOSITORY" options.
I repeat, DO NOT SELECT THOSE CHECKBOXES.
If you have running VMs that you cannot shutdown during this process, ticking the "force Server Pool Delete" box will do the trick, leaving all the VMs normally running and working in the background.
After that, you can recreate the Server Pool, add the correctly configured Servers to it (NOW YOU'LL SEE ALL THE PHYSICAL RAM YOU'VE ADDED), and finally manually discovering all the running VMs already in the repository.
To do this, use the "Resources --> Virtual Machine Images --> import --> Select from Server Pool (Discover and register)" option.
Remember to APPROVE each discovered VM to see it back happily running in the main menu.
Finally, you can eventually manually discover all the Templates you may have had in the Repository before starting this process.
To do this, use the "Resources --> Virtual Machine Templates --> import --> Select from Server Pool (Discover and register)" option. You'll have to APPROVE in the end, too.
This is just a workaround, I agree that there should be a "refresh" option for Servers Configurations, or at least a way to remove and re-add the Server Pool Master too.
HTH

Similar Messages

  • How do the application servers connect the new database after failing over from primary DB to standby DB

    How do the application servers connect the new database after failing over from primary DB to standby DB?
    We have setup a DR environment with a standalone Primary server and a standalone Physical Standby server on RHEL Linux 6.4. Now our application team would like to know:
    When the primary DB server is crashed, the standy DB server will takeover the role of primary DB through the DataGuard fast failover. As the applications are connected by the primary DB IP before,currently the physical DB is used as a different IP or listener. If this is happened, they need to stop their application servers and re-configure their connection so the they coonect the new DB server, they cannot tolerate these workaround. 
    Whether does oracle have the better solution for this so that the application can automatically know the role's transition and change to the new IP without re-confige any connection and shutdown their application?
    Oracle support provides us the answer as following:
    ==================================================================
    Applications connected to a primary database can transparently failover to the new primary database upon an Oracle Data Guard role transition. Integration with Fast Application Notification (FAN) provides fast failover for integrated clients.
    After a failover, the broker publishes Fast Application Notification (FAN) events. These FAN events can be used in the following ways:
    Applications can use FAN without programmatic changes if they use one of these Oracle integrated database clients: Oracle Database JDBC, Oracle Database Oracle Call Interface (OCI), and Oracle Data Provider for .NET ( ODP.NET). These clients can be configured for Fast Connection Failover (FCF) to automatically connect to a new primary database after a failover.
    JAVA applications can use FAN programmatically by using the JDBC FAN application programming interface to subscribe to FAN events and to execute event handling actions upon the receipt of an event.
    FAN server-side callouts can be configured on the database tier.
    FAN events are published using Oracle Notification Services (ONS) and Oracle Streams Advanced Queuing (AQ).
    =======================================================================================
    Who has the experience and the related documentation or other solutions? we don't have the concept of about FAN.
    Thank very much in advance.

    Hi mesbeg,
    Thanks alot.
    For example, there is an application JBOSS server connecting the DB, we just added another datasource and put the standby IP into the configuration file except adding a service on DB side like this following:
            <subsystem xmlns="urn:jboss:domain:datasources:1.0">
            <datasources>
                    <datasource jta="false" jndi-name="java:/jdbc/idserverDatasource" pool-name="IDServerDataSource" enabled="true" use-java-context="true">
                        <connection-url>jdbc:oracle:thin:@<primay DB IP>:1521:testdb</connection-url>
                        <connection-url>jdbc:oracle:thin:@<standby DB IP>:1521:testdb</connection-url>
                        <driver>oracle</driver>
                        <pool>
                            <min-pool-size>2</min-pool-size>
                            <max-pool-size>10</max-pool-size>
                            <prefill>true</prefill>
                        </pool>
                        <security>
                            <user-name>TEST_USER</user-name>
                            <password>Password1</password>
                        </security>
                        <validation>
                            <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
                            <validate-on-match>false</validate-on-match>
                            <background-validation>false</background-validation>
                            <use-fast-fail>false</use-fast-fail>
                            <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
                            <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
                        </validation>
                    </datasource>
                    <drivers>
                        <driver name="oracle" module="com.oracle.jdbc">
                            <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
                        </driver>
                    </drivers>
                </datasources>
            </subsystem>
    If the failover is occurred, the JBOSS will automatically be pointed to the standby DB. Additional actions are not needed.

  • Error while adding a used relationship between the New DC and the Web DC

    Hi Gurus
    We are getting the Error in NWDS while Adding  a used relationship between the New DC and the Web DC.
    Steps what we are Done
    1. Create the custom project from inactiveDC's
    2.creating the project for the component crm/b2b in SHRAPP_1
    3.After that we changed the application.xml and given the contect path.
    4.Then we tried to add Dependency to the custom create DC we are getting the error saying that illegal deppendency : the compartment sap.com_CUSTCRMPRJ_1 of DC sap.com/home/b2b_xyz(sap.com.CUSTCRMPRJ_1) must explicitly use compartment sap.com_SAP-SHRWEB_1 of DC sap.com/crm/isa/ like that it was throwing the error.
    so, we skip this step and tried to create the build then it is saying that build is failed..
    Please help us in this regard.
    Awaiting for ur quick response...
    Regards
    Satish

    Hi
    Please Ignore my above message.
    Thanks for ur Response.
    After ur valuble inputs we have added the required dependencies and sucessfully created the projects, then building of the  projects was also sucessfully done and  EAR file was created.
    We need to deploy this EAR file in CRM Application Server by using the interface NWDI.
    For Deploying the EAR into NWDI, we need to check-in the activites what i have created for EAR. once i check-in the activites ,the NWDI will deploy the EAR into CRM Application Server.
    In the Activity Log we are able to check the Activities as Suceeded but the Deployment column is not showing any status.
    When i  right click on my activity Id the deployment summery is also disabled.
    So finally my Question is that where can i get the deployment log file, and where can i check the deployment status for my application..
    Any pointers in this regard would be of great help..
    Awaiting for ur valuble Responses..
    Regards
    Satish

  • Not reflecting the new value of the AWvariable

    I am working with Jdeveloper and BI beans
    we are using Java Analytical workspace API for connecting and saving the user input as a Analytical workspace Variable
    by using fallowing code
    awConn.executeCommand("awvariable=value");
    here the problem is i can not made this assignment perminent in Analytical Workspace
    i.e after execution of the program i checked with AnallyticalworkSpace manager's worksheet it not reflecting the new value of the AWvariable. It is showing only old value.
    how can i do that assignment it from java api .
    any one can help me

    That other post looks different, though - the OP is now manipulating the model.The OPs statement of the problem was:
    Adding new data to the exitsting model causes the JList to display blank when I refresh the screen.
    The suggestion in the other posting was to change the model not the array and the tutorial has a working example of this.
    The OPs question was:
    When my action performed creates a new instance of the model everything works fine but is this how it should work?
    The answer to this is no, you don't need to change the model, just update the model.
    So if the OP read the other posting and read the tutorial they should have an answer to their problem.
    As you suggested there is no need to create a custom model. The example in the tutorial uses the default list model, if the OP read the tutorial they would know that.

  • Mass updating a multi-valued field- to append the new value

    I have a question on multi-valued fields:
    I have store table with 5 multi-valued fields, say MLB, soccer, college FTBL, college Basketball, etc. 
    A store can have 4 MLBs, 2 soccer teams, and so on. 
    Say, there is a new MLB that came out called Mexico MLB team. 
    A user wanted to add this to 30 stores using a mass update.  But remember the 30 stores can have totally different sets of values in the multi-valued fields.
    How can I add this new value while still preserving the MLB team’s values of each store record?
    Does MDM not support this feature?
    I am using SAP MDM SP6
    An answer would be highly appreciated.
    Thanks
    Savi

    Savi,
    I assume you are defined these fields as multi-value lookup and linked to main table. In general, you can not because it will mess up and overwrite your multi-value entries for all of your 30 store records.
    Here is something in MDM come in handy. It is following the same concept but design your model a little differently. If you model your multi-value fields into qualified lookup table, it will be easier and optimized to handle.
    You can select all 30 records and mass-update with adding the new MLB entry into your Q-lookup table. Once you save, this mass-update action will respect all your diversity of each individual records with the new value added.
    Hope this helps
    If this answers your question, please kindly reward the points.
    Regards
    Dawei

  • Enable the field in the list display and insert the new value and  save it.

    Hi
    In a report when I am in third list using ALV a field which is disabled should be enabled and  have to insert the new value in it and  save.
    please tell me how to do it using classes and methods and also using ALV's.
    Promise to reward points.
    Regards
    Mac

    Hi madan,
    Please find the code sample,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/79b5e890-0201-0010-7f8e-b7c207edf7c2
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ec31e990-0201-0010-f4b6-c02d876ce033
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/117beb90-0201-0010-67a8-fff1482209ae
    Regards
    Kathirvel

  • Spark datagrid that shows the new  value and that it previously was

    Im trying to create a item renderer for a spark datagrid that shows the new  value and that it previously was and I am comparing in the set data, the problem I am having is that in teh set data I am frequently getting data from other rows (I know this because of virtual renderders), it there a way round this?
    <?xml version="1.0" encoding="utf-8"?>
    <s:GridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        currentState="unmodified">
        <fx:Script>
            <![CDATA[
                override public function set data(value:Object):void
                    if(data){
                        if(super.data.margin != value.margin  && super.data.margin){
                            oldValue.text = '(' + super.data.margin + ')';
                        }else{
                            oldValue.text == '';
                    super.data = value;
                    stroke.visible = false;
                    fillRect.visible = false;
                    if(data){
                        if(this.data.isModifiedClientSide){
                            currentState = "modified";
                            fill.color = 0xddddff;
                            stroke.visible = true;
                            fillRect.visible = true;
                        else{
                            fill.color = 0xffffff;
                            stroke.visible = false;
                            currentState = "unmodified";
                            fillRect.visible = true;
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="modified"/>
            <s:State name="unmodified"/>
        </s:states>
        <s:Rect top="0" left="0" right="0" bottom="0" id="fillRect" >
            <s:fill><s:SolidColor id="fill"  color="0xFFffff"  /></s:fill>
        </s:Rect>
        <s:Rect left="1" top="1" right="0" bottom="0" id="stroke">
            <s:stroke >
                <s:SolidColorStroke color="0x000099" weight="1"  >
                </s:SolidColorStroke>
            </s:stroke>
        </s:Rect>
        <s:HGroup horizontalAlign="center" verticalAlign="middle" top="0" left="0" right="0" bottom="0" paddingRight="5">
            <s:Label text="{data.margin}" width="50%" textAlign="right">
            </s:Label>
            <s:Label  id="oldValue" color="0xff0000" width="50%"  textAlign="right">
            </s:Label>
        </s:HGroup>
    </s:GridItemRenderer>

    If I recall correctly, you are talking about the default start page. To check if this is correct, type '''about:home''' in the awesome bar. If this is the same as your homepage, it will still be there when you update.

  • Get the new value from an event structure block

    Hello!
    I'm using an event structure block. I've edited an event wich its event sources are an indicator an a variable (a real matrix). I want to get (to catch) the new value of the indicator and the variable from the frame placed at the left top, but the new value attribute is not a real not an integer.....is variant type. I have no idea what i have to do to catch this two values from here. Someone can post a simple example about it?
    Thanks in advance!
    Regards
    Larson 

    If the terminal is INSIDE the event structure, you'll always get the new value. It will NOT be read until the event case executes, at which point the terminal contains the new value. (If the terminal is outside the event structure, and the wire goes inside the event structure, you'll get a stale value when the event for that terminal triggers. This is expected from the dataflow.)
    Put the terminals inside the proper event case, you'll be fine!
    LabVIEW Champion . Do more with less code and in less time .

  • The new value of bind variable does not show up after changed by PL/SQL

    Hi,
    I am running APEX 3.2. I use PL/SQL process to assign a new value to a bind variable, say, :P2_TEST := 123. The new value does not show up on the page although I can see it in the Session status.
    How can I make the new value to be displayed on the page immediately after the process is run?
    Kind regards,
    Tee

    Maybe you could use an ajax routine to refresh the item in your pl/sql routine?
    Thank you,
    Tony Miller
    Webster, TX

  • Which slot do I take the ram out and put the new in?

    I have a 24" iMac 2.33GHz with 2 gigs of ram. On my imac I can only put a total of 3 gigs. So Currently I have (2) 1GB modules each in both ram slots on my imac. So that means I have to remove pone of the 1GB chips and put in the new 2GB module I bought from crucial. So after shutting down the computer, unplugging everything, and setting it on a table, my question is:
    WHICH 1GB ram do I remove? The left(looking at the front of the imac), or the right (looking at the front)?
    I will be installing it in later tonight so ANY help is greatly appreciated.

    It does not matter which module comes out, however I would suggest that you remove the frontmost module simply to make it easier to remember which module has been replaced.
    Actually, you will have to take one more step before you replace your ram module.
    Take the cover off before you replace the module. It will go a LOT smoother!
    Just kidding. You pretty much have it down pat.
    Seriously, just remember to ground yourself before touching the ram module and do NOT touch the contacts on the module.
    Hope this helps

  • Why can't I assign hardware and guest os profiles to servers in the new SCVMM 2012 Service Templates?

    Trying to learn SCVMM 2012, but I'm confused about how Guest OS and Hardware Profiles work with the new 2012 Service Templates.
    I create a Hardware Profile and a Guest OS Profile. Then I open the Create VM Template wizard. In this wizard I can assign the Hardware and Guest OS profiles I created under the Configure Hardware and Configure Operating System steps in the wizard.
    If I open the new Service Template wizard, select a Single Tier Server (for example), open the Service Template Designer and go to the properties of the server I find under Hardware Configuration and OS Configuration I cannot assign my Hardware and Guest OS
    profiles to the server.
    Why is this? It seems like extra work to have not be able to assign these profiles to servers in a service template. Is there something fundamental I'm missing here?

    I have the same issues with the equipment I maintain. Two things are consistent that I see between this forum and my set up. I had 10.5 on all our Macs and each of them could connect with out issue to the shares on a windows xp machine. I have three Mac computers I am working with. 1. My main computer a MacBook Pro 2.4ghz core 2 duo, an Intel iMac, and an older Mac Pro G5 running OS 10.5 server.
    I have another server running kiosk or signage displays that is a windows xp machine. All of my macs could access the windows xp machine by clicking on it and authenticating to it and then the shares will show up.
    I upgraded my MacBook Pro first to 10.6 and have been unable to connect to the windows shares ever since. Keep getting Authenticatoin failure. So my work around is to transfer files to the 10.5 macs and then screen share one of them and access the windows share from them. Spoke with Apple support and they could not help and said it was a know issue but did not have a solution.
    Last week I upgraded the iMac to 10.6 and it too, now will not authenticate to the windows shares.
    Here are the strange things... I can take my macbook pro home and access all windows shares on my home networked computers. I even took the windows xp machine home from work to test it and I was able to connect to the shares without issue from my Macbook pro.
    Two things stand out ... you mentioned a Cisco router and we use a Cisco router at work. Also, both of us have upgraded to 10.6 and authentication fails at that time.
    Problem is between OS 10.6 and the Cisco routers I believe. I am not sure how to fix the issue though.

  • Adding users to roles in the new preview portal (new RBAC feature) does not work

    When I click the Invite Users/Add button for any of the 3 roles in the new preview portal, the page doesn't load and instead, it instantly redirects to an HTTP 520 error page. Can anyone please look into this and fix it? It's been this way since last week,
    which is when I checked it out but it is quite possible it has been this way for longer.

    Hi,
    It seems there are some issues in azure preview portal, please note this portal is in preview version, if you find some issues, please try to contact with azure experts, here is azure support channel:
    http://www.windowsazure.com/en-us/support/contact/, it is a good choice for you.
    Sorry for any inconvenience.
    Best Regards,
    Jambor
    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.

  • Trigger is not updateing the :new value in the table

    Hi,
    I've greated a row trigger that will trigger on insert statements.
    The last thing the trigger will do is to update the :NEW.role_id value in the inserted row, see the trigger bellow.
    The trigger was mutation so I had to add the 'PRAGMA AUTONOMOUS_TRANSACTION;' to avoid the mutation error.
    When performing test with controlled insert statements the trigger is working without problems, but when I my J2EE application is inserting rows to the table the role_id value is nog updated, see the trigger below and the :NEW.role_id := nRole_id; part. The role_id for the new row is empty. What can be the problem?
    CREATE OR REPLACE TRIGGER MSP_36.M2_USER_ALERT_INSERT_TRG_SCA
    BEFORE INSERT
    ON MSP_36.M2_USER_ALERT
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    ex_not_valid_role_name EXCEPTION;
    /* Variables */
    nAlertTypeId M2_USER_ALERT.alert_type%TYPE;
    isLogical      boolean;
    validRole     boolean;
    nRole_id      M2_ROLE.role_id%TYPE;
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
         BEGIN
              SELECT distinct at.alert_type INTO nAlertTypeId
              FROM M2_USER_ALERT ua, M2_ALERT_TYPE at,M2_ALERT_TYPE_PROPERTIES atp
              WHERE ua.alert_type = at.alert_type
              AND at.alert_type = atp.ALERT_TYPE_ID
              AND ua.alert_type = :NEW.alert_type
              AND upper(atp.property_name) = 'LOGICAL'
              AND upper(atp.property_value) = 'TRUE';
              isLogical := true;
         EXCEPTION
                   WHEN no_data_found THEN
                   isLogical := false;
                   NULL;     
         END;     
    IF (isLogical = true) THEN
    BEGIN
              SELECT distinct ro.role_id INTO nRole_id
              FROM M2_ROLE ro, M2_USER_ALERT
              WHERE ro.name = :NEW.name;
         EXCEPTION
                   WHEN no_data_found THEN
                        validRole :=false;
                        RAISE_APPLICATION_ERROR(-20001,'LOGICAL UserAlert: Role with id'|| nRole_id || ' does not exist.');     
                        NULL;
         END;
         validRole := true;
         IF (isLogical = true AND validRole = true AND :NEW.status = 1) THEN
         INSERT INTO M2_USER_ROLE (user_id,role_id)
         VALUES (:NEW.user_id,nRole_id);
         :NEW.role_id := nRole_id;
    END IF;
    END IF;
    commit;
    END;
    Many thanks,
    Michael

    I only get a empty column that include now data. The first insert is working correct so I know that the role_id is valid and working. Can there be problem with commit or my AUTONOMOUS_TRANSACTION running this from JDBC ?
    EXAMPLE data from
    M2_USER_ROLE
    ===================
    USER_ID = ROLE_ID =
    ===================
    20 = 10040 =
    1259756 = 10040 =
    ===================
    Example partly data from
    M2_USER_ALERT
    =========================================================
    USERALERT_ID = USER_ID = ALERT_TYPE = NAME = ROLE_ID =
    =========================================================
    3725 = 1259756 = 10288 = MG_Test = =
    =========================================================
    When inserted from the application the role_id is empty and I've taken the same SQL from the library cache and run it with same BIND variables and then it's working.
    Michael

  • Get Old Value and the new value based on the date

    Hi
    I have a table called roster created below with following insert statements.
    CREATE TABLE ROSTER
    ROSTER_EMPLOYEE_DEF_ID NUMBER,
    EMPLOYEE_ID NUMBER,
    DEFINITION_REGION_CODE NUMBER,
    DEFINITION_DISTRICT_CODE NUMBER,
    DEFINITION_TERRITORY_CODE NUMBER,
    START_DATE DATE,
    END_DATE DATE
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (1,299,222,333,444,'1-JUN-2011','30-JUN-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (2,299,223,334,445,'1-JUL-2011','20-JUL-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (3,299,224,335,446,'1-AUG-2011','30-AUG-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (4,300,500,400,300,'1-JUN-2011','20-JUN-2011')
    INSERT INTO ROSTER
    (ROSTER_EMPLOYEE_DEF_ID,EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE)
    VALUES
    (5,300,501,401,301,'1-JUL-2011','20-JUL-2011')
    In the above table we have columns like
    EMPLOYEE_ID,DEFINITION_REGION_CODE,DEFINITION_DISTRICT_CODE,DEFINITION_TERRITORY_CODE,START_DATE,END_DATE
    The result i am looking from the above table is based on the EMPLOYEE_ID OF START_DATE AND END_DATE
    I need to get OLD_DEFINITION_REGION_CODE and the NEW_DEFINITION_CODE
    Similarly OLD_DEFINITION_REGION_CODE and the NEW_DEFINITION_REGION_CODE
    and OLD_DEFINITION_TERRITORY_CODE and the NEW_DEFINITION_TERRITORY_CODE
    I need to get one row of data for each employee saying old value and new value
    for employee 299 there are 3 records it must give the new record which is the latest date i.e start date 1-aug-2011 and end date 30-aug-2011 old record will be
    start date 1-jul-2011 and 20-jul-2011
    For the above table data i need to get the data as below
    EMPLOYEE_ID OLD_DEFINITION_REGION_CODE NEW_DEFINITION_CODE OLD_DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE START_DATE END_DATE
    299 223 224 334 335 20-JUL-11 30-AUG-11
    300 500 501 400 401 20-JUN-11 20-JUL-11
    Please suggest me to get the above result based on the data. Please let me know if my posts are not clear
    Thanks
    Sudhir

    SELECT  EMPLOYEE_ID,
            OLD_DEFINITION_REGION_CODE,
            NEW_DEFINITION_REGION_CODE,
            OLD_DEFINITION_DISTRICT_CODE,
            NEW_DEFINITION_DISTRICT_CODE,
            OLD_DEFINITION_TERRITORY_CODE,
            NEW_DEFINITION_TERRITORY_CODE,
            START_DATE,
            END_DATE
      FROM  (
             SELECT  EMPLOYEE_ID,
                     ROW_NUMBER() OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE DESC) RN,
                     LAG(DEFINITION_REGION_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_REGION_CODE,
                     DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE,
                     LAG(DEFINITION_DISTRICT_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_DISTRICT_CODE,
                     DEFINITION_DISTRICT_CODE NEW_DEFINITION_DISTRICT_CODE,
                     LAG(DEFINITION_TERRITORY_CODE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) OLD_DEFINITION_TERRITORY_CODE,
                     DEFINITION_TERRITORY_CODE NEW_DEFINITION_TERRITORY_CODE,
                     LAG(END_DATE) OVER(PARTITION BY EMPLOYEE_ID ORDER BY START_DATE) START_DATE,
                     END_DATE
               FROM  ROSTER
      WHERE RN = 1
    EMPLOYEE_ID OLD_DEFINITION_REGION_CODE NEW_DEFINITION_REGION_CODE OLD_DEFINITION_DISTRICT_CODE NEW_DEFINITION_DISTRICT_CODE OLD_DEFINITION_TERRITORY_CODE NEW_DEFINITION_TERRITORY_CODE START_DAT END_DATE
            299                        223                        224                          334                          335                           445                           446 20-JUL-11 30-AUG-11
            300                        500                        501                          400                          401                           300                           301 20-JUN-11 20-JUL-11
    SQL>  SY.

  • Problem in Inserting the new values into Ztable

    Hi Techies,
    I have a requirement that when ever user enters the value in Billing Qty input which is in VF01 tcode and the table is VBRP-FKIMG, and client want billing qty and previous month reading, the fields are not in VBRP. So I have created a custom table name as YSD-EXPORT_QTY with fields of CUSTOMER, MONTH, YEAR, BILL_QTY, PREV_READING, CUMULATIVE... When ever user enter the Billing Qty I want to update database table and initally there is no data in custom table. I tried below code but i am not getting and i am getting the error as
    "The type of the database table and work area (or internal table) "WA_EXPORT" are not Unicode convertible. "
    So, How can I resolve this issue.. I am trying this since from 3 days... if u have any sample code please give me...
    MOVE WA_VBRP-FKIMG TO WA_EXPORT-BILL_QTY.
    WA_EXPORT-CUMULATIVE = WA_EXPORT-BILL_QTY + WA_EXPORT-PREV_READING.
    WA_EXPORT-PREV_READING = WA_EXPORT-CUMULATIVE.
    APPEND WA_EXPORT TO IT_EXPORT.
    INSERT INTO YSD_EXPORT_QTY VALUES WA_EXPORT.

    If it overrides existting record, you should add new key fields to your database table, there can be only one record per set of key values.
    I suppose  keys look like MANDT, KUNNR, GJAHR, MONAT or MANDT VBELN POSNR or a combination of both set of keys (not sure to understand you requirement)
    You have to first read from database if some data already exists,
    - if yes, add the new quantities and UPDATE the record
    - if no, INSERT a new record
    Remember keys define a unique record, and cannot be updated once inserted.
    If your program should never update records, add a "technical" key field, and fill it using a timestamp or a number range counter (FM NUMBER_GET_NEXT)
    Regards,
    Raymond

Maybe you are looking for

  • Sobre alguns problemas que estou tendo com o mozila que não é somente no meu computador..

    estou achando que isso pode ser caso de processo! no pesquisador do google, quando entra em uma pagina e volta, a tela esta ficando toda branca, estou percebendo que isso não é apenas comigo em outros computadores tmbém está assim, que pode ser algo

  • Machine authentication is a little slow causing logon script to fail

    using: - Windows Zero with PEAP - Machine authentication only (AuthMode is set to 2 in the registry) - PCs are loginning it automatically, so it's a fast process It appears that machine authentication is a little slow. I can ping the PC's IP after th

  • Why on earth do we have to go to a webpage and download the software first ???

    With all respect, it is as annpying as it can get. Every time when I try to upgrade or update Adobe Flash Player , I have to come to a page and download the software first and install it, and it will pop up another window just to tell me my Adobe Fla

  • Add Namespace in message mapping

    Hi gurus, we have following requirement to solve; on receiver side we have a segment without namespace. It is possible to add namespace at the graphical mapping? <root>     <id>1111</id>     <name>max mustermann</name>     <unit>B1</unit> </root> exp

  • WCF client request loses DateTime elements

    I have WCF client that has created an proxy to a JAVA web service. I am able to contact this service and I am as well able to retrieve data from it. However some of the fields, to be exact C# DateTime fields, that I define within the request get lost