Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Using OPENQUERY to joing to an Oracle table in an SSIS view fails Expand / Collapse
Posted Friday, February 22, 2013 11:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, January 28, 2014 5:46 PM
Points: 1, Visits: 8
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?
Post #1423199
Posted Monday, March 4, 2013 11:32 PM



Group: General Forum Members
Last Login: Thursday, December 18, 2014 4:24 AM
Points: 495, Visits: 895
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.
Post #1426609
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse