SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Using OPENQUERY to joing to an Oracle table in an SSIS view fails


Using OPENQUERY to joing to an Oracle table in an SSIS view fails

Author
Message
henry 66733
henry 66733
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 9
I'm having a strange SSIS (SQL Server 208 R2) issue using OPENQUERY. I have created a Linked Server to our Oracle DB and it works great. I created a view that has a JOIN using an OPENQUERY statement that uses that Linked server, and that view also works just fine when queried in Mgmt Studio.

I then tried creating an SSIS package that has an OLEDB source control that queries the view, but it fails with an ORA-01403 error when I try to Preview or run the package. The really odd thing is that if I take the SQL from the View definition and paste it into the OLEDB sourse as a SQL statement (instead of trying to use the view), the Preview and the package runs just fine.

So, it appears that the issue is that accessing a view that has a JOIN to a table using OPENQUERY inside of it doesn't seem to work.

Has anyone seen this scenario before?
davoscollective
davoscollective
SSC Eights!
SSC Eights! (919 reputation)SSC Eights! (919 reputation)SSC Eights! (919 reputation)SSC Eights! (919 reputation)SSC Eights! (919 reputation)SSC Eights! (919 reputation)SSC Eights! (919 reputation)SSC Eights! (919 reputation)

Group: General Forum Members
Points: 919 Visits: 1004
The issue is likely due to the SSIS server (or it's service account) not having permission on the linked Oracle server, especially if SSIS is on a separate server to the SQL Server machine (or running from a different account). You may need to enable access either in the settings for the linked server on the SQL Server machine, or more probably on the Oracle machine.

Rather than using the linked server, why not create an Oracle connector in SSIS and connect to it directly? It will be much quicker.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search