当前位置:网站首页>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;
边栏推荐
- 广发期货安全吗?开户需要什么东西?
- AssertionError: CUDA unavailable, invalid device 0 requested
- 屡获大奖的界面控件开发包DevExpress v22.1官宣发布
- 困牛排序(寒假每日一题 40)
- 明日考试 最后一天如何备考?二造考点攻略全整理
- Unity C # e-learning (VI) -- FTP (I)
- Merge sort template & understanding
- Transformers 库的基本使用
- Tianshu night reading notes -- memory paging mechanism
- leetcode:2104. Subarray range and
猜你喜欢
PMP考试“临门一脚”如何踢得漂亮?
Abnova丨CSV 磁珠中英文说明
The innovation consortium of Haihe laboratory established gbase and became one of the first member units of the innovation Consortium (Xinchuang)
JS array object to object
Abnova BSG monoclonal antibody description in Chinese and English
带马尔科夫切换的正向随机微分方程数值格式模拟
How to prepare for the last day of tomorrow's exam? Complete compilation of the introduction to the second building test site
Hands on data analysis data modeling and model evaluation
Abnova CSV magnetic beads description in Chinese and English
实验5 8254定时/计数器应用实验【微机原理】【实验】
随机推荐
通达信哪个开户更安全,更好点
Poj3669 meteor shower (BFS pretreatment)
Bi SQL constraints
Abnova丨5-甲基胞嘧啶多克隆抗体中英文说明
Unity C# 网络学习(六)——FTP(二)
Baidu voice synthesizes voice files and displays them on the website
同一服务器两个端口不同的应用session覆盖解决方案
Abnova BSG monoclonal antibody description in Chinese and English
Fake wireless speakers in stores? Sony responded: the product has reserved a wired connection interface, which can be used in complex scenarios
Icml2022 | establishing a continuous time model of counterfactual results using neural control differential equations
An Chaoyun: "one cloud with multiple cores" supports the implementation of the national information innovation government cloud
Google browser console F12 how to set the Chinese / English switching method, we must see the last!!!
Some Modest Advice for Graduate Students - by Stephen C. Stearns, Ph.D.
Sumati GameFi生态纵览,神奇世界中的元素设计
弹性蛋白酶中英文说明书
poj3669 Meteor Shower(bfs预处理)
PHP 利用getid3 获取mp3、mp4、wav等媒体文件时长等数据
‘distutils‘ has no attribute ‘version
pbcms添加循环数字标签
中文地址与英文地址