Technique to pass data between two databases

I am developing a web application with an offline client.
for offline client am using embedded mysql using mysql-je http://mysql-je.sourceforge.net/
for online ie for overall application( server ) am using mysql 5.0.
i want to update data from client to server and also from server to client .
pls tell me is how i can implements this ?...
Message was edited by:
vp_anil

The other reply is about connectivity only. If you have connectivity then it isn't relevant. If you don't then you can't do anything.
So ignoring that....
>
pls tell me is how i can implements this ?...It depends on your data.
Basically you can have the following data problems
A. Add rows
B. Delete rows
C. Modify rows
You can also have two directions
1. Client to main database.
2. Client from main database.
In terms of solution.
- Decide direction.
- Add rows - use a creation time stamp. Get last update timestamp then moving anything newer.
- Delete rows. Harder than add because either you have to keep a record of deleted entries or you have to compare the entire existing set and look for holes. Once you find existing entries then delete them.
- Modify. Much harder and it depends on the data. It should also be considered whether manual verification is required. For instance can the customer address (stored in the database) be updated both on the clien and the main database? If yes then which one is right? What if the address was updated in both places and then a day later the phone number was updated? Two changes and maybe one is right in one place and one is right in the other. A replay log might help here but maybe not.

Similar Messages

  • How to pass data between two internal sessions using ABAP memory?

    Hi,
    How to pass data between two internal sessions using ABAP memory?
    It would be fine if you could explain with an example.
    And also let me clear about the data passing between two main sessions and two external sessions with specific examples.
    Thanks.

    Hi ,
      check the example.
    Reading Data Objects from Memory
    To read data objects from ABAP memory into an ABAP program, use the following statement:
    Syntax
    IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
    This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
    You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
    In this statement, the system does not check whether the structure of the object in memory is compatible with the structure into which you are reading it. The data is transported bit by bit. If the structures are incompatible, the data in the target field may be incorrect.
    PROGRAM SAPMZTS1.
    DATA TEXT1(10) VALUE 'Exporting'.
    DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    DO 5 TIMES.
      ITAB-BOOKID = 100 + SY-INDEX.
      APPEND ITAB.
    ENDDO.
    EXPORT TEXT1
           TEXT2 FROM 'Literal'
      TO MEMORY ID 'text'.
    EXPORT ITAB
      TO MEMORY ID 'table'.
    SUBMIT SAPMZTS2 AND RETURN.
    SUBMIT SAPMZTS3.
    The first part of this program is the same as the example in the section Saving Data Objects in Memory. In the example, the programs SAPMZTS1 and SAPMZTS2 are called using SUBMIT. You can create and maintain the programs called using the SUBMIT statement by double-clicking their names in the statement. For further information about the SUBMIT statement, refer to Calling Executable Programs (Reports)
    Example for SAPMZTS2:
    PROGRAM SAPMZTS2.
    DATA: TEXT1(10),
          TEXT3 LIKE TEXT1 VALUE 'Initial'.
    IMPORT TEXT3 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT3.
    IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.
    WRITE: / SY-SUBRC, TEXT1.
    Example for SAPMZTS3:
    PROGRAM SAPMZTS3.
    DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
    IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
    LOOP AT JTAB.
      WRITE / JTAB-BOOKID.
    ENDLOOP.
    The output is displayed on two successive screens. It looks like this:
    and
    The program SAPMZTS2 attempts to read a data object TEXT3 from the data cluster "text", which does not exist. TEXT3 therefore remains unchanged. The existing data object TEXT2 is placed in TEXT1. In both cases, SY-SUBRC is 0, since the cluster "text" contains data.
    The program SAPMZTS3 reads the internal table ITAB from the cluster "table" into the internal table JTAB. Both tables have the same structure, namely that of the ABAP Dictionary table SBOOK.
    Pls. reward if useful.....

  • Synchronisation of data between two databases

    i have two databases having tables with same fields and i would like to transfer the data from one database to the other , how do i do that? is there any link which talks about synchronisation of data between two databases?

    Make the database name same in both databases and use Veritas tools for data copy.

  • Hide values in URL, passing data between two webdynpro(ABAP) applications.

    Hi
       When transferring the data between two webdynpro applications,  How to hide the values in URL.
    Example : First application is using for login
                    Second application is for some transactional screens.
    Based on first application login data second application should trigger. When passing the user id and password thru URL every one can see the user name and password at internet explorer, so how to hide that user name and password in URL.
    Thanks
    Murali Papana.

    Hi Lekha,
        Thanks for your reply, but I could not find parameter like visibility, andi found HAS_TOOLBAR but no use.
    I set it like
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://*****:8000/sap/bc/webdynpro/sap/Y1app1/?sap-language=EN&sap-client=200&sap-user=1104&sap-password=abcd'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_FALSE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.
    Thanks
    Murali Papana.

  • Transfer large data between two databases via ODI

    Hi, we want to transfer our 2 billion records (70gb) A database oracle server to B database oracle server via ODI LKM SQL to Oracle (SQLLDR).We use a filter like "prod_enter_date>sysdate-1" for daily  records(about 200.000).It takes about 1 our.How can we transfer data faster, thanks  for your advice.

    OK so assuming the Oracle DB's can see each on the network other have a word with your DBA's about creating a DBLink and test out the LKM DB Link KM.
    Also try Uli's amended LKM if dont want to be too intrusive on your souce system creating synonyms etc. : http://sonra.io/tag/lkm-db-links/
    I have used both and they work fine.
    Basically you are currently unloading a large amount of data, transfering to another location and then uploading that data with no transformation to the target environment, a DBLink LKM will transfer this data without the need to unload / upload , just the network transfer.
    Another thread here : https://forums.oracle.com/message/9630782
    To re-quote the that thread quoting the documentaion for that LKM : "As it says in the component description - "This module is recommended when developing interfaces between two Oracle servers."

  • Pass data between two views

    Hi experts,
    i want to pass data from a view to an other one, i am filling a structure, and want get it into another view,
    is there a way to handl this.
    Best Regards
    Tomas

    Hi,
    I am not getting your exact requirement but to pass data from one view to another try the following steps.
    1. Suppose view1 is the view where you will take data from user through i/p fields and display it in view2 through text view.
    2. First create context node with required attributes in component controller then map it to context of view1.
    3. Map the attributes to the i/p fields of the view.
    4. Then if you want to go to view2 on button click then create an event in onAction property of button.
    5. Create OutBound plug in view1 and InBound plug in view2.
    6. In enent handler method of the button write the fire method.
         eg.  wd_this->fire_to_view2_plg(  ).
    7. In windows embed both the views and create navigation link for OutBound plug of view1.
    8. To display the values in view2 first map the node from component controller to context of the view2.
    9. Now map the attribues of the node to the Text Views or i/p fields where you want to diplay the values.
       Automatically values will appear in view2.

  • Passing data between two canvases

    Canvas A is a data entry form where users enter group number, paid from date and paid to date(static data).
    Then they select from 1 to 30 reports(dynamic data) they want about the group.
    Canvas B has a spread sheet appearance where the static data and the dynamic data is displayed for
    verification of correctness before running the reports. The static and dynamic data for each report is
    displayed one line per report. Canvas B updates a report database so the reports can be run at a scheduled
    time other than the middle of the day.
    If the user selects reports 1, 5, 11, 19, and 35 on A, I want the 5 reports lines on B to be the first 5 lines
    instead of being tied to a specific line on B, i.e. report 5 options show up in the order selected instead of
    always being on line 5 of B.
    I tried to program loading canvas B like I do on the mainframe using a loop and an index number:
    PROCEDURE PRC_BUILD_CANVASB IS
         loop_counter Number(2);
    BEGIN
    loop_counter := 1;
    IF :CHK_REPORT1 = 'Y' THEN
    :CHK_RUN(loop_counter) := 'Y';
    :TXT_REQ_REPORT_ID(loop_counter) := 'Report 1';
    :TXT_REQ_GRP_FROM(loop_counter) := :TXT_BGN_FROM||:TXT_BGS_FROM;
    :TXT_REQ_PAID_FROM(loop_counter) := :TXT_PAID_FROM;
    :TXT_REQ_PAID_TO(loop_counter) := :TXT_PAID_TO;           
    loop_counter := loop_counter + 1;
    END IF;                    
    IF :CHK_REPORT2 = 'Y' THEN
    :CHK_RUN(loop_counter) := 'Y';
    :TXT_REQ_REPORT_ID(loop_counter) := 'Report 2';
    :TXT_REQ_GRP_FROM(loop_counter) := :TXT_BGN_FROM||:TXT_BGS_FROM;
    :TXT_REQ_PAID_FROM(loop_counter) := :TXT_PAID_FROM;
    :TXT_REQ_PAID_TO(loop_counter) := :TXT_PAID_TO;           
    loop_counter := loop_counter + 1;
    END IF;                    
    IF :CHK_REPORT3 = 'Y' THEN
    :CHK_RUN(loop_counter) := 'Y';
    :TXT_REQ_REPORT_ID(loop_counter) := 'Report 3';
    :TXT_REQ_GRP_FROM(loop_counter) := :TXT_BGN_FROM||:TXT_BGS_FROM;
    :TXT_REQ_PAID_FROM(loop_counter) := :TXT_PAID_FROM;
    :TXT_REQ_PAID_TO(loop_counter) := :TXT_PAID_TO;           
    loop_counter := loop_counter + 1;
    END IF;
    END;
    I keep getting an error: Error 49 bad bind variable :CHK_RUN(loop_counter) . I tried preferencing the :CHK_RUN with
    the block name and got the same error.
    Any suggestions.
    Bob

    You cannot access a block's record by entering the record number behind the
    items. Instead, you have to create / go to your record and then manipulate the
    data of the currenr record. E.G.:
    go_block('B');
    clear_block;
    if :A.check1 = 'Y' then
    :b.report := 'something';
    create_record; -- Jumps to next record for next if-then
    end if;
    if :A.check2 = 'Y' then
    :b.report := 'some other thing';
    create_record; -- Jumps to next record for next if-then
    end if;
    first_record;

  • Sharing data between two separate user sessions

    Hi all!
    I have been trawling my brain for a solution to this - any help will be appreciated!
    I would like to create a single instance of a class but share that instance over more than one user session (two separate users but both running concurrently).
    Just as you can pass data between sessions using ABAP memory - I would like to pass data (specifically an object reference) between two separate users that could even be logged in to two separate application servers...
    Even a mini Client/server solution would suffice but I cannot figure one out!
    Is this possible?
    Many thanks for your thoughts in advance...
    N

    Hello N K,
    sorry thats not possible. Sharing a data item / object instance requires at least a common physical memory. As this is not guaranteed between different app. server this is technical not possible.
    With release 640 ABAP offers the new feature Shared Objects. These mechanism allows access by different users and some propagation to differnt servers.There is an interesting article on the ABAP SDN homepage
    https://www.sdn.sap.com/sdn/developerareas/abap.sdn
    For relases below more or less the database is the only chance to store data accross application servers (known to me). One exception might be the ENQUEUES which might (mis)used to store some Flags.
    Kind Regards
    Klaus
    Link to Shared Objects PDF
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/shared objects in abap

  • How to share the data between two or more frames

    How to share the data between two or more frames based on the database relationship in JDeveloper?

    You can pass data between frames by passing it as parameters.
    That is when you are invoking another frame, pass your data as arguments through the constructor to that frame .
    You can also achieve this through static or public methods, but static variables as we know is not suggested which might occupy more memory space.
    Regards,
    Srinivasan AShwath
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    How to share the data between two or more frames based on the database relationship in JDeveloper? <HR></BLOCKQUOTE>
    null

  • OBIEE 11G - Issue passing parameters between two reports

    Hi folks,
    I am struggling to pass parameters between two reports in OBIEE 11G.
    My first report contains the following columns: Rolling Year Type (VCHAR), Year(VCHAR), Month(VCHAR), Cost(Double).
    My second report contains the following columns: Rolling Year Type(VCHAR), Year(VCHAR), Month(VCHAR), Category(VCHAR), Cost(Double).
    My requirement is to pass the Rolling Year Type, Year and Month values from report 1 to report 2.
    On the Month column properties of report 1, I have created an Action Link called 'Drill to Category'. I have clicked on 'Navigate to BI Content' and selected Report 2.
    Then on Report 2, I have included three filters: Rolling Year Type is prompted, Year is prompted, Month is promted.
    When I run the report I always get the following error:
    The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
    When I check the cursor cache, the filter values are correct. Does anybody have any idea why Report 2 does not display?
    When I remove the Month filter, the report works correctly.
    I have since changed the third filter to be Month No and although Report 2 does display, it does not pick up the filter on the Month No.
    I initially thought this may have been a caching issue and so I have disabled BI Server Cache but this does not fix my problem.
    This was never an issue on OBIEE 10G as I found it very easy to navigate between two requests.
    Has anyone else experienced problems with passing parameters between two request in 11G?
    Any help appreciated.
    Thanks
    Gavin

    Hi,
    I once tried this kind of requirement(with dashboard prompts though) and hit at similar issue. I later found out that the problem is with the space in the parameter values. Can you please let me know, if the same is the case with you?
    Suppose the parameter passed is "Jan 2010", but the report on the destination takes the value as "Jan" & "2010". Yes, it kind of split the parameter value to two based on space. I think we can notice the filters the destination report got, by enabling filter view.
    In this case, since you pass only value at a time, could you try placing the parameter value anyway in double quotes? I think the Server then will understand it as one value.
    Thank you,
    Dhar

  • Passing parameter between two applets

    hi all,
    i want to pass parameter between two applets. in other words, when user clicks the button; close the running applet, pass parameter to another applet and run another applet.
    now i think that could be, ( creating a parameter table in database, when user click on button write parameters to table and stop active applet and run other applet. when other applet runs in init methot it takes parameter from table). but it will be very indirect way.
    if you have an idea or information, plesae tell me.
    thanks for your interest

    Hi ,
    Plz pay a visit to this wonderful website,
    http://www.rgagnon.com/javadetails/java-0022.html / http://www.rgagnon.com/howto.html
    Best Wishes,
    Gaurav
    PS : Thanks to Real Gagnon. This is all I can do at this stage, but wanted to say you are doing a wonderful job.

  • Best method for passing data between nested components

    I have a fairly good sized Flex application (if it was
    stuffed all into one file--which it used to be--it would be about
    3-4k lines of code). I have since started breaking it up into
    components and abstracting logic to make it easier to write,
    manage, and develop.
    The biggest thing that I'm running into is figuring out a way
    to pass data between components. Now, I know how to write and use
    custom events, so that you dispatch events up the chain of
    components, but it seems like that only works one way (bottom-up).
    I also know how to make public variables/functions inside the
    component and then the caller can just assign that variable or call
    that function.
    Let's say that I have the following chain of components:
    Component A
    --Component B
    -- -- Component C
    -- -- -- Component D
    What is the best way to pass data between A and D (in both
    directions)?
    If I use an event to pass from D to A, it seems as though I
    have to write event code in each of the components and do the
    bubbling up manually. What I'm really stuck on though, is how to
    get data from A to D.
    I have a remote object in Component A that goes out and gets
    some data from the server, and most all of the other components all
    rely on whatever was returned -- so what is the best way to be able
    to "share" data between all components? I don't want to have to
    pass a variable through B and C just so that D can get it, but I
    also don't want to make D go and request the information itself. B
    and C might not need the data, so it seems stupid to have to make
    it be aware of it.
    Any ideas? I hope that my explanation is clear enough...
    Thanks.
    -Jake

    Peter (or anyone else)...
    To take this example to the next (albeit parallel) level, how
    would you go about creating a class that will let you just
    capture/dispatch local data changes? Following along my original
    example (Components A-D),let's say that we have this component
    architecture:
    Component A
    --Component B
    -- -- Component C
    -- -- -- Component D
    -- -- Component E
    -- -- Comonnent F
    How would we go about creating a dispatch scheme for getting
    data between Component C and E/F? Maybe in Component C the user
    picks a username from a combo box. That selection will drive some
    changes in Component E (like triggering a new screen to appear
    based on the user). There are no remote methods at play with this
    example, just a simple update of a username that's all contained
    within the Flex app.
    I tried mimicking the technique that we used for the
    RemoteObject methods, but things are a bit different this time
    around because we're not making a trip to the server. I just want
    to be able to register Component E to listen for an event that
    would indicate that some data has changed.
    Now, once again, I know that I can bubble that information up
    to A and then back down to E, but that's sloppy... There has to be
    a similar approach to broadcasting events across the entire
    application, right?
    Here's what I started to come up with so far:
    [Event(name="selectUsername", type="CustomEvent")]
    public class LocalData extends EventDispatcher
    private static var _self:LocalData;
    // Constructor
    public function LocalData() {
    // ?? does anything go here ??
    // Returns the singleton instance of this class.
    public static function getInstance():LocalData {
    if( _self == null ) {
    _self = new LocalData();
    return _self;
    // public method that can be called to dispatch the event.
    public static function selectUsername(userObj:Object):void {
    dispatchEvent(new CustomEvent(userObj, "selectUsername"));
    Then, in the component that wants to dispatch the event, we
    do this:
    LocalData.selectUsername([some object]);
    And in the component that wants to listen for the event:
    LocalData.getInstance().addEventListener("selectUsername",
    selectUsername_Result);
    public function selectUsername_Result(e:CustomEvent):void {
    // handle results here
    The problem with this is that when I go to compile it, it
    doesn't like my use of "dispatchEvent" inside that public static
    method. Tells me, "Call to possibly undefined method
    "dispatchEvent". Huh? Why would it be undefined?
    Does it make sense with where I'm going?
    Any help is greatly appreciated.
    Thanks!
    -Jacob

  • How can i make  network  between two databases  ?

    Good Morning to all ;
    Going to configure  oracle 10g -  ( I trying to exchange data between two different databases.
    Each database is configured in different operating systems.
    For ex : one database from windows XP(seperate virtual machinne)
    one database from linux rhel (seperate virtual machinne)
    I am waiting for some suggestions ..
    Thanks ..
    Edited by: 969352 on Mar 19, 2013 10:04 AM

    969352 wrote:
    What virtualization product are you using?*#* vmware-toolbox-cmd -v
    8.1.3.9911 (build-203739)
    VMWARE  Product  Information :
    Version : 7.0.0 build - 203739
    OK. You will need to make sure the ip addresses you assign to your vms are in the same subnet as the adapter create by the installation of vmware. Once you get the fundamental network setup fixed, you can treat these vms just like any machine in your data center. Forget the vm console and access them exactly like you would any remote server -- putty for the linux machine and Windows Remote Desktop for the Windows machine.
    At a command prompt on the host, issue this:
    c:> ipconfig -allYou will get back info on several net adapters, two of which are identified as being with vmware -- vmNet1 and vmNet8. Note the IP addresses of both. We'll need it later.
    You will also need to know how you configured the network adapters on your vm's -- NAT, bridged, hostonly, ???
    Note that these issues are out of scope for this forum. I don't mind helping, but I no longer have a vmware installation to reference details.
    What have you actually tried to do? ( Data Transfer )I tried to exchange data from windows database  to linux DB
    That's pretty vague. Exactly how did you try to "exchange data"? A sql statement using a db_link? export/import? Carrier Pigeon?
    >
    Where are you stuck?
    I don't know ,  how to configure ip and necessary information  for windows database.
    Configuring an IP address is purely an OS admin issue and is out of scope for this database forum.
    Google is your friend, but only if you use it: [url http://lmgtfy.com/?q=configure+windows+ip+address]http://lmgtfy.com/?q=configure+windows+ip+address
    >
    That's it Edstevens .. thanks ..

  • How can I get extract the data between two cursors on an XY graph

    How can I get extract the data between two cursors on an XY graph

    Well, you say xy graph, so this might be a more complicated problem.
    For a waveform graph it's trivial. Simply get the two cursor indices (property: cursor index) and apply them to array subset of the data. Is that all you need?
    Here's how the above code would look like. using cursor.index instead of cursor.x elimnates the need to include scaling information.
    For an xy graph, there could be multiple segments (e.g. imagine a spiral that passes the desired x range multiple times from both sides). This would neeed significantly more code for a general solution.
    Message Edited by altenbach on 11-24-2009 07:53 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    cursorsubset.png ‏17 KB

  • Performace tuning: how to pass data between different batch job programs?

    Hi everyone,
        now i have one problem about performance tuning using threading in SAP programs: split one big program into two programs - one is main program and the other is sub program. using batch jobs, we can submit multi jobs of sub program at the same time.
        does anybody know how to pass data between different batch jobs? I don't want to use temp files. can ABAP memory can implement this?
        thanks!

    Wei,
    Yes we can transfer the data by using
    SAP Memory OR ABAP Memory.
    Ex:  V_count TYPE i.
      V_count = 100.
    LOOP AT  itab.
    IF v_count EQ 25.
    Here For every batch job
      EXPORT data TO MEMORY ID 'ABC'
       Function module
        JOB_OPEN
       JOB_SUBMIT
       JOB_CLOSE.
      ENDIF.
    ENDLOOP .
    IN your 2nd program.
    INITIALIZATION.
    IMPORT data FROM MEMORY IF 'ABC'.
    FREE memory if .---When you free the memory you will get recent data.
    Don't forget to reward if useful.

Maybe you are looking for

  • Which is better? 2.5ghz dual i5 with 16g ram or 2.3 quad i7 with 8g ram?

    Which is better? 2.5ghz dual i5 with 16g ram or 2.3 quad i7 with 8g ram?

  • 2 columns dependent on user parameter, others are not - complicated

    Hi My select statement (for reporting purposes) contains 8-9 columns from a number of tables. My problem is that 2 out of these columns will depend on the following: a. user entered parameter b. more complex joins needed for just this column - on dif

  • Pme01

    Dear All, I have activated one variable key as Personnel Sub area in PME01 of feature NUMKR.But whenever I am assigning the values in the maintained personnel sub area & going for Hiring action the number ranges I have maintained under the PSA is not

  • Problems with symbols in CS5.5 when using CS5 doc

    Hi there, When I open a document in Flash CS5.5 that was created in CS5, for some reason the buttons appear invisible when the document is published. Buttons are also appearing invisible when they have been brought in from the library of another CS5.

  • ASR1002-F VPN problem

    Hi , I need help because the ASR not functioning correctly how vpn " concentrator". Someone, does ASR use  for closing the VPN on the central site ? I've this error in logging *Dec 15 10:29:53.732: %CRYPTO-6-IKMP_MODE_FAILURE: Processing of Informati