0% found this document useful (0 votes)
22 views13 pages

Arup Nanda

This summary provides high-level information about two database sessions from the V$SESSION view: - Session 213 is waiting on a SQL*Net message from the client with 0 seconds waited. - Session 790 is waiting on an enqueued row lock contention with over 16 hours waited. Additional details are provided about session 790's resource usage statistics from V$SESSTAT and wait events from V$SESSION_EVENT.

Uploaded by

ashwadhama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views13 pages

Arup Nanda

This summary provides high-level information about two database sessions from the V$SESSION view: - Session 213 is waiting on a SQL*Net message from the client with 0 seconds waited. - Session 790 is waiting on an enqueued row lock contention with over 16 hours waited. Additional details are provided about session 790's resource usage statistics from V$SESSTAT and wait events from V$SESSION_EVENT.

Uploaded by

ashwadhama
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

select SID, event, state, wait_time, seconds_in_wait from v$session where sid IN('213','790');

SID EVENT STATE WAIT_TIME SECONDS_IN_WAIT

---------- ---------------------------------------------------------------- ------------------- ---------- ---------------

213 SQL*Net message from client WAITING 0 0

790 enq: TX - row lock contention WAITING 0 161796


SQL> select name, value from v$sesstat s, v$statname n where s.statistic# = n.statistic# and
upper(name) like '%CPU%' and sid ='790';

NAME VALUE
---------------------------------------------------------------- ----------
OS CPU Qt wait time 0
recursive cpu usage 371
CPU used when call started 613
CPU used by this session 613
IPC CPU used by this session 0
global enqueue CPU used by this session 0
gc CPU used by this session 0
parse time cpu 17

8 rows selected.

SQL>
SQL> Select event, total_waits, total_timeouts, 10*time_waited, 10*average_wait, 10*max_wait from
v$session_event where sid='790';

EVENT TOTAL_WAITS TOTAL_TIMEOUTS 10*TIME_WAITED


10*AVERAGE_WAIT 10*MAX_WAIT
---------------------------------------------------------------- ----------- -------------- -------------- --------------- -----------
Disk file operations I/O 16 0 0 .1 0
db file sequential read 782 0 1980 2.5 20
db file scattered read 622 0 1320 2.1 20
enq: TX - row lock contention 1 0 164967600 164967605 0
SQL*Net message to client 101 0 0 0 0
SQL*Net more data to client 7 0 0 0 0
SQL*Net message from client 101 0 40 .4 0
SQL*Net more data from client 2 0 0 .1 0
events in waitclass Other 41 41 0 0 0

9 rows selected.

SQL>
-8
Run awr

You might also like