Solved

Best way to update an Oracle Table?

Posted on 2009-07-09
5
629 Views
Last Modified: 2012-05-07
I have an Access table with over a million records.  What is the quickest way to update an Oracle table with these records in access?  export to CSV file and import into Oracle? Oracle SQL import process??  Thanks in advance.

pandkyon
0
Comment
Question by:pandkyon
5 Comments
 
LVL 40

Expert Comment

by:mrjoltcola
Comment Utility
Depends on which version of Oracle. With recent versions, if you can export them to a CSV, then you can create an external table for Oracle and use SQL in Oracle to do merge. Prior to external tables, you would need to use sql loader to pull them into an Oracle staging table, then do an update to the target table. Either way, getting them out of access and into a fixed or delimited format will make it easier for bulk loading with Oracle.

If you have a lot of time, you could use Intelligent Converters Access-to-Oracle tool. It will take a few hours to insert that many. The problem will be if you want to repeatedly do this update, I would probably not use the tool, instead, use a tool that extracts from Access to CSV as fast as possible. Once it is in a flat file, Oracle sql loader or external tables with data pump is the fastest way. It can load a million rows in minutes.

Since I don't know Access so well, I cannot recommend much on that side, except the conversion tool I use, listed above.

0
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
Comment Utility
Creating a dblink to Access from Oracle and update the Oracle table.
Creating CSV file and using external tables is an alternative.
0
 
LVL 14

Expert Comment

by:shru_0409
Comment Utility
Hello,

You should explore access database and see if you can find an option to save data in csv (comma seperated variable) or delimited by any other special character
One of the Easy Way
1) Create csv files from Acess
2) Load to oracle using sqlloader utility or using External tables.

you want to use e.g "|" or "~" ,";" ...
You don't need any special privs to use sqlldr but you do need create, read, and write to directory privs and access to db server for external tables. See following links for examples of sqlldr and external tables.

SqlLoader
http://www.orafaq.com/wiki/SQL*Loader_FAQ

External Tables
http://www.oracle-base.com/articles/10g/OracleDataPump10g.php#ExternalTables
0
 
LVL 34

Expert Comment

by:Mark Geerlings
Comment Utility
The quickest way is export the data from Access into either a CSV or fixed-length ASCII file, then move or copy that file to the Oracle server (unless the Access database is also on the Oracle server) then use Oracle's SQL*Loader (not Oracle import) to load the data into an Oracle table.  You must create the table in Oracle though before you can load this data into it.
0
 

Author Closing Comment

by:pandkyon
Comment Utility
Thanks! that worked  Alos thanks to others as well, they were basically point in the same direction.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now