Oracle 10g vs Oracle 11g query performance

Hi everyone,
We are moving from Oracle 10g to Oracle 11g database.
I have a query which in Oracle 1g takes 85 seconds to run, but when I run the same query in Oracle 11g database, it takes 635 seconds.
I have confirmed that all indexes on tables involved are enabled.
Does anyone have any pointers, what should I look into. I have compared explain plans and clearly they are different. Oracle 11g is taking a different approach than Oracle 1g.
Thanks

Pl post details of OS versions, exact database versions (to 4 digits) and init.ora parameters of the 10g and 11g databases. Have statistics been gathered after the upgrade ?
For posting tuning requests, pl see these threads
HOW TO: Post a SQL statement tuning request - template posting
When your query takes too long ...
Pl see if the SQL Performance Analyzer can help - MOS Doc 562899.1 (TESTING SQL PERFORMANCE IMPACT OF AN ORACLE 9i TO ORACLE DATABASE 10g RELEASE 2 UPGRADE WITH SQL PERFORMANCE ANALYZER)
HTH
Srini

Similar Messages

  • SQL performance slow -- oracle 10g to oracle 11g

    Hi,
    We are have two development server, here we can call server10 and server11.
    Server’s having same hardware and OS, but different oracle version, server 10 and server 11 having oracle 10g and oracle 11g respectively.
    Problem, when you run sql query in oracle 11g it’s very slow compare to oracle 10g server.
    Here I have checked
    1)     sga size – comparatively 11g size is big
    2)     no full table scan
    OS – SUN
    DB: 11.1.0.7.0, 10.2.0.4.0

    mmee wrote:
    Hi,
    We are have two development server, here we can call server10 and server11.
    Server’s having same hardware and OS, but different oracle version, server 10 and server 11 having oracle 10g and oracle 11g respectively.
    Problem, when you run sql query in oracle 11g it’s very slow compare to oracle 10g server.
    Here I have checked
    1)     sga size – comparatively 11g size is big
    2)     no full table scan
    OS – SUN
    DB: 11.1.0.7.0, 10.2.0.4.0If the query is running slow, the sga size should not be the first thing to check. PLease post the execution plans of the queries from both the servers. Please try to post the tkprof output of the trace of both. The reason for this that explain plan may lie to us about what has happened but trace would be the real picture only.
    HTH
    Aman....
    PS: Don't forget to use the code tag and using the Preview tab to see how the code looks. A better formatted post would most likely get better attention and response.

  • Upgrade steps needed - Oracle 10g to Oracle 11g in RHEL 4

    Hello,
    Am in the process of upgrading oracle 10g with 10.1.4.3 IDM,10.1.0.5 DB and 10.1.4.2 portal version to Oracle 11g. Now I see that there are some compatibilities in the OS. I have RHEL 4 and when I check the compatibility guide I see that it is possible to install/upgrade the oracle to 11g. But am worried on the kernel and packages which is needed for Oracle 11g. If there is any step by step assistance on this please guide me. Also I have an another query can I upgrade the OS RHEL 4 to RHEL 5 and then Oracle 10g to Oracle 11g. Will I be seeing any issue after the OS upgrade with product upgrade. Kindly advise me.
    R/Ganesh

    This is all about libraries, some libraries between RHEL 4 and 5 had change and this may lead to malfunction of some products, cause they have been copiled using old libraries that doesn't exist now, even I think in the upgradres there are compatibility modes where let you keep old libraries, anyway seems a difficult thing to do. If you plan to move RHEL 4 to 5, I think this is your first step and then install again the Portal in the old version, and then make the upgrade, If you make this step by step, as firts install RHEL 5, install db, install portal, upgrade DB and finaly upgrade portal, would be easier. You may want to read the Master note for this upgrades in oracle Support 873751.1
    Greetings.

  • Upgrade Oracle 10g RAC - Oracle 11g RAC on Linux Environment

    We are planning to Upgrade our databases to Oracle 10g RAC - Oracle 11g RAC which is Linux Environment. Kindly suggest me the best option for migration. Our production database size is 80GB.
    - Frest installation of oracle 11g using export/iimport dumps
    - Migration
    - Upgrade process
    Any information regarding this will be appreciated.

    Pl identify exact versions of "10g" and "11g", along with the exact OS versions.
    Pl see the upgrade doc - http://docs.oracle.com/cd/E11882_01/server.112/e23633/toc.htm
    HTH
    Srini

  • Difference btween oracle 10G database & oracle 11G database

    Hi
    i have a web application have 10G database engine, now i will upload it on a host server witch supports oracle 11G database.
    can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.
    what can i do?
    please suggest me
    thank you

    Hi,
    Difference btween oracle 10G database & oracle 11G database Here is a complete list:
    http://www.dba-oracle.com/oracle11g/oracle_11g_new_features.htm
    can i export Dump file from my Oracle10g database and import it into oracle 11G database successful.Yes. Oracle supports backward compatibility . . .
    You mght not, however do it the other way . . .
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/t_oracle_tuning_book.htm
    "Time flies like an arrow; Fruit flies like a banana".

  • What are the major differences between oracle 10g and oracle express 10g

    Hi
    Can anyone tell, What are the major differences between[b] oracle 10g and oracle express 10g.
    Or if you know any URL, then please do let me know.
    Advance Thanks
    JC

    Dear sir,
    here it is.
    http://www.oracle.com/database/product_editions.html

  • Need to download a tool to make reports from Oracle 10g or Oracle 11R1

    Hello,
    need to download a tool to make reports from Oracle 10g or Oracle 11Release 1,      
    but not too well from where to download it, my system is 32 bits
    thanks

    All Oracle product downloads are available from http://download.oracle.com or http://edelivery.oracle.com
    Before going to the download site, you may want to review the available tools. Go to http://otn.oracle.com and check out the white papers and info under Products : Developer Tools

  • Will Oracle 10g and Oracle XE happily co-exist on same machine?

    I can't seem to find anything specifically saying that Oracle 10g and Oracle XE can be installed on the same Windows machine. The only reason I'd want to do this is that I originally had the free version on my Windows machine. The uninstaller nevers seems to run a complete job and always leaves bits over. So I'd like to install Oracle 10g alongside Oracle XE.
    Wondered if anybody had done this already?

    to uninstall Oracle, do the following:
    1. Uninstall all Oracle components using the Oracle Universal Installer (OUI).
    2. Run regedit.exe and delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE key. This contains registry entires for all Oracle products.
    Delete any references to Oracle services left behind in the following part of the registry:
    HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Ora*
    It should be pretty obvious which ones relate to Oracle.
    4. Reboot your machine.
    5. Delete the "C:\Oracle" directory, or whatever directory is your ORACLE_BASE.
    6. Delete the "C:\Program Files\Oracle" directory.
    7. Empty the contents of your "c:\temp" directory.
    8. Empty your recycle bin.
    At this point your machine will be as clean of Oracle components as it can be.
    Remember, manually editing your registry can be very destructive and force an OS reinstall so only do it as a last resort.

  • Issue with "Select Distinct" query in Oracle 10g against Oracle 9i

    Hi,
    I would appreciate if some one help me here because it is really urgent.
    We are upgrading our database from 9i to 10g.
    There are the "Select distinct" queries in the code which populated the grid on the applications screens. We found a difference in 9i and 10g the way the result is populated for these queries. If "Select Distinct" query wihtout a order by clause is executed in 9i then the result is automatically sorted. But Oracle 10g does not do this.
    We can change the queries adding order by clause but we are almost at the end of the testing and want to know if there is any way that we can do this from database settings. Would there be any impact of these settings change on overall operation of Oracle 10g?
    I would appreciate if some one can help me here.
    Thanks,
    Dinesh

    then the result is automatically sorted.No. Oracle may have done a sort operation to perform the distinct, but it still did not guarantee the order of your results.
    In 10g and in 9i, if you want your results in a certain order you must use order by.

  • Oracle 10g OLAP to 11g OLAP upgrade ?

    We currently are planning on a upgrade from 10g OLAP => 11g OLAP. We currently have 12 AWM's in 10g OLAP which we need to move over with associated DML programs and additional SQL reporting views.
    Questions:
    1. Is there any documentation available on necessary steps for 10g OLAP => 11g OLAP upgrade?
    2. What would happen to existing AWM's prepared in 10g, would they be migrated to 11g transparently or have to be re-created?
    3. Is there any specific documentation related to changes in way cube builds are done programatically?
    4. Any changes in the way limit maps work in 11g?
    Please advise.
    Thanks,
    Sudip

    Migrating a 10g cube to 11g depends on whether you are talking about 11gR1 or 11gR2. 10g cubes continue to operate in the "10g way" even after a database upgrade. They will not become "11g cubes" until they are rebuilt after the database upgrade. In 11gR2, there is a supported way to migrate 10g cubes to 11g cubes, both with AWM and with PL/SQL. Sorry to say... this functionality doesn't exist in 11gR1: you'll have to rebuild your cubes from the ground up.
    The SQL relational views built using the AWM plugin in 10g are no longer applicable in 11g. That's because OLAP cubes in 11g are registered in the oracle data dictionary (just like other Oracle objects), and the SQL relational views are managed in the database and a recognized part of the product. The SQL relational views are quite different in 11g, so you will likely have to rewrite queries against them.
    LIMIT map syntax is the same, but performance is much better.
    See if this blog entry helps:
    http://www.rittmanmead.com/2009/10/09/olap-10gr2-and-dense-looping/
    Edited by: Stewart Bryson on Feb 19, 2010 8:40 AM

  • Xpath difference between Oracle 10g and Oracle 11g

    All,
    I'm working on moving our existing stored functions from Oracle 10g (10.2.0.4.0) to Oracle 11g (11.2.0.1.0) and so far, everything has worked just fine on Oracle 11g...execpt for one xpath statement.
    The statement below works fine in Oracle 10g (10.2.0.4.0):
    extractValue(inv_dtl_img, '/service//ground/sortKeyCode') AS "srt_key_cd",
    Please note: I need to use the double slash "//" in order to ignore the two different elements in the schema.
    However, in Oracle 11g (11.2.0.1.0), when this statement is executed in the stored function, I get this:
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected - got -
    The extractValue command is pulling data out of an XMLType column, and the corresponding XML schema looks like:
    <service>
    <trans>
    <ground>
    <sortKeyCode>
    </sortKeyCode>
    </ground>
    </trans>
    <nontrans>
    <ground minOccurs=0>
    <sortKeyCode>
    </sortKeyCode>
    </ground>
    </nontrans>
    </service>
    Please note: In the XML message, the "trans" and "nontrans" elements are exclusive, so both will never be populated at the same time. A typical XML message would look like this:
    <service><trans><ground><sortKeyCode>3</sortKeyCode></ground></trans></service>
    or this:
    <service><nontrans><ground><sortKeyCode>5</sortKeyCode></ground></nontrans></service>
    In the schema, the sortKeyCode has been defined in both places as "string maxlen=3", so the datatype of that element is exactly the same in both the "trans" and "nontrans" sections of the schema. The only difference in the schema (outside of the trans and nontrans tags) is the fact that the second "ground" tag is defined with a "minOccurs=0". Could Oracle 11g be treating the schema differently than Oracle 10g, resulting in the error?
    Any thoughts would be appreciated.

    The only way to get an quick answer to that one is to file a service request with Oracle support. It could be a bug or a correct change regarding W3C behavior. Despite this, you moving to 11.2, the extract/extractvalue etc propriety Oracle solutions are deprecated from 11.2 and onwards. The more sensible way to move forward, although, I know more work intensive, is to apply the XQuery alternatives like xmlexist, xquery or xmltable functions.
    Moving to EXTRACT is a bad idea, because this alway will be treated as an XML fragment. If you unlucky then Oracle will deal with this in memory via DOM (the standard solution regarding XML parsing if every smart thing within Oracle can not be applied) and this will result in a performance downgrade due to high CPU and Memory consumption/overhead...
    Your pick...

  • Difference between Oracle 10g and Oracle 11g when using Distinct in SQL

    Hi All,
    When I use Distinct in Oracle 10g, the result would be sorted in ascending order automatically, while there is no sorting in the result set in Oracle 11g.
    I was using plsql developer to run my sql.
    May I know if anyone have the same experience before?
    Is there any kind of setting in 11g that I can make the result in order? Thanks!
    Edited by: user5810051 on 2011/4/6 下午 8:47

    As acadet says, if you want your result ordered you must specify an ORDER BY clause in your query. Just because previous versions of oracle included some ordering as part of the processing of a query, that was not a guaranteed ordering, but just a side-effect. Now that Oracle have improved the internal workings, they've removed the side-effect, and that's why you're not getting the ordering you want, because you were relying on that side-effect rather than explicitly stating the order you wanted.

  • Oracle 10g Enterprise vs Standard Edition performance

    For a database hosted on a single machine is there any performance advantage in using Oracle 10g Enterprise Edition over Standard Edition? For our application we do not require data warehousing or OLAP, just the ability to store and query a large amount of XML as CLOBs or using sturctured mapping.
    I have looked at online documentation but have not been able to find the answer. Any advice would be appreciated.

    Probably not. Unless there is some EE feature you can leverage, there probably won't be a performance difference.
    Justin

  • Oracle 10g Vs Oracle 11g Scripts

    Hi
    We have a production environment that has Oracle 11g and development environment with Oracle 10g.
    Scripts for:
    1. Creating tables with constraints
    2. Insert/Update/Delete records
    3. Create Triggers
    4. Create Stored Procedure
    will be developed in Oracle 10g. These scripts will be executed in Oracle 11d production environment.
    Will this create any issue?
    Are they any syntax/procedure change in Oracle 11g?
    Help required...
    Thanks
    Shoba Anandhan

    What version of Oracle will you be running in test?
    Why would you be running different Oracle versions in different environments? That doesn't generally make much sense other than when you are in the middle of an upgrade in which case you would have upgraded the development environment first, not last.
    For the most part, ignoring bugs and the occasional depricated package, code that compiles in 10g should compile in 11g. But there is no guarantee that the behavior (particularly performance) will be similar. You'd need to verify that each script works correctly in the new environment.
    Look at it this way-- would you blindly upgrade your production database from 10g to 11g without retesting the application? If you wouldn't do that, you shouldn't assume that the same script will behave exactly the same way in 11g as 10g. Most things will almost certainly work the same-- you just won't necessarily know where the deviations are until you try it.
    Justin

  • Weblogic 8.1.6 and Oracle 9.2.0.8 - query performance

    Folks,
    We are upgrading WebLogic from 8.1.5 to 8.1.6 and Oracle from 9.2.0.6 to 9.2.0.8. We use the Oracle thin client driver for 9.2.0.8 to connect from the application to Oracle.
    When we use the following combination of the stack we see SQL query performance degradation: -
    Oracle 9.2.0.8 database, Oracle 9.2.0.8 driver, WL 8.1.6
    Oracle 9.2.0.8 database, Oracle 9.2.0.1 driver, WL 8.1.6
    We do not see the degradation in case of the following: -
    Oracle 9.2.0.8 database, Oracle 9.2.0.1 driver, WL 8.1.5
    Oracle 9.2.0.6 database, Oracle 9.2.0.1 driver, WL 8.1.5
    This shows that the problem could be with the WL 8.1.6 version and I was wondering if any of you have faced this before? The query retrieves a set of data from Oracle none of which contain the AsciiStream data type, which is noted as a problem in WL 8.1.6, but that too, only for WL JDBC drivers.
    Any ideas appreciated.

    Folks,
    We are upgrading WebLogic from 8.1.5 to 8.1.6 and Oracle from 9.2.0.6 to 9.2.0.8. We use the Oracle thin client driver for 9.2.0.8 to connect from the application to Oracle.
    When we use the following combination of the stack we see SQL query performance degradation: -
    Oracle 9.2.0.8 database, Oracle 9.2.0.8 driver, WL 8.1.6
    Oracle 9.2.0.8 database, Oracle 9.2.0.1 driver, WL 8.1.6
    We do not see the degradation in case of the following: -
    Oracle 9.2.0.8 database, Oracle 9.2.0.1 driver, WL 8.1.5
    Oracle 9.2.0.6 database, Oracle 9.2.0.1 driver, WL 8.1.5
    This shows that the problem could be with the WL 8.1.6 version and I was wondering if any of you have faced this before? The query retrieves a set of data from Oracle none of which contain the AsciiStream data type, which is noted as a problem in WL 8.1.6, but that too, only for WL JDBC drivers.
    Any ideas appreciated.

Maybe you are looking for

  • How to use downloaded gallery in your portfolio website?

    i'm fairly new to flash and decided to build my own portfolio website. using flash cs4 the overall website is looking and functioning fine but i want to add an image gallery. I downloaded one which included .fla .as xml and swf files but i dont know

  • Materialized view with date dependencies.

    can I create a materialized view that will depend on sysdate? that means that I have to automaticaly rebuild the mv everymonth (in my case).

  • Dynamic table name from Arguments in cfquery /

    I'm trying to use dynamic table names in a cfc but seem to have hit upon a wall as my calling methods from flash keep hitting my _error methods - Code attached to show what I'm trying to achieve; if anyone can give me some pointers it would be a grea

  • Problem Refreshing Query Definition on Workbook

    Hi guys ....i have a very strange case.....in 3.5 users can execute workbooks without problems and also can change global and local definition of the query on formulas and keyfigures....but the column header texts are not updated in workbook....i hav

  • Data Transmission via Ad Hoc Network in LabVIEW

    Hi, I'm trying to transmit some data (position, velocity, and etc) from a laptop to a host computer. Both the laptop and the desktop have wireless card installed so I thought it would be a good idea to transmit the data via Wi-Fi using TCP. However,