Oracle bbed Use

Source: Internet
Author: User

1: Installation: 11g version R2


CD $ORACLE _home/

Find. -name ins_rdbms.mk


CD Rdbms/lib

Make-f ins_rdbms.mk $ORACLE _home/rdbms/lib/bbed

The error will be in 11g. Three files need to be downloaded online. Or you have a 10g library to directly copy the 10g files:

Attached: http://download.csdn.net/detail/jycjyc/4578006

Copy the downloaded BBEDUS.MSB to the top level directory MESG CP LIB/BBEDUS.MSB mesg/

Then execute the make-f ins_rdbms.mk $ORACLE _home/rdbms/lib/bbed

$./bbed

After entering the bbed password is: Blockedit


2: Configuration view:

Then show all to see what to do with:

Find the file to manipulate in another window select * from V$datafile;


So here we can insert a record to see if the file is actually inserted into that : use Dbms_rowid this package

Select Dbms_rowid. ROWID_RELATIVE_FNO (ROWID), Dbms_rowid. Rowid_block_number (ROWID), id from T4;

Locate the data that was actually inserted in number 2nd, Block 121th, next set filename, file, block, blocksize, mode

Set FILENAME '/u01/app/oracle/test/data/test_01.dbf '

Set File 2

Set Block 121

Set BlockSize 8192

Set mode edit//edit can be modified, The browse mode does not allow modification

Find in bbed: find

Bbed> Set block 47//Read Block No. 47th

Bbed>dump//Show Dump

> Show All;

You can see the offset. OFFSET

Find/C with string

>FIND/C BBBBBBB

Find is finding and resetting offsets.

Search by Hex:

> find/x 42424242424242

Sometimes the invalid number is due to the 32-bit error.

Modify Command: MODIFY/C

bbed > Modify/c eeeeeee

Now look at the original data:

SELECT * from T1;

If you now report block corrupted:

That's because of the checksum problem: You can set the checksum off:

Show parameter check;

1)

Change db_block_checksum = false;

alter system set DB_BLOCK_CHECKSUM=FALSE;

Then refresh the next buffer_cache;

alter system flush Buffer_cache;

SELECT * from T1;

2) There is a better way:

Change the checksum directly

bbed> sum apply

Then go back in the refresh times Buffer_cache

Alter system flush Buffer_cache



This article is from the "Technology Life" blog, please be sure to keep this source http://jesnridy.blog.51cto.com/5554751/1439397

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.