Home > Ask the Oracle Experts > Database Design and Architecture Questions & Answers > Merging records in Access and Oracle
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Merging records in Access and Oracle

Brian Peasland EXPERT RESPONSE FROM: Brian Peasland

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 02 February 2007

I developed an application using VB.NET 2003 and MS Access XP. This app is running in low config machines. It is a standalone application. This app is running in five different places and so I have given place code in the primary key field to distinguish records and facilitate merging into one database.

In the second level of development, the user will enter two dates and the related records will be written in a temporary database that has the exact structure as of its original MS Access database. We call this Buffer Database. As the user enters two dates and presses the EXPORT button, old records of Buffer Database will get erased and the resulting records between entered two dates will fill the Buffer Database. This Buffer Database will be copied onto pen-drive or CD and will be brought to the main office where all data is to be merged. Every place will send its own Buffer Database on month-end, and the data will be merged on the main office computer.

The main office computer is having Oracle 10g Express Edition installed. Initially we want to test this with the Express Edition. Later we can move to the Standard Edition. The VB.NET program installed on the main office computer will read records table-by-table and insert into the Oracle database that also has the same structure as of the original Access and Buffer Database. Here we are facing problems.

Firstly, we need to check each row of a table to be inserted in the Oracle database to ensure that unique record is being inserted. Secondly, we also need to ensure that any existing record, if it might have changed, then updating is to be done in the Oracle database.

We tried available migration tools, but they will migrate whole for the first time but will not track existing records. And there I cannot find any synchronization tool for Access-Oracle. Though a few are available for Access-MySQL.

Please suggest some tips on how to effectively merge records in the Oracle database so that the database maintains integrity.


>
EXPERT RESPONSE
Part of the problem is that your source database and your destination database are two different platforms. For this type of data transfer, I look towards one of two avenues. One, using Oracle's Transparent Gateways to move the data into Oracle from a non-Oracle data source. Two, leverage a neutral source to act as a middle man. Since you are using XE, you cannot use Transparent Gateways. That leaves a neutral playing field to facilitate the transfer. One option is to dump the data from your MS Access database to flat files. Then use Oracle's External Tables to read from the flat files. You can have SQL statements perform your data validation and insert into Oracle tables those records that are valid from the External Table. The External Table is just a pointer to a flat file. The last option I can think of is to write a utility in some language like Perl which can access databases using ODBC. The Perl program can read from MS Access and write to Oracle.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Database Design and Architecture
Oracle error 942 when exporting a schema
Using exp and imp for Oracle Database when switching platforms
Can I populate tables in MS ACCESS and upload to the Oracle server?
User vs. schema in Oracle
Is there any tool to migrate data from DB2 to Oracle?
Does making an Oracle datafile READ ONLY after a backup change the file?
I have space in log_arch_dest, so why am I getting the ORA-00257 error?
Why am I receiving the ORA-12535 error when using a remote database?
Partitioning a table in Oracle to improve performance
How to set up a job for an SQL query in Oracle 10g Grid Control

Oracle data and application integration
Oracle to acquire application service management firm
Oracle updates its enterprise performance management system, details Hyperion integration
Podcast: Oracle outlines AIA vision
Oracle's 10 steps to get to Fusion rely on Oracle investments
Oracle Fusion Middleware: Top five headlines
Oracle adds Data Integration Suite to middleware family
Oracle-BEA deal means tough choices for middleware buyers
Oracle to buy BEA Systems
Oracle adds Enterprise 2.0 to Fusion Middleware 11g
Oracle scoffs at BEA's buyout proposal

Oracle database export, import and migration
Oracle and SQL Server: BFF?
Oracle as data integrator
Importing from Oracle 8i to Oracle 10g
Export schemas of users of database
Exp/imp for complex cross-platform migration and upgrade
How to export data by date in Oracle
Large data migration from XML database to Oracle 10g
IMP-00017 error message with Oracle import
Can't open database after failed backup export
LOB tables missing with exp/imp move of schema

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts