- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
oracle 日志挖掘(Oracle日志挖掘)
oracle 日志挖掘(Oracle日志挖掘)
Log mining
Today, I reviewed the knowledge of log mining and sorted out as follows:
Log mining can locate the DDL, DML, SCN, accurate time, you can find out who is the implementation of the DML, you can mistake the DML impact of the repair back, you can according to SCN DDL back to the library before the operation of the state.
Log mining can be divided into DDL log mining and DML log mining, and DDL can be dug directly, but mining DML needs to set the database into additional log data schema.
Here are two steps to dig:
DDL log mining:
1. check the archive file, the redolog directory, and the current group
Select, sequence#, name, first_time, next_time, from, v$archived_log, where, not, name, is,...
Null order by next_time DESC; - see the path to the archive file
Select * from v$logfile - - check the path of the log file
Select * from v$log -- see the current log group and status
2. add redolog or archivelog, add the corresponding time redolog or archivelog according to the DDL execution time
Exec dbms_logmnr.add_logfile (/u01/oracle/oradata/orcl/redo/redo04.log)
Exec dbms_logmnr.add_logfile (/u01/oracle/oradata/orcl/redo/redo01.log)
Add too many to delete Exec
Dbms_logmnr.remove_logfile (/u01/oracle/oradata/orcl/redo/redo01.log)
3. start log mining
Exec dbms_logmnr.start_logmnr
4. view mining results
Select, SCN, timestamp, sql_redo, sql_undo, username, os_username, machine_name, from
V$logmnr_contents where seg_owner=SCOTT;
The results can only be found in SCN, timestamp, sql_redo, and other, such as sql_undo, the result is empty, if you want to know who executed this DDL, unfortunately
Username, os_username, and machine_name are both UNKNOWN, and it seems that if you want to know who executed the DDL, you can only use the audit.
5. end mining:
Exec dbms_logmnr.end_logmnr
------------------------------------------------------------------------------------------------------
DML log mining:
1. checks whether the library is currently an additi
您可能关注的文档
- 03.3.牛顿第二定律(03.3. Newton's second law).doc
- ++兰州大学风雨百年发展历程_卫视_凤凰网2().doc
- 007_黄仁宇现象(007_ Huang Renyu phenomenon).doc
- 002机械挖土施工工艺(002 mechanical excavation construction technology).doc
- 007如何创建html表格(007 how to create a HTML table).doc
- 008_盼(008_ look forward to).doc
- 0.5元(0.5 yuan).doc
- 033牛顿第二定律(033 Newton's second law).doc
- 002汽车美容店投资创业方案(002 auto beauty shop investment venture program).doc
- 04 配套cad笔记(04 matching CAD notes).doc
- php也能实现java bean类似的自动赋值(PHP can also implement a similar automatic assignment of Java Bean).doc
- php试题(PHP examination questions).doc
- php输出函数的区别和使用(The difference and use of PHP output function).doc
- pcb知识(PCB knowledge).doc
- pid通俗易懂的讲解(PID easy to explain).doc
- pivot用于将列值旋转为列名(Pivot is used to rotate column values to column names).doc
- plink(叮铃).doc
- otg 百科名片(OTG encyclopedia business card).doc
- poj acm题目分类(POJ ACM topic classification).doc
- pcb布线技巧谈(PCB wiring skills).doc
最近下载
- 25个作业女性化教程.docx VIP
- 算法及其描述教学设计2025.pdf VIP
- 【课堂新坐标(教师用书)高中英语 Unit 2 Period Ⅰpreviewing课件 北师大版必修1.ppt VIP
- 边坡稳定性分析评价报告--.docx VIP
- 〖2021-2035年行业预测分析〗青稞纸行业发展战略及青稞纸行业壁垒突破分析.pdf VIP
- 【课堂新坐标(教师用书)高中英语 Unit 1 Period ⅠPreviewing课件 北师大版必修1.ppt VIP
- 《胖东来员工报名表》(Word版本).docx VIP
- 呼吸道职业暴露处理流程试题(附答案).docx VIP
- 【课堂新坐标(教师用书)高中英语 Unit 3 Period Ⅰ Previewing课件 北师大版必修1.ppt VIP
- 信息技术科组自评报告书.doc VIP
文档评论(0)