Solved

how to query oracle from mysql

Posted on 2014-02-19
5
1,258 Views
Last Modified: 2014-03-18
Greetings,
I would like to create a link in my mysql instance to allow me to perform select statements against oracle.  What I am going to do is create a user in oracle with select privledges only, and in stored procedures I am going to perform said select statements as source data from oracle and land them in mysql.

Thanks much
0
Comment
Question by:Evan Cutler
  • 3
5 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 39870659
from what I know, this is not possible.
you can (using federated engine tables) query remote mysql tables, but not other database engines.

the other way round would work, using oracle odbc db link gateways:
http://docs.oracle.com/cd/B28359_01/gateways.111/b31042/configodbc.htm
0
 
LVL 9

Author Comment

by:Evan Cutler
ID: 39870832
ok...how about the reverse....can I cannect to mysql tables remotely and push?
like this?

1. create oracle username.
2. Give username select privs on my other schemas
3. create dblink to Mysql
4. drop into Mysql???

Thanks
0
 
LVL 23

Expert Comment

by:David
ID: 39871045
I can't jump into this yet, but provide the versions please.  Always a help.
0
 
LVL 9

Author Comment

by:Evan Cutler
ID: 39871055
Thanks...
mysql 5.0.95-5.el5_9  on red hat
oracle 11g on red hat
0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 39937221
Thank you very much.  While I couldn't work the solution I needed.  I added this to my knowledge base and asked my DBAs to research this as a resolution.  If I have any further questions, I'll let you know.

Evan
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problems using Provider=OraOLEDB.Oracle via VBScript/Classic ASP 5 44
Substring() and LEFT() syntax 4 21
oracle 11g 23 45
PL/SQL Display based on value 4 16
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

947 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

18 Experts available now in Live!

Get 1:1 Help Now