1、系统级,查看crontab -l 自动备份任务;这个必须干掉;
2、数据库级别,查看RMAN进程,即使杀死系统进程,数据库进程任然存在,需要结合v$session进行确认。
(1)先查进程号:
SQL> SELECT sid, spid, client_info
FROM v$process p, v$session s
WHERE p.addr = s.paddr
AND client_info LIKE '%rman%';
(2)终止RMAN备份
先ps -ef|grep spid |grep -v grep
kill -9 spid
3、查询RMAN 备份进度
SELECT SID, SERIAL#, CONTEXT, SOFAR, TOTALWORK, ROUND(SOFAR/TOTALWORK*100,2) "%_COMPLETE" FROM V$SESSION_LONGOPS WHERE OPNAME LIKE 'RMAN%' AND OPNAME NOT LIKE '%aggregate%' AND TOTALWORK != 0 AND SOFAR <> TOTALWORK; SELECT s.sid, s.serial#, s.machine,sl.opname,sl.target,sl.message,s.program,sl.sql_hash_value, TRUNC(sl.elapsed_seconds/60) || ':' || MOD(sl.elapsed_seconds,60) elapsed, TRUNC(sl.time_remaining/60) || ':' || MOD(sl.time_remaining,60) remaining, ROUND(sl.sofar/sl.totalwork*100, 2) progress_pct FROM v$session s, v$session_longops slWHERE s.sid = sl.sid AND s.serial# = sl.serial# AND sl.totalwork>0 AND sl.sofar<>sl.totalwork
取消
评论