...
A SYSDBA connection is needed. Please execute the following query:
Section |
---|
Column | ||
---|---|---|
| ||
|
width | 95 |
---|
bgColor | CCC |
---|
begin
DBMS_LOGMNR.START_LOGMNR(
STARTTIME => sysdate-1,
ENDTIME => sysdate,
OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG + DBMS_LOGMNR.CONTINUOUS_MINE
);
end;
Querying the LogMiner data
After executing START_LOGMNR, the LogMiner data is available via the following command:
Section |
---|
Column | ||
---|---|---|
| ||
|
width | 95 |
---|
bgColor | CCC |
---|
SELECT *
FROMFROM V$LOGMNR_CONTENTS;
...
Note |
---|
Running this query in full and without any where clause can take a very long time. Also, it's not advisable to insert the full data back into the database, as it would cause lot of archive logs generated and the next query to the view would query these new logs, too. The recommended approach is:
|