DBLOG
» WTF
Toggle navigation
DBLOG
主页
1、用户
2、各种方案
3、备份恢复
4、表空间相关
5、OGG
6、文件管理
7、常见故障分析
8、DG
9、集群相关
About Me
归档
标签
2、rman进度相关查询
无
2025-08-29 00:07:55
4
0
0
admin
###1、查询历史 ``` set pagesize1000 col status for a10 col input_type for a20 col INPUT_BYTES_DISPLAY for a10 col OUTPUT_BYTES_DISPLAY for a10 col TIME_TAKEN_DISPLAY for a10 select input_type, status, to_char(start_time, 'yyyy-mm-dd hh24:mi:ss') as "start", to_char(end_time, 'yyyy-mm-dd hh24:mi:ss') as "end", input_bytes_display, output_bytes_display, time_taken_display, COMPRESSION_RATIO from v$rman_backup_job_details where start_time>=sysdate -7 order by 3 desc; ``` ###2、查询进度 ``` set linesize 200 set pagesize 200 col opname for a30 col target_desc for a10 col UNITS for a10 SELECT opname, target_desc, SOFAR, TOTALWORK, (SOFAR / NULLIF(TOTALWORK, 0)) * 100 AS PERCENT_COMPLETE, 100 - (SOFAR / NULLIF(TOTALWORK, 0)) * 100 AS PERCENT_REMAINING, UNITS, TIME_REMAINING FROM V$SESSION_LONGOPS WHERE opname LIKE '%RMAN%' AND SOFAR != TOTALWORK; SOFAR(已完成的工作量) TOTALWORK(总工作量) START_TIME(开始时间) OPNAME(操作名) TARGET_DESC(操作目标描述) UNITS(工作单位,比如块、文件、百分比等) TIME_REMAINING(剩余时间) ```
上一篇:
2、oracle阻塞问题
下一篇:
2、所有普通索引进行重建
0
赞
4 人读过
新浪微博
微信
腾讯微博
QQ空间
人人网