使用Logminer工具分析DML和DDL操作(二)
2008-11-11 12:59:37 来源:WEB开发网SQL>selectusername,timestamp,sql_redofromv$logmnr_contents
2 whereusername='SCOTT';
USERNAMETIMESTAMP SQL_REDO
-----------------------------------------------------------------------------
SCOTT 2008-10-2309:55:49settransactionreadwrite;
SCOTT 2008-10-2309:55:49insertinto"UNKNOWN"."OBJ#53917"("COL1","COL2"
,"COL3")values(HEXTORAW('c151'),HEXTORAW('6d656
e67'),HEXTORAW('50616e4a616e'));
SCOTT 2008-10-2309:56:25update"UNKNOWN"."OBJ#53917"set"COL3"=HEXTOR
AW('7368616e6720686169')where"COL3"=HEXTORAW(
'6265696a696e67')andROWID='AAANKdAAEAAAANEAAA'
;
SCOTT 2008-10-2309:56:33commit;
SCOTT 2008-10-2309:59:29altertabledeptadd(phonevarchar2(32));
SCOTT 2008-10-2310:29:50droptableempAS"BIN$j3Z4SzJ3QS6l/AGiD5RJiA==$0"
;
SCOTT 2008-10-2310:30:05droptabledeptAS"BIN$u6gL7KhfTZC+67ipacjOHw==$0
" ;
7、结束LogMiner
SQL> execute dbms_logmnr.end_logmnr;
PL/SQL 过程已成功完成。
更多精彩
赞助商链接