Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: any way to tell when an extent was added?
Hi John,
If you know which logfile to look in, the following command should do it.
alter system dump logfile '/some/logfile' layer 14 opcode 4;
That will give you a trace file with 19 lines for each extent allocation recorded in that logfile. The timestamp is on the second line, and the RDBA of the extent added is on the second last line after the ADD tag. Here is an example ...
REDO RECORD - Thread:1 RBA: 0x0000cf.00000011.002c LEN: 0x00dc VLD: 0x01
SCN: 0x0000.007db024 SUBSCN: 1 03/17/2004 08:50:30 CHANGE #1 TYP:0 CLS:32 AFN:2 DBA:0x00800131 SCN:0x0000.007db024 SEQ: 4 OP:5.1 ktudb redo: siz: 96 spc: 16234 flg: 0x0022 seq: 0x005a rec: 0x03 xid: 0x0008.02a.00000089 ktubu redo: slt: 42 rci: 2 opc: 14.5 objn: 7 objd: 25488 tsn: 4 Undo type: Regular undo Undo type: Last buffer split: No Tablespace Undo: Yes 0x00000000 kteopu undo - undo operation on extent map segdba: 0x1000029 class: 4 mapdba:0x1000029 offset: 2 rbr extent - dba: 0x100002d nbk: 0x4 kteop redo - redo operation on extent map DELETE: entry:1 shift back: dba:0x0 len:0 SETSTAT: exts:1 blks:3 lastmap:0x0 mapcnt:0 CHANGE #2 TYP:0 CLS: 4 AFN:4 DBA:0x01000029 SCN:0x0000.007db024 SEQ: 7 OP:14.4 kteop redo - redo operation on extent map ADD: dba:0x100002d len:4 at offset:1 SETSTAT: exts:2 blks:7 lastmap:0x0 mapcnt:0
There are other extent management operations that also use the 14.4 opcode, so don't be confused if you see a few bits of the other stuff as well.
@ Regards,
@ Steve Adams
@ http://www.ixora.com.au/ - For DBAs
@ http://www.christianity.net.au/ - For all
-----Original Message-----
From: Fedock, John (KAM.RHQ)
Sent: Wednesday, 17 March 2004 8:33 AM
To: oracle-l_at_freelists.org
Subject: any way to tell when an extent was added?
I am trying to debug some buffer busy wait issues and was wondering if there was a way to tell when an extent was added to a segment (a date/timestamp)?
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Tue Mar 16 2004 - 16:07:41 CST
![]() |
![]() |