Solved

MS Access and Oracle ODBC insert

Posted on 2012-03-13
4
288 Views
Last Modified: 2012-03-17
I just left a project and was wondering how this would be accomplished. There is an access database that is managed by another group and we need that data in our Oracle tables. We have a query already in access that will join the various tables in the Access Database and the result of the query is in the exact layout of our Oracle Table. How would we go about creating an ODBC connection and executing an insert based on the result of the Access query?

I have done ODBC connections to view Oracle tables in Access, but never tried an insert and truncate from Access back to Oracle.
0
Comment
Question by:mjfigur
[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
  • 2
4 Comments
 
LVL 16

Expert Comment

by:Wasim Akram Shaik
ID: 37718497
Yes, it can be done using the Database Gateway, you haven't mentioned the version of your oracle..

There is one article on EE written by sdstuber which will help you in this regard, refer to this article ..

http://www.experts-exchange.com/Database/Oracle/A_9850-Configuring-and-using-Oracle-Database-Gateway-for-ODBC.html
0
 

Author Comment

by:mjfigur
ID: 37722399
Thank you so much I will check this out. We are currently using Oracle 11g
0
 
LVL 35

Accepted Solution

by:
johnsone earned 500 total points
ID: 37724792
Gateway would be used to pull the data from the Oracle side.  It sounds more like you are trying to push it from the Access side.  If that is the case, then you don't need Gateway.  Simply having ODBC set up correctly will work.

As long as you can select from the Oracle database from Access and all the links are set up correctly, you insert the same way you would select.  I prefer to use passthru queries in Access as you have more control over how the query is constructed.
0
 

Author Closing Comment

by:mjfigur
ID: 37732747
Thank you ODBC was exactly what I was looking for in this situation.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
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…

688 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