Solved

Best way to update an Oracle Table?

Posted on 2009-07-09
5
631 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
ID: 24813885
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
ID: 24813901
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
ID: 24814202
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 35

Expert Comment

by:Mark Geerlings
ID: 24814215
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
ID: 31601601
Thanks! that worked  Alos thanks to others as well, they were basically point in the same direction.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hit enter key to run macro 13 23
ms access filter query with empty combobox 5 29
SetFocus doesn't wait for input 14 33
My SQL as Backend for Access 3 17
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

778 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