Excessive Archive logs creation [message #614515] |
Thu, 22 May 2014 14:14 |
|
nitek
Messages: 11 Registered: May 2014
|
Junior Member |
|
|
I have issue with our 11.2.3.0 DB on AIX 6.1 where archive logfiles created excessively.
We know what job causing it but it is a small job about 12K rows insert and update.
Using logminer, we only see about 400~500 ops but the logfile is 200M in size.
Here is the sample of the count of one logfile.
OPERATION,COUNT(*)
COMMIT,107
DELETE,15
INSERT,70
INTERNAL,31
START,107
UNSUPPORTED,88
UPDATE,18
Tables have no blob,long datatype. Just number or varchar2.
Anyone has similar issue or have any idea on how/where to check what the problem is ?
TIA,
Nick
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Excessive Archive logs creation [message #614581 is a reply to message #614538] |
Fri, 23 May 2014 08:34 |
|
nitek
Messages: 11 Registered: May 2014
|
Junior Member |
|
|
look like we are heading the right direction.
Here we go
1) Look for the logfile that we are interested in
SELECT sequence#,name,first_time
FROM v$archived_log
WHERE 1=1
AND first_time BETWEEN TO_DATE('20140520142900','YYYYMMDDHH24MISS') AND TO_DATE('20140520143022','YYYYMMDDHH24MISS')
AND deleted='NO'
AND registrar='RMAN'
ORDER BY sequence#;
SEQUENCE# NAME FIRST_TIME
4880 /tmprestore/SPEC_1_4880_831555569.dbf 5/20/2014 2:29:14 PM
2) Check for the file on server to make sure it is there
spec> ls -ltr *4880*
-rw-r----- 1 oracle dba 181404672 May 21 15:36 SPEC_1_4880_831555569.dbf
3) Use DBMS_LOGMNR
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
EXECUTE DBMS_LOGMNR.START_LOGMNR( STARTTIME => '20-May-2014 14:29:15', ENDTIME => '20-May-2014 14:30:22',
OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG + DBMS_LOGMNR.CONTINUOUS_MINE);
4) Make sure we load the right file
SELECT log_id,filename,low_time,high_time
FROM v$logmnr_logs ;
LOG_ID FILENAME LOW_TIME HIGH_TIME
4880 /tmprestore/SPEC_1_4880_831555569.dbf 5/20/2014 2:29:14 PM 5/20/2014 2:30:23 PM
5) Let see how many ops
SELECT operation,count(*) FROM v$logmnr_contents
GROUP BY operation ;
OPERATION COUNT(*)
COMMIT 107
DELETE 15
INSERT 70
INTERNAL 31
START 107
UNSUPPORTED 88
UPDATE 18
6) Let's stop DBMS_LOGMNR
EXEC DBMS_LOGMNR.END_LOGMNR;
|
|
|
|
|
|
|