Home » RDBMS Server » Server Administration » elapsed time
elapsed time [message #50409] Thu, 14 March 2002 04:49 Go to next message
Selvan
Messages: 2
Registered: March 2002
Junior Member
Hello:
Is it possible to know the elapsed time for
SQL statements from the system tables/data
dictionary views or any system statistics table.
Timed_statistics is set to true.
I am looking something similar to "elapsed time" present in TKPROF output.

Need to measure how long each SQL statement
is being executed. Can not use set time on from sqlplus or any sql tool.
Any help is appreciated

thanks
selvan
Re: elapsed time [message #50423 is a reply to message #50409] Thu, 14 March 2002 08:31 Go to previous message
Andrew Lenz
Messages: 16
Registered: August 1999
Junior Member
from sqlplus
find the SID and SERIAL# for the user you want to trace:
SQL> select sid, serial# from v$session where username = 'username'
Next:
SQL> exec dbms_system.set_sql_trace_in_session(sid,serial#, TRUE);

now you can use TKPROF against the files in USER_DUMP_DEST.
Previous Topic: Aplication fail in Oracle
Next Topic: Application fail in Oracle
Goto Forum:
  


Current Time: Mon Jul 08 12:20:35 CDT 2024