oracle9i 中使用 logmnr
[準備]
1.Package file
@oracle_home/rdbms/admin/dbmslmd.sql
2.Dictionary file build
.initSID.ora file change
utl_file_dir = /oracle/logs
[logmnr]
1.dic.ora 檔案生成
execute dbms_logmnr_d.build(dictionary_filename=>'dict.ora',dictionary_location=>'/oracle/ANT/data4/logmnr');
2.新增需要使用的log檔案
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT161.log', options=>dbms_logmnr.new);
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT162.log', options=>dbms_logmnr.addfile);
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT163.log', options=>dbms_logmnr.addfile);
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT160.log', options=>dbms_logmnr.addfile);
3.開始進行分析
execute dbms_logmnr.start_logmnr(DictFileName=>'/oracle/ANT/data4/logmnr/dict.ora');
select username ,operation,sql_redo
from v$logmnr_contents
where operation='DDL'
SELECT SEG_OWNER,SEG_NAME,OPERATION,TO_CHAR(TIMESTAMP,'YYYY/MM/DD HH24:MI:SS')"TIME"
SQL_REDO,SQL_UNDO
FROM V$LOGMNR_CONTENTS
WHERE SEG_OWNER='SAHRIS'
AND SEG_NAME = 'KAOKE'
AND OPERATION='DELETE'
select sql_undo from v$logmnr_contents
where SEG_NAME = 'KAOKE'
AND seg_owner='SAHRIS'
AND OPERATION='DELETE'
4.dbms_logmnr.end_logmnrA[@more@]
1.Package file
@oracle_home/rdbms/admin/dbmslmd.sql
2.Dictionary file build
.initSID.ora file change
utl_file_dir = /oracle/logs
[logmnr]
1.dic.ora 檔案生成
execute dbms_logmnr_d.build(dictionary_filename=>'dict.ora',dictionary_location=>'/oracle/ANT/data4/logmnr');
2.新增需要使用的log檔案
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT161.log', options=>dbms_logmnr.new);
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT162.log', options=>dbms_logmnr.addfile);
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT163.log', options=>dbms_logmnr.addfile);
execute dbms_logmnr.add_logfile(logfilename=>'/oracle/ANT/arch/archANT160.log', options=>dbms_logmnr.addfile);
3.開始進行分析
execute dbms_logmnr.start_logmnr(DictFileName=>'/oracle/ANT/data4/logmnr/dict.ora');
select username ,operation,sql_redo
from v$logmnr_contents
where operation='DDL'
SELECT SEG_OWNER,SEG_NAME,OPERATION,TO_CHAR(TIMESTAMP,'YYYY/MM/DD HH24:MI:SS')"TIME"
SQL_REDO,SQL_UNDO
FROM V$LOGMNR_CONTENTS
WHERE SEG_OWNER='SAHRIS'
AND SEG_NAME = 'KAOKE'
AND OPERATION='DELETE'
select sql_undo from v$logmnr_contents
where SEG_NAME = 'KAOKE'
AND seg_owner='SAHRIS'
AND OPERATION='DELETE'
4.dbms_logmnr.end_logmnrA[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/503782/viewspace-983267/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle logmnr使用Oracle
- Logmnr 工具的使用
- LOGMNR的安裝和使用
- Oracle 10g Logmnr使用Oracle 10g
- LogMnr-誤DML後使用logmnr對資料進行恢復
- oracle10g logmnr的使用Oracle
- Oracle 使用logmnr檢視日誌Oracle
- oracle logmnrOracle
- 在oracle中Logmnr進行日誌挖掘Oracle
- Oracle9i中的PGAOracle
- Oracle11g使用LOGMNR挖掘日誌Oracle
- 使用LOGMNR檢視資料庫日誌資料庫
- 使用Logmnr恢復誤刪的資料
- 日誌分析logmnr (Logminer) 使用方法
- oracle logmnr文件Oracle
- oracle9i logMiner的使用Oracle
- 使用LOGMNR工具分析Oracle Redo Log和Archive Log教程Oracle RedoHive
- [Logmnr]使用logminer找回被誤刪的資料
- logmnr 日誌挖掘
- Oracle9i的OMS使用方法Oracle
- Oracle9i中的PGA自動管理Oracle
- Oracle9i 中如何限制登陸IPOracle
- 在Oracle9i中建立SPFILE檔案Oracle
- ORACLE LOGMNR 日誌挖掘Oracle
- logmnr找出PACKAGE失效原因Package
- oracle 10g logmnrOracle 10g
- Oracle9i中監視索引的使用(轉)Oracle索引
- 使用adodb504a連線oracle9iOracle
- 對oracle9i使用getClog出錯Oracle
- Oracle9i使用logminer恢復資料Oracle
- oracle9i使用flashback恢復資料(轉)Oracle
- Oracle logmnr簡單測試Oracle
- logmnr分析線上重做日誌
- oracle 的dbms_logmnr用途Oracle
- Oracle9i中的監聽動態註冊Oracle
- 從Oracle9i中傳送電子郵件Oracle
- oracle9i中insert 語句新增特性(轉)Oracle
- -轉載-使用Oracle9i的blockrecover新特性修復資料庫中的壞塊OracleBloC資料庫