DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: SOS- system table were analyzed

  1. #1
    Join Date
    Apr 2001
    Posts
    151
    Hi All,

    I accidentally ran analyze all system tables, is there a way to undo it? I ran the script and didn't pay attention of what I was running against. Now the performance is dying, what should I do to "recover it"

    Please help
    Elin@trend

  2. #2
    Join Date
    Apr 2000
    Location
    Baltimore, MD
    Posts
    759
    Oops. Kill session doing the analysis or bounce the db.

  3. #3
    Join Date
    Apr 2001
    Posts
    151
    the analyze has been done.

    what to do... please help

    Elin@trend

  4. #4
    Join Date
    Nov 2000
    Location
    Baltimore, MD USA
    Posts
    1,339
    Whatever you ran last time, run again, but with DELETE STATISTICS.

    ANALYZE TABLE x DELETE STATISTICS;

    - Chris

  5. #5
    Join Date
    Apr 2000
    Location
    Baltimore, MD
    Posts
    759
    Check the performance. Bounce the db. This will clean up everything and things should be fine.

  6. #6
    Join Date
    Apr 2001
    Posts
    151
    Thank you all, my performance is back.

    Could anyone edcuate me "Why can't we ananlyze sys tables?"
    Elin@trend

  7. #7
    Join Date
    Nov 2000
    Location
    Baltimore, MD USA
    Posts
    1,339
    You seem pretty persistent on this one Halo . So are you saying that when the database starts up, it will remove the offending statistics?

    - Chris

  8. #8
    Join Date
    Apr 2000
    Location
    Baltimore, MD
    Posts
    759

    Talking

    No.

  9. #9
    Join Date
    Nov 2000
    Location
    Baltimore, MD USA
    Posts
    1,339
    Okay, so then I'm missing something. :( Why would the performance change if he bounced the server?

    elintrend, how *did* you get your performance back?

    - Chris

  10. #10
    Join Date
    Nov 2000
    Posts
    344
    > "Why can't we ananlyze sys tables?"

    because Oracle's internal queries (sometimes called recursive SQL) don't perform well when there are statistics on the SYS tables. Having statistics on your tables when under the CHOOSE optimiser mode will cause Oracle to use the cost based optimizer. The recursive SQL was written for the rule based optimizer, becuase that's the only thing that was around in the past. Why the CBO isn't smart enough to determine good enough execution paths for Oracle's own queries is beyond me.

    -John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width