Home > Ask the Oracle Database / Applications Experts > Oracle 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.


>
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
Oracle database design and architecture
How to use V$SEGMENT_STATISTICS to find the most accessed Oracle table
Can I install an Oracle client on Windows 7?
How to use the Oracle Database Upgrade Assistant (DBUA)
Can I specify Oracle column order in my database table?
Can I have a single Oracle 11g RAC instance across multiple databases?
How to use the Oracle export utility to duplicate database structure
How to choose the primary key columns in an Oracle table
Understanding the data archiving definition
How to plan Oracle Grid Control Repository maintenance
What Linux flavor should I use for my Linux proof of concept in Oracle?

Oracle data and application integration
Users caution to look before you leap with Oracle Fusion Applications
Oracle CRM On Demand data integration raises big issues
Q&A: Oracle's Lenley Hensarling on integrating Value Chain apps with EnterpriseOne
Oracle brings Fusion Middleware into the modern age
Risk analysis software now part of Oracle Agile PLM software portfolio
SearchOracle.com podcasts
Special Report: Collaborate '09
Oracle and Java: Some think advisory board would comfort users
Oracle New Year's resolutions, part 1: Advice for navigating 2009
Oracle to acquire application service management firm

Oracle database export, import and migration
How to perform Oracle database recovery with a corrupt online redo log
How to use the Oracle export utility to duplicate database structure
How to perform an Oracle 8i to 10g migration
Oracle upgrade process vs. Oracle exp/imp for 9i to 10g migration
Coca-Cola Bottling swaps out Oracle for DB2
Oracle releases new database, says 11g upgrade will cut costs
EnterpriseDB offers Oracle database users a 'bailout program'
Oracle data export guide
Solving common Oracle errors guide
Oracle and SQL Server: BFF?

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



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

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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