The first reading of data is carried out very slowly

in Oracle Database; Dear It might be better question how to keep the execution plan for the upgrade Oracle from 10g to 11g ...
+ Post Reply + Post New Topic
Results 1 to 5 of 5
  1. #1
    jesthr@gmail.com is offline Junior Member
    Points: 430, Level: 8
    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!


    Hine
    Last edited by jesthr@gmail.com; 05-30-2012 at 08:55 AM.


  2. #2
    Bharat's Avatar
    Bharat is offline Forum Guru
    Points: 21,100, Level: 91
    Join Date
    26 Dec 2011
    Location
    Vijayawada, India
    Posts
    1,090
    Points
    21,100

    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.

  3. #3
    jesthr@gmail.com is offline Junior Member
    Points: 430, Level: 8
    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

  4. #4
    Bharat's Avatar
    Bharat is offline Forum Guru
    Points: 21,100, Level: 91
    Join Date
    26 Dec 2011
    Location
    Vijayawada, India
    Posts
    1,090
    Points
    21,100

    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.

  5. #5
    zargon's Avatar
    zargon is offline Forum Guru
    Points: 20,460, Level: 90
    Join Date
    22 Oct 2008
    Location
    Aurora, CO
    Posts
    1,584
    Points
    20,460

    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
    Bharat says Thanks.

Other Solutions
  1. Replies: 5
    Last Post: 07-12-2011, 08:06 PM
  2. Replies: 2
    Last Post: 03-15-2011, 04:39 AM
  3. Template Code of Site Studio Designer not reading contributor data
    By Mamatha in forum Oracle Webcenter Suite (formerly Oracle ECM)
    Replies: 0
    Last Post: 08-25-2010, 07:22 AM
  4. Replies: 0
    Last Post: 04-07-2010, 07:12 AM
  5. Data Masking helps in reducing data privacy violations
    By debrah.h48 in forum External Resources / Market Place
    Replies: 0
    Last Post: 12-04-2009, 08:16 AM