DBAsupport.com Forums - Powered by vBulletin
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 38

Thread: Statpack help

  1. #11
    Join Date
    Oct 2005
    Posts
    26
    lol......

    funnily enough this geezer does knows what hes doing, just there is no money available for an oracle license for loadrunner which he would normally use, so its up to me to provide him with the information that he needs!!!!

    I'll try the pretty picture approach...but if that doesnt work what else could i do??

  2. #12
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    need to find out what information he is after.

    If he knows what he is doing, should be able to tell you

  3. #13
    Join Date
    Oct 2005
    Posts
    10
    You can get more information if you trace problem session (sessions)
    so you got EXACT (not aggregated) information that's going on.

  4. #14
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    he didnt want session information, wanted an overview of the database

  5. #15
    Join Date
    Oct 2005
    Posts
    2



  6. #16
    Join Date
    Oct 2005
    Posts
    26
    right people

    Im going to produce a statpack report every 15 minutes for him can someone direct me to a resource that will explain how to do this on an oracle DB??, I will need a new file produced at every run, not an overite of the old one, with a timestamp.

    Im also going to kick out the following v$sysstat metrics every minute:

    CPU used by this session
    bytes received via SQL*Net from dblink
    logons current
    opens of replaced files
    user calls
    SQL*Net roundtrips to/from client
    opened cursors current
    db block changes
    total file opens


    I can do this via a shell script that will kick out a new timestamped file every minute into a directory over a three hour load test.

    Does anyone have any comments on the approach i am taking??, any ideas where i can improve, am I on the right track? etc.

    thanks for all your help so far.

  7. #17
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    connect as the perfstat user and run statspack.snap; every 15 minutes (use dbms_job to schedule it) then when youa re you need to run ?/rdbms/admin/spreport to generate the actual report, there you specify which time slots you want to create the report for and it uses the information gathered previously to generate it (and you call it the filename you want)

  8. #18
    Join Date
    Oct 2005
    Posts
    26
    cool thanks davey, im still a little unsure on how to do this is there any resource on the interenet that will let me run through this in a tutorial fashion?

  9. #19
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    run this as the perfstat user
    Code:
    DECLARE
      X NUMBER;
    BEGIN
      SYS.DBMS_JOB.SUBMIT
        ( job       => X 
         ,what      => 'statspack.snap;'
         ,next_date => sysdate
         ,interval  => 'TRUNC(SYSDATE+15/1440,''MI'')'
         ,no_parse  => TRUE
         ,force     => TRUE
        );
    END;
    it will create the snaps every 15 minutes, you will have to create the reports manually
    Last edited by davey23uk; 11-04-2005 at 02:50 PM.

  10. #20
    Join Date
    Jul 2002
    Posts
    205
    Submit the Job Today at 3:00 PM and after that every 10 Minutes

    sqlplus perfstat/perfstat@dbname

    DECLARE
    jobno number;
    BEGIN
    DBMS_JOB.SUBMIT (
    jobno,
    'statspack.snap(i_snap_level=>7);',
    (TRUNC(SYSDATE)+ 15/24) + 10/1440,
    'TRUNC(SYSDATE,''MI'')+10/1440'
    );
    COMMIT;
    END;
    /


    To take the report

    @(ORACLE_HOME)/rdbms/admin/spreport

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