Solved

Best way to update an Oracle Table?

Posted on 2009-07-09
5
636 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 48

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
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…

733 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