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

OraOLEDB.Oracle vs. MSDAORA, SQL 32 bit, 64 bit Expand / Collapse
Author
Message
Posted Tuesday, October 23, 2012 9:11 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 6, 2014 12:06 PM
Points: 65, Visits: 399
After upgrading to SQL 2008 R2 on a new 64 bit server, linked queries are running 3 to 4 times as long. On the old 32 bit SQL 2005 system using MSDAORA, the below query takes 7 seconds. On the new 64 bit SQL 2008 R2 system using OraOLEDB.Oracle, it takes 23 seconds.

All of the searches I've done and articles I've read so far, suggest that this slow down is normal. Considering I just upgraded everything and everything else on the server is 2 to 3 times faster, this bothers me. Does anyone here have a solution or idea on how to deal with this?

SELECT *
FROM OPENQUERY(TEST,'Select ku_id, TOT_DATE from SIIY where TOT_DATE > 12252012')
Post #1376126
Posted Tuesday, October 23, 2012 11:45 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 3:03 PM
Points: 1,390, Visits: 6,335
What version of oracle oledb did you install?
Latest can be found here

Apparently there is a networksetting "TCP window scaling" that might be the culprit:
See Oracle support document Oledb and Odbc 64 Bit On Windows 2008 and Windows Vista Have Bad Performances [ID 1264980.1]
or Intermittent Slow Oracle Net from Windows 7/Vista/2008 machines

Not a solution, but what time takes
Select ku_id, TOT_DATE from SIIY where TOT_DATE > 12252012 on the oracle side?
Is TOT_DATE a date or a number? If date I would expect where TOT_DATE > to_date('12252012','MMDDYYYY')

in openquery you have to double the '
*added version of oledb, networksetting TCP Windows Scaling
Post #1376188
Posted Tuesday, October 23, 2012 3:00 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 6, 2014 12:06 PM
Points: 65, Visits: 399
Thanks Jo, I have 11.2.0 installed. TOT_DATE is actually a number. Do you have a link to that Oracle support file? I don't have an account with them and even after I created one, I still can't find it or don't have access. It looks very relavant though.
Post #1376254
Posted Tuesday, October 23, 2012 3:08 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 3:03 PM
Points: 1,390, Visits: 6,335
I can't copy or link the oracle support doc as you need an active account.
Check the blog above, it contains the command below

netsh interface tcp set global autotuninglevel=disabled

Other possible culprits: TCP chimney ofloading (see reference Server 2008 Slow Logon Network Access – TCP Offload & TCP Autotuning )
Post #1376259
Posted Wednesday, October 24, 2012 6:38 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Tuesday, January 28, 2014 8:15 AM
Points: 3,068, Visits: 4,639
scogeb (10/23/2012)
I don't have an account with them and even after I created one, I still can't find it or don't have access.


Account has to be with Metalink. Oracle's knowledge base and customer support system. If you have Oracle (legally) you have the right to have an account. Once you have your Metalink account just search for the ID Jo has listed.


_____________________________________
Pablo (Paul) Berzukov

Author of Understanding Database Administration available at Amazon and other bookstores.

Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Post #1376737
Posted Thursday, October 25, 2012 2:39 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Wednesday, August 6, 2014 12:06 PM
Points: 65, Visits: 399
Thanks all. I did get the article. It looks like a reboot is required after setting the interface so I will have to wait and test during the next approved outage.
Post #1377295
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse