当前位置:网站首页>Logminer database log mining
Logminer database log mining
2022-06-25 01:55:00 【51CTO】
--01. Check the archive path
select distinct name,first_time from v$archived_log where name is not null order by first_time;
--02. Create log analysis list
begin
--sys.dbms_logmnr.add_logfile(logfilename=>'/home/oracle/archlog/xlstest1_arc_1_10506_1034075045.log',options=>dbms_logmnr.new);
--sys.dbms_logmnr.add_logfile(logfilename=>'/home/oracle/archlog/xlstest1_arc_1_10507_1034075045.log',options=>dbms_logmnr.addfile);
--sys.dbms_logmnr.add_logfile(logfilename=>'/home/oracle/archlog/xlstest1_arc_1_10508_1034075045.log',options=>dbms_logmnr.addfile);
--sys.dbms_logmnr.add_logfile(logfilename=>'/home/oracle/archlog/xlstest1_arc_1_10509_1034075045.log',options=>dbms_logmnr.addfile);
sys.dbms_logmnr.add_logfile(logfilename=>'+FRA/xlsdb/archivelog/2021_09_29/thread_2_seq_14704.1259.1084555009',options=>dbms_logmnr.new);
sys.dbms_logmnr.add_logfile(logfilename=>'+FRA/xlsdb/archivelog/2021_09_29/thread_2_seq_14705.1293.1084557151',options=>dbms_logmnr.addfile);
sys.dbms_logmnr.add_logfile(logfilename=>'+FRA/xlsdb/archivelog/2021_09_29/thread_2_seq_14706.729.1084559669',options=>dbms_logmnr.addfile);
end;
--03. Start analysis
begin
sys.dbms_logmnr.start_logmnr(Options =>dbms_logmnr.dict_from_online_catalog);
end;
--04. View log analysis results
select username,scn,timestamp,sql_redo,sql_undo from v$logmnr_contents;
-- Query the statement and rollback according to the table name and operation SQL
select timestamp,sql_redo,sql_undo from v$logmnr_contents where table_name = 'T_USR_DEVICE' and operation = 'DELETE'
--05. Close analysis
begin
sys.dbms_logmnr.end_logmnr;
end;
边栏推荐
- Dataease template market officially released
- 同一服务器两个端口不同的应用session覆盖解决方案
- CCNP的BGP部分笔记
- Fatigue liée à l'examen du marché secondaire des médicaments innovants: succès clinique de la phase III et approbation du produit
- Abnova 5-methylcytosine polyclonal antibody
- Preg in PHP_ How to replace variable data
- 带马尔科夫切换的正向随机微分方程数值格式模拟
- Longest continuous sequence [diffusion method + space for time]
- Install mysql5.6 under linux64bit - the root password cannot be modified
- 中金证券靠谱吗?开证券账户安全吗?
猜你喜欢

leetcode:2104. Subarray range and

After integrating the aurora push plug-in in the uni app, the real machine debugging prompts "the currently running base does not contain the native plug-in [jg-jpush]..." Solutions to problems
![uni-app集成极光推送插件后真机调试提示“当前运行的基座不包含原生插件[JG-JPush]...”问题的解决办法](/img/8b/0e982711c225ec8b0a2b90819d8a11.png)
uni-app集成极光推送插件后真机调试提示“当前运行的基座不包含原生插件[JG-JPush]...”问题的解决办法
![Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]](/img/c9/afc03afd477bbfdd3c0dc54bacfd2d.png)
Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]

Ps5 connected to oppo K9 TV does not support 2160p/4k

多模态数据也能进行MAE?伯克利&谷歌提出M3AE,在图像和文本数据上进行MAE!最优掩蔽率可达75%,显著高于BERT的15%

同一服务器两个端口不同的应用session覆盖解决方案

Cake review fatigue in the secondary market of innovative drugs: phase III clinical success and product approval

Abnova丨5-甲基胞嘧啶多克隆抗体中英文说明

2个NPN三极管组成的恒流电路
随机推荐
Fatigue liée à l'examen du marché secondaire des médicaments innovants: succès clinique de la phase III et approbation du produit
Huawei laptop, which grew against the trend in Q1, is leading PC into the era of "smart office"
Matlab rounding
Abnova丨BSG 单克隆抗体中英文说明
Some Modest Advice for Graduate Students - by Stephen C. Stearns, Ph.D.
Bi SQL drop & alter
Texture enhancement
php中preg_replace如何替换变量数据
String common methods
MPLS notes Part 1
胰蛋白酶中英文说明书
Abnova丨CSV 磁珠中英文说明
C language boundary calculation and asymmetric boundary
[leetcode] 11. Container with the most water
Integration of metersphere open source continuous testing platform and Alibaba cloud cloud cloud efficient Devops
困牛排序(寒假每日一题 40)
Stocking but not completely stocking (daily question 2 in spring)
多模态数据也能进行MAE?伯克利&谷歌提出M3AE,在图像和文本数据上进行MAE!最优掩蔽率可达75%,显著高于BERT的15%
poj3669 Meteor Shower(bfs预处理)
2种常见的设备稼动率OEE监测方法