DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: how much time consumed

  1. #1
    Join Date
    Dec 2002
    Posts
    110

    how much time consumed

    Hi All

    We have a stored procedures which has a lot of inserts , updates & deletes & selects.

    We want to actually know how much time is consumed by all the above DML's & selects.

    What is the best & easy way to obtain such statistical info


    Rgrds

  2. #2
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    Just wrap

    l_start_time:=dbmsutility.get_time()
    dml
    l_end_time:=dbmsutility.get_time()-l_start_time

    regards
    Hrishy

  3. #3
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    or set time on in sql*plus and run it manually

  4. #4
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    Use DBMS_PROFILER.
    This is a good PKG provided by Oracle.

    Tamil

  5. #5
    Join Date
    Dec 2003
    Location
    Ottawa, ON Canada
    Posts
    3
    DBMS_PROFILER is the best tool to diagnose procedures.

    If you are interested in tunning SQL in the proceure, the only thing missing in the suggestions is SQL_TRACE.

    Don't forget to set timed_statistics also.

    Both of those are session modifiable.

  6. #6
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    SQL_TRACE is the best way to find out how much cpu time & clock time each individual statement takes.
    Jeff Hunter

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