Oracle Dump Redo Log File description

Source: Internet
Author: User

1. dump redo description

For the Dump redo log example, the [ID 1031381.6] documentation on MOS is described in detail. Dump has two methods:

(1) run the 'alter session' command dumpredo header.

(2) run the 'alter system dump logfile' command to dump logfile contents.

 

You can use the above commands in the mount, nomout, and open states, and use the above commands requires the 'alter system' permission. You can run the dump onlie redo log or archive file command. When the operating system is the same, you can dump the log files of other databases.

 

There are the following dump methods:

1. To dump records based in DBA (Data Block Address)

2. To dump records based on RBA (Redo Block Address)

3. To dump records based on SCN

4. To dump records based on time

5. To dump records based on layer and opcode

6. Dump the file header information

7. Dump an entire log file:

 

 

Ii. Examples 2.1 To dump records based on DBA (Data Block Address)

For DBA instructions, refer:

Oracle rdba and dba description

Dump Based on DBA, mainly based on file and block number. This block is a range value.

 

The 11g command format is as follows:

Alter system dump logfile 'filename' dba min fileno. blockno dba max fileno. blockno;

 

If it is Oracle 10 Gb, You need to omit '.', that is, the format is as follows:

Alter system dump logfile 'filename' dba min fileno blockno dba max fileno blockno;

 

Otherwise, the ORA-01963: Must specify a block number error is reported.

 

 

For example:

SYS @ anqing1 (rac1)> select * fromv $ version where rownum = 1;

BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise EditionRelease 10.2.0.4.0-Prod

 

SQL> select distinct dbms_rowid.rowid_relative_fno (rowid) rel_fno,

Dbms_rowid.rowid_block_number (rowid) blockno from ta;

 

REL_FNO BLOCKNO

--------------------

1 294608

1 294609

1 294612

1 294614

1 294621

1 294635

1 294643

1 294654

1 294656

1 294657

6 10385

 

REL_FNO BLOCKNO

--------------------

6 10393

6 10410

6 10411

6 10415

6 10416

6 10458

6 10461

6 10464

6 10465

6 10468

6 10472

 

Determine the location of the log file:

SYS @ anqing1 (rac1)> selecta. group #, a. status, B. member from v $ log a, v $ logfile B where a. group # = B. group #;

 

GROUP # STATUS MEMBER

------------------------------------------------------------------------------

3 INACTIVE + DATA/anqing/onlinelog/redo03.log

2 INACTIVE + DATA/anqing/onlinelog/redo02.log

1 CURRENT + DATA/anqing/onlinelog/group_1.277.751552735

1 CURRENT + FRA/anqing/onlinelog/group_1.20..751552739

4 CURRENT + DATA/anqing/onlinelog/group_4.282.751560131

5 INACTIVE + DATA/anqing/onlinelog/group_5.283.751560139

 

6 rows selected.

 

SYS @ anqing1 (rac1)>Alter system dump logfile '+ data/anqing/onlinelog/redo02.log 'dbamin 6 10458 dba max 6 10472;

System altered.

 

SYS @ anqing1 (rac1)>Oradebug setmypid

Statement processed.

SYS @ anqing1 (rac1)>Oradebug tracefile_name

/U01/app/oracle/admin/anqing/udump/anqing1_ora_30373.trc

SYS @ anqing1 (rac1)>

 

[Oracle @ rac1 ~] $Cat/u01/app/oracle/admin/anqing/udump/anqing1_ora_30373.trc

/U01/app/oracle/admin/anqing/udump/anqing1_ora_30373.trc

Oracle Database 10g Enterprise EditionRelease 10.2.0.4.0-Production

With the Partitioning, Real applicationters ters, OLAP, Data Mining

And Real Application Testing options

ORACLE_HOME =/u01/app/oracle/product/10.2.0/db_1

System name: Linux

Node name: rac1

Release: 2.6.18-194. el5

Version: #1 SMP Tue Mar 16 21:52:43 EDT 2010

Machine: i686

Instance name: anqing1

Redo thread mounted by this instance: 1

Oracle process number: 28

Unix process pid: 30373, image: oracle @ rac1 (TNS V1-V3)

 

* ** 22:10:37. 053

* ** Action name :() 22:10:37. 052

* ** Module name :( sqlplus @ rac1 (TNS V1-V3) 22:10:37. 052

* ** Service name :( SYS $ USERS) 2011-08-0822: 10: 37.052

* ** Session id: (127.27077) 2011-08-0822: 10: 37.052

 

Dump of redo from file '+ data/anqing/onlinelog/redo02.log'

Opcodes *.*

DBAs: (file #6, block #10458) thru (file #6, block #10472)

RBAs: 0x000000. 00000000.0000 thru0xffffffff. ffffffff. ffff

SCNs: scn: 0x0000.00000000 thru scn: 0xffff. ffffff

Times: creation thru eternity

FILEHEADER:

Compatibility Vsn = 169870336 = 0xa200400

Db ID = 715014091 = 0x2a9e3fcb, Db Name = 'anqing'

Activation ID = 682502900 = 0x28ae2af4

Control Seq = 4261 = 0x10a5, File size = 102400 = 0x19000

File Number = 2, Blksiz = 512, File Type = 2 LOG

Descrip: "Thread0001, Seq #0000000119, SCN 0x0000006ab1bc-0x0000006e0c84"

Thread: 1 nab: 0x18ffd seq: 0x00000077 hws: 0x2 eot: 0 dis: 0

Resetlogs count: 0x2ccbc8df scn: 0x0000. 000704fa (460026)

Resetlogs terminal rcv count: 0x0 scn: 0x0000.00000000

Prevresetlogs count: 0x2ebbfe8f scn: 0x0000. 0006ce7b (446075)

Prevresetlogs terminal rcv count: 0x0 scn: 0x0000.00000000

Low scn: 0x0000. 006ab1bc (6992316) 07/30/2011 05:39:17

Nextscn: 0x0000. 006e0c84 (7212164) 08/03/2011 14:14:34

Enabled scn: 0x0000. 000704fa (460026) 05/19/2011 12:38:55

Thread closed scn: 0x0000. 006ab1bc (6992316) 07/30/2011 05:39:17

Diskcksum: 0xd530 Calc cksum: 0xd530

Terminal recovery stop scn: 0x0000.00000000

Terminal recovery 01/01/1988 00:00:00

Mostrecent redo scn: 0x0000.00000000

Largest LWN: 1874 blocks

End-of-redo stream: No

Unprotected mode

Miscellaneous flags: 0x0

Thread internal enable indicator: thr: 0, seq: 0 scn: 0x0000.00000000

 

Redo record-Thread: 1 RBA: 0x000077. 00000cd6. 017c LEN: 0x0048 VLD: 0x01

SCN: 0x0000. 006ac8a9 SUBSCN: 1 07/30/2011 08:28:08

CHANGE #1 media recovery markerscn: 0x0000.00000000 SEQ: 0 OP: 18.3

Reuse redo entry

Range reuse: tsn = 1 base = 8542185 nblks = 8

 

Redo record-Thread: 1 RBA: 0x000077. 1096e99. 0078 LEN: 0x0044 VLD: 0x01

SCN: 0x0000. 006b7ae1 SUBSCN: 1 07/31/2011 06:18:10

CHANGE #1 media recovery markerscn: 0x0000.00000000 SEQ: 0 OP: 17.4

Datafile resize marker-file: 2 old size: 153600 new size: 156160

 

Redo record-Thread: 1 RBA: 0x000077. 1097884.017c LEN: 0x0048 VLD: 0x01

SCN: 0x0000. 006b8d16 SUBSCN: 1 07/31/2011 08:33:09

CHANGE #1 media recovery markerscn: 0x0000.00000000 SEQ: 0 OP: 18.3

Reuse redo entry

Range reuse: tsn = 1 base = 8542217 nblks = 1024

* ** 22:10:54. 783

END OF REDO DUMP

----- Redo read statistics for thread 1 -----

Read rate (ASYNC): 97kb in 17.78 s => 2.81 Mb/sec

Total physical reads: 12797kb

Longest record: 8 KB, moves: 0/85186 (0%)

Change moves: 30223/143291 (21%), moved: 5 Mb

Longest LWN: 937Kb, moves: 6/66426 (0%), moved: 0 Mb

Last redo scn: 0x0000. 006e087b (7211131)

----------------------------------------------

[Oracle @ rac1 ~] $

  • 1
  • 2
  • 3
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.