Its a pl/sql based utility.
Steps:
alter database add supplemental log data;
Steps:
alter database add supplemental log data;
To confirm this change:
select name, SUPPLEMENTAL_LOG_DATA_MIN from v$database;
Create a directory to store dictionary file.
mkdir /u01/logs
Create a directory to store dictionary file.
mkdir /u01/logs
Specify the location of dictionary file at OS level.
show parameter utl;
alter system set utl_file_dir = '/u01/logs' scope = spfile;
(we must change only in spfile)
show parameter utl;
alter system set utl_file_dir = '/u01/logs' scope = spfile;
(we must change only in spfile)
Bounce back the database.
startup force;
show parameter utl;
Create a dictionary file.
exec dbms_logmnr_d.build ('dfile', '/u01/logs');
Connect to a sys user and specify the all logfiles to Logminer session.
exec dbms_logmnr.add_logfile ('/u01/prod/redo01.log');
exec dbms_logmnr.add_logfile ('/u01/prod/redo02.log');
exec dbms_logmnr.add_logfile ('/u01/prod/redo03.log');
Start the mining process.
exec dbms_logmnr.start_logmnr (dictfilename => '/u01/logs/dfile');
spool abc.sql
select sql_undo, sql_redo from v$logmnr_contents
where seg_owner = 'SCOTT'
and seg_name = 'DEPT';
spool off;
startup force;
show parameter utl;
Create a dictionary file.
exec dbms_logmnr_d.build ('dfile', '/u01/logs');
Connect to a sys user and specify the all logfiles to Logminer session.
exec dbms_logmnr.add_logfile ('/u01/prod/redo01.log');
exec dbms_logmnr.add_logfile ('/u01/prod/redo02.log');
exec dbms_logmnr.add_logfile ('/u01/prod/redo03.log');
Start the mining process.
exec dbms_logmnr.start_logmnr (dictfilename => '/u01/logs/dfile');
spool abc.sql
select sql_undo, sql_redo from v$logmnr_contents
where seg_owner = 'SCOTT'
and seg_name = 'DEPT';
spool off;
Hi, Why this statement?
ReplyDeletesql> alter database add supplemental log data;
Again ,
sql> exec dbms_logmnr_d.build('dfile','/home/oracle/demo');
'dfile' means what ? Is it oracle keyword ?
Thanks
for supplemental log concept check this link
ReplyDeletehttp://www.dba-oracle.com/t_supplemental_logging.htm
dfile is not an oracle reserved word. its a physical flat file. it can be any name. for more info read the below link.
https://docs.oracle.com/cd/B12037_01/appdev.101/b10802/d_logmna.htm