Synchronizing local database and server database

Hi,
I am working on an application where users store information on their laptops in a local database. Once a day, synchronizing has to take place with the server database. The clients will send their mutated data to the server and the server will send its mutated data, e.g. changed item file.
The choice of database is Mysql for the laptop, and server resides on AS400, so DB2 is the platform.
I am wondering what techniques could be used to accomplish this. Should it be done by sql or via text files? Through a socket or something else?
Does anyone have an idea what the best approach is for this matter?
And if possible, some sample code would be very much appreciated.
Thanks in advance.

Hi,
There are numerous solutions to this. I have worked on a similar project a couple of years ago. The plan is as follows:
1. A java client is run on the laptop (user) which connects to the remote server on calls a procedure passing the localdata as the parameter.
2. the server parses the local data and updates itself and returns the updated data to the client.
The main considerations:
1. Connectivity: Connecting via internet to the server tunnelling through firewall or VPN ( I have no adequate knowledge on this).
2. The amount of data transfer. I was working on relatively less transactional data and hence the connection thru a dial up was not a problem.
3. The frequency of this operation. TO me it was once a day process, and hence I scheduled it during vee hours when the network was relatively free.
This is all my thoughts about the scenario. Any comments and suggestions are welcome.
Cheers,
Sekar

Similar Messages

  • Database and Server Report

    Hi,
    I want to assist my friend (he is same like me, newbie in oracle) to give a report on health of oracle database and server; which is running in his small software development and data feeding company. There are around
    1. 50 users,
    2. windows XP professional,
    3. Oracle9i Enterprise Edition Release 9.2.0.1.0 – Production,
    4. one database, No Archive Mode, oracle home is : c:\oracle\ora92 and database is stored at D:\ORACLE\oradata\orcl, 3 control files, 3 redo groups and 11 dbfs
    5. 2.27 GB is free space on the drive of oracle home,
    6. more than 1 GB RAM is in the system,
    7. <what else more; I should describe, please let me know>
    He has to submit a report on current status, health, performance etc. of oracle database and server. How should we design and get the data, please guide me.
    Thanks & Regards

    You Mean Helath Check Report of the DB
    Tablespace size?
    Datafile Size?
    Default tablespace?
    UNDO management?
    SGA?
    buffer cache hit ratio?
    library cache hit ratio?
    There are so many other parameters..Performance cannot be predicted from remote site
    But you can provide certain information
    Here are some views which could be helpful
    DBA_TABLESPACE
    DBA_FREE_SPACE
    DBA_DATA_FILES
    V$CONTROLFILE
    V$LOG--Meaning less since you run in archived mode
    Number of Oracle Process allocated
    UNDO RETENTION
    SQL>show parameter process
    SQL>show parameter UNDO
    Do you have METALINK acces
    1019546.6
    this has everything then you can pass whatever they need
    and many more

  • Are Adobe promoting the alternatives to Database and Server Behaviours

    The apparently disastrous depreciation of Database and Server Behaviours in Dreaweaver CC seem to have left a nasty taste in the mouth for many users. I am not a very experienced web developer, to the point where I cringe when describing myself as such, and I assume, possibly naively, that if Adobe have made them optional now, that there is an alternative; if not, the decision seems dimwitted in the extreme, and I did not expect that to be the case with a company who's software I have admired and found useful for so long.
    So, assuming there is an alternative method to create dynamic data driven websites in Dreamweaver, can people please suggest what they are, and possibly point me towards the Adobe support and tutorials that encourage and explain their use. It must be in Adobe's interest to to get Dreamweaver's users to adopt the new technologies, and, at the moment, I cannot believe there is no adequate alternative.
    I have seen many complaints about the depreciation of the support, but no one seems to be saying "don't use those, this is what you need to do the job". If anyone can do that for me, it would be greatly appreciated, and I imagine others would also benefit.
    And if the alternatives are inadequate, then perhaps we could discuss how to get Adobe to repair a broken product.

    Rob Hecker2 wrote:
    As the web has evolved it makes sense that websites are no longer created by one person using one tool (DreamWeaver).
    I agree with you there, depending at what level you are. A large design company will have specialists in all areas whilst a small one man set up will not. These small one-man band businesses usually attract low paying clients who will not have a budget to employ 'specialists' which is where DW server behaviours fitted in perfectly. Although it's benefited me enormously by learning how to manually connect and query databases I still think it was and is pretty lazy on the part of Adobe NOT to update the behaviours which were an important part of the program for many.  3rd party developers have produced extensions at a considerable cost, over and above what it costs to run DW. They quickly rolled out these extensions when it became clear Adobe had decided to upset many of its customers by not including any alternative in CC/CC 2014 - so don't tell me it would have taken many hours development and financial resources which Adobe just could not afford. That's bollocks. This is purely a decision by some wanker at top level in Adobe that is probably smoking crack and don't know their *** from their elbow, or what their customers really want.
    Rob Hecker2 wrote:
    It always seemed to me that by adding support for PHP/MySQL at all, Adobe was just going to frustrate people.
    NO, the frustration is that Adobe introduce components and then doesn't develop them any further preferring to introduce a bag of dog poo into their programs like fluid grids instead of concentrating on what they do best.
    Rob Hecker2 wrote:
    PHP programmers do not use Dreamweaver for PHP Development. I recall a questionnaire on a website where the question was "What tools do you use for PHP development?" Dreamweaver was not even on the list of choices.
    Serious php developers don't  - you're right - but for those who don't program php/mysql on a daily or even weekly basis, but occasionally have the need for it, they do. Most websites can benefit from having a backend database these days and at a time when databases are main stream Adobe decide to ditch what was a premium attraction of the software, completely senseless decision. A few years ago when static sites were main stream Macromedia were ahead of the game an introduced the Server Behaviours. I guess the top brass in charge at the time (Macromedia) weren't smoking crack all day and instead listening to what their customers wanted.

  • How to conncet mysql database and oracle database 11g2 on linux 5.4

    Hi,
    Can anyone help me to connect mysql server database to Oracle
    database on Linux OS?
    I have done all things, but I am getting a problem in installing dg4odbc
    driver on Oracle database. In a simple word, I don't know how to create
    listener between mysql database and Oracle database.
    If anyone knows that please help me in configuring dg4odbc for Oracle. OS
    -Linux 5.4 and refer any doc or link.
    oracle 11g2 11.2.0.1
    i follow the metalink id - 466228.1 ( but cant successed).
    Thanks and regards,
    pritesh ranjan

    hi pl z clear me it is required to install manully the dg4odbc driver for oracle to connect MySQL server database. because in my $ORACLE_HOME/hs/admin/initdg4odbc.ora is present automatically.
    details of the initdg4odbc.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for the Database Gateway for ODBC
    # HS init parameters
    HS_FDS_CONNECT_INFO = mysql_odbc
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc5w.so
    # ODBC specific environment variables
    set ODBCINI=/etc/odbc.ini
    set LD_LIBRARY_PATH=/usr/lib
    # Environment variables required for the non-Oracle system
    #set HOME=/home/oracle
    ~
    ~
    ~
    "initdg4odbc.ora" 20L, 437C
    details of the listener.ora file
    DG4ODBC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA=(SID=dg4odbc))
    (HS=OK)
    SID_LIST_ORCL =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = orcl)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = ORCL)
    ADR_BASE_DG4ODBC = /u01/app/oracle
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pritesh11gprim.oracle.com)(PORT = 1521))
    ADR_BASE_ORCL = /u01/app/oracle
    "listener.ora" [readonly] 37L, 779C 35,0-1 85%
    details of tnsname.ora file
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.132)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    DG4ODBC =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=DG4ODBC))
    (HS=OK)
    MYSQL =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=MYSQL))
    (HS=OK)
    when i m going to start the listener it could not be started..
    details of the mysql server database
    [root@pritesh11gprim ~]# mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 2
    Server version: 5.6.10 MySQL Community Server (GPL)
    Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    mysql>
    mysql> show databases;
    | Database |
    | information_schema |
    | demo |
    | mysql |
    | performance_schema |
    | pritesh |
    | test |
    6 rows in set (0.01 sec)
    if any where i m wrong then plz suggest me......
    thanks & regards
    pritesh ranjan

  • Cluster database and payroll database

    please let me know what is a cluster database and payroll database, and what are the structures involved in it.
    please let me know as soon as possible as it is very URGENT.
    ADV THANX
    REGARDS,
    VETRIVEL MURUGAN

    You didn't say what platform you are using. I have done clustering with 11i (CRM and HR/Payroll) on Solaris 8 using Sun Cluster 3.
    If you look at http://docs.sun.com/db?p=prod/cluster you will see a number of documents on the subject of clustering. The Data Services guide will tell you clustering an Oracle database and TNS listeners.
    If you want to cluster other components to failover (Apache, Concurrent Manager, Forms Server) you will have to write start, stop and probe scripts for Sun Cluster 3 GDS to use.
    Payroll is the 11i Application suite that delivers payroll functionality, though Oracle are not the only ones that provide this type of software.

  • Which difference parallel database and RAC database

    Hi Experts,
    I saw some document about parallel database and RAC database.
    My boss confused these two product.
    which difference between parallel database and RAC database?
    does parallel database is a "old RAC"?
    Thanks
    Jim

    RAC is the new name with many features for old depreciated Oracle Parallel Server (OPS).
    It was avialable till 8i, since 9i it is called RAC.
    Regards
    Edited by: skvaish1 on Mar 30, 2010 12:59 PM

  • Create Temporary databases and Permanent databases

    Hi,
    How to configure or setup Temporary databases and Permanent databases ?
    Need separate steps to install or setup Temporary / Permanent databases
    Windows 2003 & 32 bit OS and 8 GB RAM
    In web site http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21633/comp.htm#CHDBEDHC
    it is said as it is configured with DSN (Data Source Name)
    but to how to setup Temporary databases and Permanent databases
    Note:Oracle database has not been installed,only Oracle TimesTen has been installed.
    Temporary databases are not stored to disk.
    Permanent databases are stored to disk automatically through a procedure called checkpointing.
    I need to keep the data in memory and need to pass the data to another server via replication or some other way.
    Thanks!

    Hi,
    You dont need to install something. You need to configure your DSN only.
    For creating Temporary database you should set up the Temporary DSN parameter (http://docs.oracle.com/cd/E21901_01/doc/timesten.1122/e21633/using.htm#BCGJAJDI).
    If you want using Permanent database just uncheck Temporary DSN parameter.
    Temporary databases are not stored to disk. Permanent databases are stored to disk automatically through a procedure called checkpointing. No. TimesTen databases (Permanent and Temporary) store data in memory. It is the main purpose. Permanent db saves a copy of data on disk only for recovery purpose. Temporary db doesnt do it.
    regards,
    Gennady

  • How to connect client database to server database

    please provide me the steps that how to connect client database to server database in oracle 10g i am getting error ORA-12560 TNS:Protocol adapter error.

    Why don't you search in this forum ???? There are many link which would help
    ORA-12560 adapter error, connecting to remote database
    ORA-12560: TNS:protocol adapter error
    How to solve ORA-12560:TNS:protocol adapter error?
    ORA-12560: TNS: protocol adapter error

  • Difference between Transaction database and relational database

    Whats the Difference between Transaction database and relational database ??

    'Transaction' refers to the usage of a database.  'Relational' refers to the way in which a given database stores data.
    A 'transaction database' (or operational database) could be relational, hierarchical, et al.  A transaction database supports business process flows and is typically an online, real-time system.  The way in which that data is stored is typically
    based on the application(s).  Companies often have multiple 'transaction databases'.
    An 'operational data store' (ODS) is an integrated view or compilation of transaction data.
    The you get into data warehouse databases, where the transaction data is optimized for querying, reporting, and analysis activities.

  • Problem with local host and server...

    Hi,
    I am facing a problem, I want to update tables that is in my local host server which is now I m using Access , and i want to update my values in server database which is MySQL, is dere any option to do dat...please help me out of dis problem...thanks

    Hope this works...
    Connection conn = java.sql.DriverManager.getConnection(url, username, password);
    Statement stat = conn.createStatement();
    int numberOfAffectedRows = stat.executeUpdate("UPDATE table_name
      + " SET column_name = new_value"
      + " WHERE column_name = some_value");

  • Swapping between client database and web database

    Hi i have completed tutorials etc so can now create the
    sqlite database for my application which is downloaded by the user
    and will run on thier desktop so i am calling it the "client
    database" which contains data they are working with but there is
    another database containing identical tables which i am calling the
    "global database" the idea of this is to transfer data between the
    different clients and backup that information.
    so i am looking for a tutorial or a sample app where the app
    takes information from a web based database and copy's that rob
    into a sqlite database on the clients machine?
    this is the main problem im having and seen people mentioning
    blaze DS and stuff like that, ideally i wouldn't like to use PHP
    but atm is looking like i may have to.
    i will sell my soul to anyone who can help with this lol
    (also i am using FLEX 3.0)

    Hi,
    Yes, if you use LCDS everything is there already for you, so
    that you can complete this application in very less time. Since you
    want to use PHP, you can use Zend PHP, which will support Remoting
    using AMF. Using Zend PHP, write PHP classes which will help you to
    synchronize data between server and client and just invoke those
    from your Flex application when required.
    Hope this helps.

  • Can I have a primary database and standby database with a different windows version?

    Hi
    I need your help.
    We need to increase the memory in the server where is the standby database , but first, we need to upgrade the windows version.
    The actual version is windows 2003 standard edition 64 bits
    The new version will be windows 2003 enterprise  edition 64 bits
    This difference in windows version  between primary and standby servers can cause a problem in the synchronization between primary and standby databases ??
    What do you recommend? Have both servers in the same windows version?
    The databases are in SQL SERVER 2005.
    Thanks.
    Loreinn

    This difference in windows version  between primary and standby servers can cause a problem in the synchronization between primary
    and standby databases ??<o:p></o:p>
    There is no issue with database synchronization as long as SQL Server is of same version.<o:p></o:p>
    What do you recommend? Have both servers in the same windows version?<o:p></o:p>
    OS(Windows version) has no restriction for using SQL server 2005 database mirroring/log shipping. You can go with upgrade without any worries on SQL
    database side.<o:p></o:p>

  • SECURITY PATCH ON STANDBY DATABASE AND PRIMARY DATABASE

    I have a question on applying CPU on standby and primary database
    I have a standby database on machine2 and primary on machine1
    I applied a CPU patch on the Oracle Home of Standby database and
    did not run the catcpu.sql as standbydatabase is in mount state.
    Now i am going to apply the CPU patch on primary database.
    What i need to confirm is that after i apply the patch on primary database oracle home
    and run the cat cpu.sql on that do i have to do anything on the standby database
    for instance rebuilding it or something or the change would be shipped to the standby
    server automatically.
    The purpose is to have the primary and standby database on the same patch level
    in case of a failover
    Please let me know asap

    Any one has any idea on this. Any ideas would be appreciated

  • Modify master database and client database simultanously

    Hello,
    I am developing a software based on Oracle Database Lite for a student research project which is a flight booking system, and I have the following requirement:
    In some cases, I need to do a modification on the master database and the client database simultanously. In my case, a flight booking is only possible when a server connection ist available. This is necessary to check if there are still seats available for a flight. If there are, the resulting changes shall be done on the client and the server database simultanously, using a distributed transaction.
    Does Oracle Database Lite have a mechanism for that, or is there someting like an "online mode"? I could not find any information about it in the documentation. Or do I have to implement a distributed transaction myself, for example using webservices?
    Message was edited by:
    user615624
    Annotation: I am using Oracle Lite on Windows Mobile 5.0 and I am using the .NET Compact Framework 3.5

    I am not sure how you would do it in Windows but with Java, I would have a static connection manager. If a connected online state is required, then just use to Oracle driver instead of the oracle lite with the new credentials and that should fix your situation.

  • Is there any difference in oracle database and forms database

    i want to know is there any difference in oracle database and forms 6i database
    ,if i import some file through oracle database then same data will exist in forms database or not
    thanks

    Oracle Forms is a Rapid Application Development (RAD) tool not a database. With Forms, you connect to an Oracle database to query and display data from the database as well as insert new or update existing data. Consequently, if exists in the database - you should be able to display it in a Form.
    Craig...

Maybe you are looking for