当前位置:网站首页>How to clean up v$rman_ backup_ job_ Details view reports error ora-02030
How to clean up v$rman_ backup_ job_ Details view reports error ora-02030
2022-07-03 11:19:00 【Drunken Xiaobai】
delete from v$rman_backup_job_details where session_key=4;

truncate table v$rman_backup_job_details;

SELECT view_definition FROM v$fixed_view_definition WHERE lower(view_name)='v$rman_backup_job_details';
SELECT /*+ rule */ a.session_key,
a.session_recid,
a.session_stamp,
a.command_id,
a.start_time,
a.end_time,
a.input_bytes,
a.output_bytes,
a.status_weight,
a.optimized_weight,
a.object_type_weight,
a.output_device_type,
a.autobackup_count,
a.backed_by_osb,
a.autobackup_done,
a.status,
a.input_type,
a.optimized,
a.elapsed_seconds,
a.compression_ratio,
a.input_bytes_per_sec,
a.output_bytes_per_sec,
sys.dbms_rcvman.num2displaysize(input_bytes) input_bytes_display,
sys.dbms_rcvman.num2displaysize(output_bytes) output_bytes_display,
sys.dbms_rcvman.num2displaysize(input_bytes_per_sec) input_bytes_per_sec_display,
sys.dbms_rcvman.num2displaysize(output_bytes_per_sec) output_bytes_per_sec_display, sys.dbms_rcvman.sec2displaytime(elapsed_seconds)time_taken_display, a.con_id
FROM
( SELECT unique a.session_recid session_key, a.*, decode(autobackup_count, 0, 'NO', 'YES') autobackup_done, decode(status_weight, 2000, 'FAILED', 1900, 'RUNNING WITH ERRORS', 1500, 'RUNNING WITH WARNINGS', 1001, 'RUNNING', 900, 'COMPLETED WITH ERRORS', 500, 'COMPLETED WITH WARNINGS', 001, 'COMPLETED', 'FAILED') status, decode(object_type_weight, 9, 'DB FULL', 8, 'RECVR AREA', 7, 'DB INCR', 6, 'DATAFILE FULL', 5, 'DATAFILE INCR', 4, 'ARCHIVELOG', 3, 'CONTROLFILE', 2, 'SPFILE', 1, 'BACKUPSET', null) input_type, decode(optimized_weight, 1, 'YES', 'NO') optimized, abs(a.end_time-a.start_time)*86400 elapsed_seconds,
CASE
WHEN a.input_bytes/decode(a.output_bytes, 0, null, a.output_bytes) > 1
THEN a.input_bytes/decode(a.output_bytes, 0, null, a.output_bytes)
ELSE 1
END compression_ratio, a.input_bytes/(decode(a.end_time-a.start_time, 0, 1, abs(a.end_time-a.start_time)*86400)) input_bytes_per_sec, a.output_bytes/(decode(a.end_time-a.start_time, 0, 1, abs(a.end_time-a.start_time)*86400)) output_bytes_per_sec
FROM
( SELECT session_recid, session_stamp, command_id, min(start_time)
OVER (partition by session_recid, session_stamp) start_time, max(end_time)
OVER (partition by session_recid, session_stamp) end_time, sum(input_bytes)
OVER (partition by session_recid, session_stamp) input_bytes, sum(output_bytes)
OVER (partition by session_recid, session_stamp) output_bytes, max(status_weight)
OVER (partition by session_recid, session_stamp)status_weight, max(optimized_weight)
OVER (partition by session_recid, session_stamp) optimized_weight, max(object_type_weight)
OVER (partition by session_recid, session_stamp) object_type_weight, decode(count(distinct output_device_type)
OVER (partition by session_recid, session_stamp), 1, first_value(output_device_type)
OVER (partition by session_recid, session_stamp), 0, null, '*') output_device_type, sum(autobackup_count)
OVER (partition by session_recid, session_stamp) autobackup_count, backed_by_osb, con_id
FROM V$RMAN_BACKUP_SUBJOB_DETAILS) a)a
http://www.itpub.net/thread-2102497-1-1.html
边栏推荐
- php服务器 与redis交互大量CLOSE_WAIT分析
- In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test
- 面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩
- 触摸与屏幕自动旋转调试
- JGG专刊征稿:时空组学
- 进程与线程
- Touch and screen automatic rotation debugging
- 浅析-JMM内存模型
- VPP three-layer network interconnection configuration
- [vtk] source code interpretation of vtkpolydatatoimagestencil
猜你喜欢

(二)进制

Driver development based on I2C protocol

Leetcode 46: full arrangement

"Core values of testing" and "super complete learning guide for 0 basic software testing" summarized by test engineers for 8 years

高精度室内定位技术,在智慧工厂安全管理的应用

Summary of interview questions (2) IO model, set, NiO principle, cache penetration, breakdown avalanche

英特尔13代酷睿旗舰曝光,单核5.5GHz

Probability theory: application of convolution in calculating moving average

如何清理v$rman_backup_job_details视图 报错ORA-02030

Matlab extracts numerical data from irregular txt files (simple and practical)
随机推荐
How to: configure ClickOnce trust prompt behavior
如何:配置 ClickOnce 信任提示行为
(2) Base
Inexplicable problems in the nesting of constraintlayout and relativelayout
(二)进制
Tablespace creation management and control file management
Encapsulate a koa distributed locking middleware to solve the problem of idempotent or repeated requests
Commonly used discrete random distribution
Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
Tencent micro app to get wechat user information
【obs】封装obs实现采集的基础流程
Ext file system mechanism principle
How did I grow up in the past eight years as a test engineer of meituan? I hope technicians can gain something after reading it
The manuscript will be revised for release tonight. But, still stuck here, maybe what you need is a paragraph.
ORACLE 11G 单机冷备数据库
I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it
线性表顺序表综合应用题P18
读书笔记:《心若菩提》 曹德旺
php如何解决高并发问题
行业唯一!法大大电子合同上榜36氪硬核科技企业