Предыстория плачевная - через некоторое время сервер перестает принимать соединения через SHARED...
Код:
select name, status from v$shared_server;
Код:
select sid, operation_type, work_area_size from v$sql_workarea_active;
Код:
select sid,status, event, seconds_in_wait from v$session order by 4;
Код:
select s.sid,s.serial#,s.LOGON_TIME,s.STATUS,s.username,s.LAST_CALL_ET,s.module,s.event,s.SECONDS_IN_WAIT,s.lockwait,s.osuser,s.machine,s.server,x.sql_fulltext,px.sql_text prev_sql_txt
from v$session s, v$sqlarea x,v$sqlarea px
where s.status='ACTIVE' and s.TYPE!='BACKGROUND' and s.sql_address= x.address(+) and s.PREV_SQL_ADDR= px.address(+);
Код:
set linesize 1000
column MACHINE FORMAT A20
column EVENT FORMAT A30
column USERNAME FORMAT A20
select s.LOGON_TIME,s.username,s.LAST_CALL_ET,s.event,s.SECONDS_IN_WAIT,s.machine,s.server,s.status
from v$session s, v$sqlarea x,v$sqlarea px
where (s.status='ACTIVE' or s.server='SHARED') and s.TYPE!='BACKGROUND' and s.sql_address= x.address(+) and s.PREV_SQL_ADDR= px.address(+) order by 5;