Professional Documents
Culture Documents
Long Running Guide
Long Running Guide
=============================
The process is still active. Please see details below.
#1 & #2 >> Current status of the process:
#3 >> Current SQL running by the process:
#6 >> Current elapsed time of the process:
#7 >> Run history of the process:
#4 & #5 >> There is no locking on the database.
OR There is locking occurring on the database.
===================================================================================
=============================
#1 sb11.sql (last portion) - CALOY
select SID, serial#, status, action from v$session where SID = 'SID'; -
TO GET PRCSINSTANCE
select SID, serial#, status, action from v$session where action = 'ACTION'; -
TO GET SID#
select sess_io.sid,
sess_io.block_gets,
sess_io.consistent_gets,
sess_io.physical_reads,
sess_io.block_changes,
sess_io.consistent_changes
from v$sess_io sess_io, v$session sesion
where sesion.sid = sess_io.sid
and sesion.username is not null
and sess_io.sid = <SID>;
===================================================================================
=============================
Cancel ----------------------- 1
Posted ----------------------- 11
Resend ----------------------- 13
Posting ---------------------- 14
Pending ---------------------- 16
Blocked ---------------------- 18
Restart ---------------------- 19
Delete ----------------------- 2
Error ------------------------ 3
Hold ------------------------- 4
Queued ----------------------- 5
Initiated -------------------- 6
Processing ------------------- 7
Cancelled -------------------- 8
Success ---------------------- 9
===================================================================================
=============================