当前位置:网站首页>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;
边栏推荐
- Install mysql5.6 under linux64bit - the root password cannot be modified
- 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
- 为猪脸识别而进行自己数据集的构建、训练「建议收藏」
- AssertionError: CUDA unavailable, invalid device 0 requested
- Some Modest Advice for Graduate Students - by Stephen C. Stearns, Ph.D.
- Full arrangement ii[duplicate removal of the same elements + standard backtracking]
- Which account is safer and better for access letter
- Fan benefits, JVM manual (including PDF)
- Chinese and English instructions of Papain
- [leetcode] 11. Container with the most water
猜你喜欢

PMP考试“临门一脚”如何踢得漂亮?

创新药二级市场审饼疲劳:三期临床成功、产品获批也不管用了

DataEase模板市场正式发布

void* 指针

Fatigue liée à l'examen du marché secondaire des médicaments innovants: succès clinique de la phase III et approbation du produit

MeterSphere開源持續測試平臺與阿裏雲雲效DevOps的集成

Pbcms adding cyclic digital labels

Boutique enterprise class powerbi application pipeline deployment

海河实验室创新联合体成立 GBASE成为首批创新联合体(信创)成员单位
![Full arrangement ii[duplicate removal of the same elements + standard backtracking]](/img/d3/93ddb49e580be60be4f056f141b782.png)
Full arrangement ii[duplicate removal of the same elements + standard backtracking]
随机推荐
屡获大奖的界面控件开发包DevExpress v22.1官宣发布
Merge sort template & understanding
Application session coverage solutions with different ports on the same server
多模态数据也能进行MAE?伯克利&谷歌提出M3AE,在图像和文本数据上进行MAE!最优掩蔽率可达75%,显著高于BERT的15%
Cake review fatigue in the secondary market of innovative drugs: phase III clinical success and product approval
WinXP内核驱动调试
js数组对象转对象
Chinese and English instructions of Papain
Redis basic commands and types
Baidu voice synthesizes voice files and displays them on the website
Abnova CSV magnetic beads description in Chinese and English
在两个有序数组中找到整体第K小的数可以做到O(log(Min(M,N)))
新一代可级联的以太网远程I/O数据采集模块
Dataease template market officially released
Preg in PHP_ How to replace variable data
TC对象结构和简称
JS array object to object
Pbcms adding cyclic digital labels
Matlab rounding
Deoxyribonuclease I instructions in Chinese and English