Mar*_*son 3 index oracle monitoring
如何跟踪这样的命令的进度?
alter index myindex rebuild reverse online;
Run Code Online (Sandbox Code Playgroud)
您应该查询 V$SESSION_LONGOPS
select ops.OPNAME, ops.TIME_REMAINING,ops.start_time
from v$session_longops ops
where ops.sid=&your_sid
and ops.serial#=&your_serial
and time_remaining>0;
Run Code Online (Sandbox Code Playgroud)
如果索引重建是并行的,那么您必须找到完成工作的并行从属。这可以通过查询 V$PX_SESSION 来完成。发出“alter index”语句的会话是查询协调器
select ops.OPNAME, ops.TIME_REMAINING,ops.start_time
from v$px_session par, v$session_longops ops
where par.qcsid=&your_sid
and par.qcserial#=&your_serial
and ops.sid=par.sid
and ops.serial#=par.serial#
and ops.time_remaining>0;
Run Code Online (Sandbox Code Playgroud)
但是一个索引创建包含多个 longops(扫描表,排序数据,...)
归档时间: |
|
查看次数: |
14045 次 |
最近记录: |