- 05-30-2012 #1
Junior Member
- Join Date
- 08 Feb 2011
- Posts
- 15
- Points
- 430
The first reading of data is carried out very slowly
Dear
It might be better question how to keep the execution plan for the upgrade Oracle from 10g to 11g
I made uprade Oracle from 1og to 11g on HP-UX system.
ALL the first readeing of data carried out very slowly
The selected table have 10,892,769 records.
I'm executing SQL SELECT COUNT (*) FROM MyTABLE;
The first implementation of this SQL statement carried 8 min and 12 sec
>> COUNT (*) 10,892,769 1 row selected. 8:12
The another implementation of the same SQL statement carried 5 sec.
>> COUNT (*) 10,892,769 1 row selected. 00:05
What can I do to make the first implementation of the SQL statement carried only 5 sec.
Regards!
HineLast edited by jesthr@gmail.com; 05-30-2012 at 08:55 AM.
-
- 05-30-2012 #2
Re: The first reading of data is carried out very slowly
Have you tried to implement same query as select count(*) from MyTABLE; or any other query at another implementation.Regards,
Bharat G.
- 05-30-2012 #3
Junior Member
- Join Date
- 08 Feb 2011
- Posts
- 15
- Points
- 430
Re: The first reading of data is carried out very slowly
I made upgrade Oracle from 10g to 11g.
After upgrade I don' have execution plan!
All first access to any tables carried out very slowly, all other accesses are o.k.
Regards
- 05-30-2012 #4
Re: The first reading of data is carried out very slowly
Dear Hine,
Check out whether those tables having proper indexes or not and also whether they enabled or not.Regards,
Bharat G.
- 05-30-2012 #5
Re: The first reading of data is carried out very slowly
An index won't cause the second query to run in no tiime at all when the first query took such a long time. I've answered this question before in another thread and explained that 11g implements a results cache which definitely speeds up repeated access to a table given that no changes were made between the times of the two or more queries. The cache must be populated before the benefits are seen; for a first run of a query it will take as long as it takes. Yes, an index can help speed access to the data but a count(*) query will do a full table scan in the absence of a primary key index and if there are no unique keys in the data a primary key cannot be created outside of adding a column to the table, populating it with unique values and using it for the key.David Fitzjarrell
Other Solutions
-
Summerizing Data in 30 minute increments... Data comes every 5 minutes....
By beaujest in forum SQL PL/SQLReplies: 5Last Post: 07-12-2011, 08:06 PM -
REP-69: Internal error REP-62203: Internal error reading the image - Unable to render
By Mr.777 in forum Oracle Forms and ReportsReplies: 2Last Post: 03-15-2011, 04:39 AM -
Template Code of Site Studio Designer not reading contributor data
By Mamatha in forum Oracle Webcenter Suite (formerly Oracle ECM)Replies: 0Last Post: 08-25-2010, 07:22 AM -
what query to write to create text data file for uploading data in staging table ?
By Nidhi25 in forum SQL PL/SQLReplies: 0Last Post: 04-07-2010, 07:12 AM -
Data Masking helps in reducing data privacy violations
By debrah.h48 in forum External Resources / Market PlaceReplies: 0Last Post: 12-04-2009, 08:16 AM




