question

ranjeethsvn avatar image
ranjeethsvn asked

Linked Server to Oracle 11g from SQL 2005

We have a linked server which fetches data from Oracle 10.2.0.2-64Bit to SQL Server 2005-64Bit SP2. Now the Oracle server was migrated from Oracle 10.2.0.2 to Oracle 11.2.0.3. When we try to use openquery we are facing the below issue “OLE DB provider "OraOLEDB.Oracle" for linked server "OFAP" returned message "ORA-12592: TNS:bad packet". When we have made below changes 1. We have installed Oracle 11.2.0.3 64 bit on SQL Server Physical Box. 2. Network packet size in SQL Server :- We have increased the packet size from 4096 to 8192. Now we having a new issue. So we did the below analysis 1. We have extracted the query from stored procedure and executed on SQL server where it is getting hanged after fetching 11K records (Out of 26 K records). 2. The same query when executed in SQL PLUS from the Physical Box of SQL Server we were getting the result in 10 sec with a record count of 26K. 3. We have removed two columns from the select list which contains the major data size (Varchar 250) and was executed on SQL server Instance which fetched all the 26K records in 11 to 15 sec. 4. On further dig-up we have used Substring to limit the character from the two columns to return 12 characters, 12 K records were fetched before the session got hanged up. Help on this is much appreciated.
linked-serverlinked
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Is the post below yours? If not have you checked the oracle setting? http://www.sqlservercentral.com/Forums/Topic1408773-1044-1.aspx
0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.