监控rman备份

1、服务会话关联通道设置 set COMMAND ID 命令

2、查询V$PROCESS和V$SESSION 决定会话对应的RMAN的通道

3、查询V$session_LONGGOPS监控备份集和复制的进程

4、使用操作系统工具监控进程和线程

 

RMAN> run{
2> allocate channel t1 type disk;
3> set command id to 'rman11';
4> copy datafile 1 to 'd:\test\0329_rman1.cpy';
5> release channel t1;
6> }

分配的通道: t1
通道 t1: sid=135 devtype=DISK

正在执行命令: SET COMMAND ID

启动 backup 于 29-3月 -15
通道 t1: 启动数据文件副本
输入数据文件 fno=00001 name=D:\ORADATA\ORCL\SYSTEM01.DBF
输出文件名 = D:\TEST\0329_RMAN1.CPY 标记 = TAG20150329T192335 recid = 15 时间戳
= 875647447
通道 t1: 数据文件复制完毕, 经过时间: 00:00:35
完成 backup 于 29-3月 -15

释放的通道: t1

RMAN>

查看具体完成的程度

select sid,serial#,context,sofar,totalwork,decode(totalwork,0,0,round(sofar/totalwork*100,2)) "% Complete" from v$session_longops where opname like 'RMAN: %'
AND OPNAME NOT LIKE 'RMAN: aggregate%' order by start_time desc

查看会话和进程

select * from  v$process a,v$session  b where a.addr=b.paddr and b.client_info like '%id=rman11%'

 

posted @ 2015-03-29 19:28  gull  Views(285)  Comments(0Edit  收藏  举报