OraOLEDB.Oracle vs. MSDAORA, SQL 32 bit, 64 bit

  • 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')

  • 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[/url]

    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

  • 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.

  • 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[/url]

    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 )

  • 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.
  • 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.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply