Oracle – Afficher les sessions longops


La commande suivante permet l’affichage des sessions longops :

set pagesize 200
set linesize 200
col opname for a40
alter session set nls_date_format = 'DD/MM/YYYY HH24:MI:SS';
select
sql_id,opname,sofar,totalwork,elapsed_seconds,time_remaining,
start_time,last_update_time
from
v$session_longops where sid = <sid> and serial# = <serial#>
order by start_time;

col sql_text for a140
select sql_text from v$sqlarea where sql_id = <sql_id>;