select opname, target, sofar, totalwork, units, elapsed_seconds, messagefrom v$session_longops order by
start_time desc
Or If we want to know about a specific session.Then,
select opname, target, sofar, totalwork, units, elapsed_seconds, message from v$session_longops
where sid =and serial# = order by start_time desc
Built in types of long operations:
Each new version of Oracle adds several new types of built in long operations that are shown in v$session_longops. Some of them are:
* Table scan;
* Index Fast Full Scan;
* Hash join;
* Sort/Merge;
* Sort Output;
* Rollback;
* Gather Table's Index Statistics.
The other option is to query v$transaction and look at used_ublk (used blocks) and used_urec (used records) values. They don't show precisely the deleted amount but at least you'll know the trend and if they are increasing it means delete is not completed yet.
Again,Repeated SELECTs against V$SESS_IO can/will show I/O counts increasing.
No comments:
Post a Comment