col opname format a32
col target_desc format a32
col perwork format a12
set lines 131
select sid,OPNAME,TARGET_DESC,sofar,TOTALWORK,
trunc(sofar/totalwork*100,2)||"%" as perwork
from v$session_longops where sofar!=totalwork;
set lines 121
set pages 999
col opname format a29
col target format a29
col target_desc format a12
col perwork format a12
col remain format 99
col start_time format a21
col sofar format 99999999
col totalwork format 99999999
col sql_text format a101
col bufgets format 99999999
select opname,target,to_char(start_time,"yy-mm-dd:hh24:mi:ss")
start_time,elapsed_seconds elapsed,
executions execs,buffer_gets/decode(executions,0,1,executions)
bufgets,module,sql_text
from v$session_longops sl,v$sqlarea sa
where sl.sql_hash_value = sa.hash_value and upper
(substr(module,1,4)) <> "RMAN" and substr(opname,1,4) <> "RMAN"
and module <> "SQL*Plus" and sl.start_time>trunc(sysdate) |