We have an Oracle 8i system running on NT. We are having problems with performance. Hence I would like to know whether it is possible to see which SQL statements have been issued or are active, and accordingly find out which one is causing the system to slow down.
Any built in packages or Views that can be queried??
01-30-2001, 08:34 AM
you can query the V$SQL view and select the SQL_TEXT,FIRST_LOAD_TIME,MODULE.
ordering the query by FIRST_LOAD_TIME DESC will give you the list of queries which were last submitted
01-30-2001, 02:06 PM
You should look at SQL queries which result in hign buffergets, buffergets/executions and buffergets/record. Tuning these will give you a big boost in performance.
01-31-2001, 03:45 PM
thanks for the reply!
how do i see the buffer/gets or buffer/executions?
01-31-2001, 09:05 PM
The views V$SQL and V$SQLAREA have the columns for buffer_gets, executions, rows_processed etc.
Sort your result on buffer_gets colums and select only the queries resulting in high buffergets. Also look for statements which are executed a few times but having high buffergets. You should tune these.