|
|
|
Re: How to know wheter index executed, or not ? [message #130105 is a reply to message #129258] |
Thu, 28 July 2005 03:33 |
oraclejo
Messages: 50 Registered: July 2005 Location: Ammar
|
Member |
|
|
hello
Run the application
Then identify the SID and SERIAL# of the running session of your application
Then execute the following command
Begin
dbms_system.SET_SQL_TRACE_IN_SESSION(<SID>,<SERIAL#>,TRUE);
END;
the above statement will trace your application, once the application is done
run the follwoing
Begin
dbms_system.SET_SQL_TRACE_IN_SESSION(<SID>,<SERIAL#>,False);
END;
This will end the trace.
find the newly created file in the UDUMP directory
Then ananlyse the file using TKPROF
tkprof tracefile outputfile analyze=scott/tiger
or better look into tkprof to find out what other switches you wnt to use
Ammar Sajdi
www.e-ammar.com
PS
You can use Oracle Enterprise Manager to accomplish the same and READ the execution plan online.. other third party tools accomplish the same
|
|
|