当前位置:网站首页>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
边栏推荐
- 2021 reading summary (continuously updating)
- 2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func mai
- Matlab memory variable management command
- VPP three-layer network interconnection configuration
- Stack, monotone stack, queue, monotone queue
- Oracle 11g single machine cold standby database
- The role and necessity of implementing serializable interface
- Project management essence reading notes (VII)
- [OBS] configFile in ini format of OBS
- 1. Hal driven development
猜你喜欢

【obs】obs的ini格式的ConfigFile

栈,单调栈,队列,单调队列

php服务器 与redis交互大量CLOSE_WAIT分析

Encapsulation attempt of network request framework of retro + kotlin + MVVM

Matlab extracts numerical data from irregular txt files (simple and practical)

Stack, monotone stack, queue, monotone queue

The element form shows the relationship between elementary transformation and elementary matrix

Hal - General

Hard goods | write all the codes as soon as you change the test steps? Why not try yaml to realize data-driven?

在职美团测试工程师的这八年,我是如何成长的,愿技术人看完都有收获
随机推荐
做软件测试三年,薪资不到20K,今天,我提出了辞职…
BI技巧丨权限轴
2022-07-02:以下go语言代码输出什么?A:编译错误;B:Panic;C:NaN。 package main import “fmt“ func mai
活动预告 | 直播行业“内卷”,以产品力拉动新的数据增长点
EPS电动转向系统分析
JGG专刊征稿:时空组学
MATLAB extrait les données numériques d'un fichier txt irrégulier (simple et pratique)
Using activity to realize a simple inputable dialog box
I, a tester from a large factory, went to a state-owned enterprise with a 50% pay cut. I regret it
Solutions of n-ary linear equations and their criteria
What kind of living condition is a tester with a monthly salary of more than 10000?
php服务器 与redis交互大量CLOSE_WAIT分析
Error installing the specified version of pilot
A simple method of adding dividing lines in recyclerview
What are the strengths of "testers"?
How to become a senior digital IC Design Engineer (1-4) Verilog coding syntax: expression
面試題總結(2) IO模型,集合,NIO 原理,緩存穿透,擊穿雪崩
LeetCode 46:全排列
AMS series - application startup process
How to become a senior digital IC Design Engineer (1-2) Verilog coding syntax: Verilog 1995, 2001, 2005 standards