Unix Technical Forum

General Question about Performance/Tuning and scheduled Tuning

This is a discussion on General Question about Performance/Tuning and scheduled Tuning within the Oracle Database forums, part of the Database Server Software category; --> hpuxrac wrote: > On May 18, 11:39 am, DA Morgan <damor...@psoug.org> wrote: >> Alexander Peters wrote: >>> Hello! >>> ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-26-2008, 05:50 AM
DA Morgan
 
Posts: n/a
Default Re: General Question about Performance/Tuning and scheduled Tuning

hpuxrac wrote:
> On May 18, 11:39 am, DA Morgan <damor...@psoug.org> wrote:
>> Alexander Peters wrote:
>>> Hello!
>>> I have a general question about Performance and Tuning. All few weeks
>>> the database works very slow. Selects which have a duration about 5 -
>>> 10 sec. need about 40 - 60 sec. And some INSERT Statements need the
>>> some time. Actually, i recompute the statistics of all Tables to solve
>>> the problem, but i think thats not the real solution. Is there a way,
>>> that the server optimize himself? Timed or anything else? We have the
>>> some application on a MS SQL Server, and there isn't this problem. I
>>> think that must be possible with a oracle server too.
>>> A. Peters
>>> Here my procedure, which i use to optimize my database. After this, the
>>> Database is so fast as before.
>>> CREATE OR REPLACE procedure compute_table ( as_tablename in varchar2 )
>>> AS
>>> PRAGMA AUTONOMOUS_TRANSACTION;
>>> ls_sql varchar2 (255);
>>> BEGIN
>>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' DELETE STATISTICS';
>>> EXECUTE IMMEDIATE ls_sql;
>>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' ESTIMATE
>>> STATISTICS';
>>> EXECUTE IMMEDIATE ls_sql;
>>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' COMPUTE STATISTICS';
>>> EXECUTE IMMEDIATE ls_sql;
>>> END;

>> My instinct from reading this thread is that you are trying to treat
>> Oracle like SQL Server and don't understand the huge differences in
>> concept and architecture.
>>
>> Produce a Stats Pack when the database is working properly.
>> Produce them every hour (at a minimum) until it is working poorly.
>> Determine what has changed.
>> --
>> Daniel A. Morgan
>> University of Washington
>> damor...@x.washington.edu
>> (replace x with u to respond)
>> Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text -
>>
>> - Show quoted text -

>
> Tuning by statpack hourly reports?
>
> Sounds like a reply for the Oracle WTF.
>
> Try reading Cary Millsap's book Optimizing Oracle Performance.
>
> Rinse and repeat.


Postscript:

You might note the default time between AWR snaps is also one hour.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-26-2008, 05:50 AM
hpuxrac
 
Posts: n/a
Default Re: General Question about Performance/Tuning and scheduled Tuning

On May 18, 6:46 pm, DA Morgan <damor...@psoug.org> wrote:
> hpuxrac wrote:
> > On May 18, 11:39 am, DA Morgan <damor...@psoug.org> wrote:
> >> Alexander Peters wrote:
> >>> Hello!
> >>> I have a general question about Performance and Tuning. All few weeks
> >>> the database works very slow. Selects which have a duration about 5 -
> >>> 10 sec. need about 40 - 60 sec. And some INSERT Statements need the
> >>> some time. Actually, i recompute the statistics of all Tables to solve
> >>> the problem, but i think thats not the real solution. Is there a way,
> >>> that the server optimize himself? Timed or anything else? We have the
> >>> some application on a MS SQL Server, and there isn't this problem. I
> >>> think that must be possible with a oracle server too.
> >>> A. Peters
> >>> Here my procedure, which i use to optimize my database. After this, the
> >>> Database is so fast as before.
> >>> CREATE OR REPLACE procedure compute_table ( as_tablename in varchar2 )
> >>> AS
> >>> PRAGMA AUTONOMOUS_TRANSACTION;
> >>> ls_sql varchar2 (255);
> >>> BEGIN
> >>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' DELETE STATISTICS';
> >>> EXECUTE IMMEDIATE ls_sql;
> >>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' ESTIMATE
> >>> STATISTICS';
> >>> EXECUTE IMMEDIATE ls_sql;
> >>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' COMPUTE STATISTICS';
> >>> EXECUTE IMMEDIATE ls_sql;
> >>> END;
> >> My instinct from reading this thread is that you are trying to treat
> >> Oracle like SQL Server and don't understand the huge differences in
> >> concept and architecture.

>
> >> Produce a Stats Pack when the database is working properly.
> >> Produce them every hour (at a minimum) until it is working poorly.
> >> Determine what has changed.
> >> --
> >> Daniel A. Morgan
> >> University of Washington
> >> damor...@x.washington.edu
> >> (replace x with u to respond)
> >> Puget Sound Oracle Users Groupwww.psoug.org-Hide quoted text -

>
> >> - Show quoted text -

>
> > Tuning by statpack hourly reports?

>
> > Sounds like a reply for the Oracle WTF.

>
> > Try reading Cary Millsap's book Optimizing Oracle Performance.

>
> > Rinse and repeat.

>
> Postscript:
>
> You might note the default time between AWR snaps is also one hour.
> --
> Daniel A. Morgan
> University of Washington
> damor...@x.washington.edu
> (replace x with u to respond)
> Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text -
>
> - Show quoted text -


Who didn't know that already?

What does that have to do with the question from the OP?

WTF.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-26-2008, 05:50 AM
DA Morgan
 
Posts: n/a
Default Re: General Question about Performance/Tuning and scheduled Tuning

hpuxrac wrote:
> On May 18, 6:46 pm, DA Morgan <damor...@psoug.org> wrote:
>> hpuxrac wrote:
>>> On May 18, 11:39 am, DA Morgan <damor...@psoug.org> wrote:
>>>> Alexander Peters wrote:
>>>>> Hello!
>>>>> I have a general question about Performance and Tuning. All few weeks
>>>>> the database works very slow. Selects which have a duration about 5 -
>>>>> 10 sec. need about 40 - 60 sec. And some INSERT Statements need the
>>>>> some time. Actually, i recompute the statistics of all Tables to solve
>>>>> the problem, but i think thats not the real solution. Is there a way,
>>>>> that the server optimize himself? Timed or anything else? We have the
>>>>> some application on a MS SQL Server, and there isn't this problem. I
>>>>> think that must be possible with a oracle server too.
>>>>> A. Peters
>>>>> Here my procedure, which i use to optimize my database. After this, the
>>>>> Database is so fast as before.
>>>>> CREATE OR REPLACE procedure compute_table ( as_tablename in varchar2 )
>>>>> AS
>>>>> PRAGMA AUTONOMOUS_TRANSACTION;
>>>>> ls_sql varchar2 (255);
>>>>> BEGIN
>>>>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' DELETE STATISTICS';
>>>>> EXECUTE IMMEDIATE ls_sql;
>>>>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' ESTIMATE
>>>>> STATISTICS';
>>>>> EXECUTE IMMEDIATE ls_sql;
>>>>> ls_sql := 'ANALYZE TABLE ' || as_tablename || ' COMPUTE STATISTICS';
>>>>> EXECUTE IMMEDIATE ls_sql;
>>>>> END;
>>>> My instinct from reading this thread is that you are trying to treat
>>>> Oracle like SQL Server and don't understand the huge differences in
>>>> concept and architecture.
>>>> Produce a Stats Pack when the database is working properly.
>>>> Produce them every hour (at a minimum) until it is working poorly.
>>>> Determine what has changed.
>>>> --
>>>> Daniel A. Morgan
>>>> University of Washington
>>>> damor...@x.washington.edu
>>>> (replace x with u to respond)
>>>> Puget Sound Oracle Users Groupwww.psoug.org-Hide quoted text -
>>>> - Show quoted text -
>>> Tuning by statpack hourly reports?
>>> Sounds like a reply for the Oracle WTF.
>>> Try reading Cary Millsap's book Optimizing Oracle Performance.
>>> Rinse and repeat.

>> Postscript:
>>
>> You might note the default time between AWR snaps is also one hour.
>> --
>> Daniel A. Morgan
>> University of Washington
>> damor...@x.washington.edu
>> (replace x with u to respond)
>> Puget Sound Oracle Users Groupwww.psoug.org- Hide quoted text -
>>
>> - Show quoted text -

>
> Who didn't know that already?
>
> What does that have to do with the question from the OP?
>
> WTF.


It didn't have anything to do with it until you questioned, for
reasons I can not fathom, my comment about taking snapshots once
an hour. It was you, I presumed, who didn't know it.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com