What are the reasons for the SQL query being slow after upgrading the database from Oracle 10.2.0.4
I have upgraded a 2TB database with partitioned tables/indexes from Oracle 10.2.0.4 to Oracle 11.2.0.3. But some multiple queries are running 20 times slower after the upgrade. We have also noticed that even generating explain plan on one of these queries takes 5 seconds in the 11g version whereas the same explain plan generation takes pnly 100 milliseconds in 10g version of the same database. The business is complaining why the same query is taking 20-30 times longer in Oracle 11g even though we haven't changed anything besides the Oracle version was upgraded from 10.2.0.4 to 11.2.0.3.