大表建索引,rman备份等耗费的时间通常比较长?还有多长时间才能执行完?
利用v$session_longops的time_remaining列就可以得到这个估算值,>6秒钟的操作都会记录与此。
select username,sid,opname,round(sofar*100 / totalwork,0)||'%' as progress,time_remaining
from v$session_longops
where time_remaining>0 and opname like 'xxx';
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/112417/viewspace-909919/ ,如需转载,请注明出处,否则将追究法律责任。