当rman 执行过程中,有时需要中止:
- 查一下有多少rman进程
--查看rman 系统进程号SPID
SELECT sid, spid, client_info
FROM v$process p, v$session s
WHERE p.addr = s.paddr
AND client_info LIKE '%rman%';
- 在系统里查看
ps -ef | grep beq
# ps -ef|grep 391451
oracsp 391451 1 0 13:06 ? 00:00:12 oracleCSP (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
root 392439 392390 0 14:08 pts/2 00:00:00 grep --color=auto 391451
# ps -ef|grep beq
oracsp 391451 1 0 13:06 ? 00:00:12 oracleCSP (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracsp 392365 392364 0 14:06 ? 00:00:00 oracleCSP (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
root 392441 392390 0 14:09 pts/2 00:00:00 grep --color=auto beq
说明:
391451是sql语句查询得到的
-
在系统里杀掉这些进程
kill -9 391451 -
查看rman进度
--查看rman备份进度
SELECT inst_id,
sid,
serial#,
opname,
ROUND(SOFAR / TOTALWORK * 100, 2) "%_COMPLETE"
FROM gV$SESSION_LONGOPS
WHERE OPNAME LIKE 'RMAN%'
--AND OPNAME NOT LIKE '%aggregate%'
AND TOTALWORK != 0
AND SOFAR <> TOTALWORK;