?
Solved

SQL developer query - exist statement to compare data in Oracle DB to MS SQL DB

Posted on 2013-11-01
2
Medium Priority
?
439 Views
Last Modified: 2013-11-14
Hi there

I'm using SQL Developer (2.1.1.64), and have both a connection to an Oracle database and a MS SQL database.
In a particular table in the Oracle DB I have a field info that should exist in a respective table/field in the MS SQL database.
How can I create an 'exists' statement to compare the two?


Thanks
0
Comment
Question by:UBB
[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 Comments
 
LVL 40

Accepted Solution

by:
lcohan earned 750 total points
ID: 39616866
(unfortunately) I don't think that is possible from ORACLE tools to SQL however...SQL Server provides Linked Server to ORACLE functionality including via native ORACLE OLEDB driver so you could write such script and execute it in SQL where you compare the table/column from SQL Server database against ORACLE_linkedServer.Ora_database.SchemaName.TableName

That's the easiest way as far as I can see it and either way you can use full name qualifier via SQL Linked Servers
"How to set up and troubleshoot a linked server to an Oracle database in SQL Server"
http://support.microsoft.com/kb/280106
0
 
LVL 66

Assisted Solution

by:Jim Horn
Jim Horn earned 750 total points
ID: 39627195
This can also be done in an SSIS data flow tasks, with a data source for one of these (SQL Server or Oracle), then a lookup task that defines the second one, and the column(s) you wish to JOIN the two tables, and any new column(s) to bring along for the ride.

Also, the output of the Lookup tasks will have separate paths for whether a match was found or not.
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

752 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