Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Database Synchronization

Database Synchronization

Scheduled Pinned Locked Moved Database
databasehelpannouncement
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KingJames06
    wrote on last edited by
    #1

    Hi guys, I need to update the data in local database from other database automatically, by date or suggest if there is other way thanks for the help :)

    J L E 3 Replies Last reply
    0
    • K KingJames06

      Hi guys, I need to update the data in local database from other database automatically, by date or suggest if there is other way thanks for the help :)

      J Offline
      J Offline
      Jorgen Andersson
      wrote on last edited by
      #2

      Depends, on the connection, databases used, and your data. Running a script on a timer is the obvious way, but you might want to take a look into materialized views, or indexed views depending on your flavour of RDBMS. I don't necessarily recommend it, it depends.

      Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

      K 1 Reply Last reply
      0
      • J Jorgen Andersson

        Depends, on the connection, databases used, and your data. Running a script on a timer is the obvious way, but you might want to take a look into materialized views, or indexed views depending on your flavour of RDBMS. I don't necessarily recommend it, it depends.

        Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

        K Offline
        K Offline
        KingJames06
        wrote on last edited by
        #3

        Hi, Im using 2 oracle databases how this could be possibly done?

        J 2 Replies Last reply
        0
        • K KingJames06

          Hi guys, I need to update the data in local database from other database automatically, by date or suggest if there is other way thanks for the help :)

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          One option would be to use the Sync Framework[^].

          Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

          K 1 Reply Last reply
          0
          • L Lost User

            One option would be to use the Sync Framework[^].

            Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

            K Offline
            K Offline
            KingJames06
            wrote on last edited by
            #5

            Hi, can I use stored procedure to sync data from other database using DBLink? What are the possible querries that I need to do in this process?

            L 1 Reply Last reply
            0
            • K KingJames06

              Hi, can I use stored procedure to sync data from other database using DBLink? What are the possible querries that I need to do in this process?

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              KingJames06 wrote:

              Hi, can I use stored procedure to sync data from other database using DBLink?

              Dunno, I don't know DBLink. Hence, I can also not say if it is an easier or more efficient approach than the Sync Framework which I did recommend.

              KingJames06 wrote:

              What are the possible querries that I need to do in this process?

              Depends on your database and it's structure. Syncing is a delicate process, I suggest you take a few days to read everything on the topic that you can find :)

              Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

              1 Reply Last reply
              0
              • K KingJames06

                Hi, Im using 2 oracle databases how this could be possibly done?

                J Offline
                J Offline
                Jorgen Andersson
                wrote on last edited by
                #7

                Start with creating a database link. Here's[^] the reference. But as the Oracle reference sucks for learning, I suggest that you google it instead. There's a ton of info on the net. When you have created the link you should be able to SELECT * FROM mytable@the_other_server. If this works you can either run a script to update the tables on your server, or create a materialized view that does this automatically. How to create a materialized view is a much to big subject to answer here, I suggest google again. Just remember that there are a lot of conditions that needs to be met to get a MV to work.

                Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

                1 Reply Last reply
                0
                • K KingJames06

                  Hi, Im using 2 oracle databases how this could be possibly done?

                  J Offline
                  J Offline
                  Jorgen Andersson
                  wrote on last edited by
                  #8

                  More info on Advanced Replication[^] It always helps having the right search term. You can also find Advanced Replication setup in the Oracle Enterprise Manager under the Data Movement tab.

                  Light moves faster than sound. That is why some people appear bright, until you hear them speak. List of common misconceptions

                  1 Reply Last reply
                  0
                  • K KingJames06

                    Hi guys, I need to update the data in local database from other database automatically, by date or suggest if there is other way thanks for the help :)

                    E Offline
                    E Offline
                    ENOTTY
                    wrote on last edited by
                    #9

                    Use SymmetricDS: http://www.symmetricds.org/[^]

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups