Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Oracle 64bit Connectivity


Oracle 64bit Connectivity

Author
Message
ted.stillwell
ted.stillwell
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: 199
I'm having difficulty using a linked server connection from SQL Server 2008 64bit to Oracle. I can set up and test the linked server just fine but when I try to execute a query like so:

select * from openquery (ORACLE_SERVER,'select * from myschema.mytable')

I get the following error message:

Msg 9803, Level 16, State 1, Line 1
Invalid data for type "numeric".

We are able to set up the context and execute this query just fine in a sql server 2005 environment. If I explicitly convert number data types to text like this:

select * from openquery (ORACLE_SERVER,'select to_char(mytableid) as mytableid from myschema.mytable ')

Then I get a result set. For obvious reasons, this will not work in our situation. Unfortunately, I can't find any information related to resolving this general issue on the internet. My Oracle DBA has assured me that the drivers are installed correctly. Any help would be greatly appreciated.

Thanks,
Ted
Perry Citrowske
Perry Citrowske
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 Visits: 33
There is an article in Oracle's knowledgebase called "metalink". Have your oracle dba log into metalink and look up docID 191368.1 entitled "How to create a sql Server linked server with the oracle provider for OLE DB". This article is very specific about how the OLE provider options are to be set. For example, you are to go to the options of the Oracle provider within SQL server and check the boxes "Dynamic Parameters" and "Allow InProcess".

Another thing to remember with Oracle client on the 64-bit box -- is that you will need both the 32-bit and 64-bit clients installed because a 32-bit app will need the 32-bit client and a 64-bit app will need the 64-bit client. And finally, the default install of a 10g client does not include the OLE provider. You have to go back, do a custom install and make sure to check the boxes for the OLE client services.

Hope this helps you solve your problem.
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