Record the installation of bbed under--oracle 11.2.0.4
1. Install bbed under Oracle 11G, need to copy three packages from Oracle 10GBbedus.msb
Sbbdpt.o
ssbbded.o
Download Address: 32-bit http://download.csdn.net/detail/q947817003/6587001 64-bit http://download.csdn.net/detail/q947817003/6587017
Use Oracle to upload to/home/oracle and move three files to the $oracle_home/rdbms/lib/directory.
[Oracle@bys3 ~]$ ls
Linux_10g_bbed_32.zip
[Oracle@bys3 ~]$ Unzip Linux_10g_bbed_32.zip
[Oracle@bys3 ~]$ mv SBBDPT.O $ORACLE _home/rdbms/lib/
[Oracle@bys3 ~]$ mv SSBBDED.O $ORACLE _home/rdbms/lib/
[Oracle@bys3 ~]$ mv BBEDUS.MSB $ORACLE _home/rdbms/mesg/
Execute the following command:
[Oracle@bys3 ~]$ CD $ORACLE _home/rdbms/lib
[Oracle@bys3 lib]$ make-f $ORACLE _home/rdbms/lib/ins_rdbms.mk bbed= $ORACLE _home/bin/bbed $ORACLE _home/bin/bbed
Attach an error:-
-If not installed MV BBEDUS.MSB $ORACLE _home/rdbms/mesg/The following error:
[Oracle@bys3 lib]$ bbed
Message 112 not found; No message file for Product=rdbms, facility=bbed
Bbed-00113:file not found
Installation successfully logged as follows:
[Oracle@bys3 ~]$ bbed
Password: The default password is: Blockedit
Bbed:release 2.0.0.0.0-limited Production on Thu Nov 21 12:09:15 2013
Copyright (c) 1982, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal with only!!! ***************
Bbed> exit
#############################################
2, Bbed simple use Method-Bbed
Blockedit
Enter bbed and the initial settings are as follows:
[Oracle@bys3 ~]$ Cat PAR.BBD
blocksize=8192
Listfile=bbedfile.txt
Mode=edit
[Oracle@bys3 ~]$ Cat Bbedfile.txt--You can select File#,name from V$dbfile; Select File#,name from V$datafile;
1/U01/ORADATA/BYS3/SYSTEM01.DBF 524288000
2/U01/ORADATA/BYS3/SYSAUX01.DBF 340787200
3/U01/ORADATA/BYS3/UNDOTBS01.DBF 209715200
4/U01/ORADATA/BYS3/USER01.DBF 52428800
[Oracle@bys3 ~]$ bbed PARFILE=PAR.BBD
Password:--Enter default password Blockedit
Bbed:release 2.0.0.0.0-limited Production on Thu Nov 28 10:14:54 2013
Copyright (c) 1982, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal with only!!! ***************
Bbed> Show All---This command displays information such as the current file number, block number, offset number, count count, and so on. Need to set FILE set BLOCKSIZE set block in advance
file# 1
block# 1
OFFSET 0
DBA 0x00400001 (4194305 1,1)-------
represents the current block 1 of file 1
Filename/u01/oradata/bys3/system01.dbf
Bifile BIFILE.BBD
ListFile Bbedfile.txt
BLOCKSIZE 8192
MODE Edit
EDIT Unrecoverable
IBase Dec
Obase Dec
WIDTH 80
COUNT 512
LOGFILE LOG.BBD
SPOOL No
3, bbed common commands: Set, find, dump, modify, sum apply, examine, map, print, Verity
(1) Set file 4 Block 32--The premise of set file 4 here is to use the parameter file as in step 2nd if the set a nonexistent file number,bbed> set file 7/bbed-00205:illega L or out of range DBA (File 7, block 1)
Set DBA 0x01000020
Set offset 0--0 indicates first byte start
Set Block 1--1 represents the start of the first chunk
Set Count 8192--default is to display 512 bytes
(2) find/x 05d67g--Check the specified string in the specified data block location
F--find, which indicates that the query string continues to proceed from the current position 05d67g
(3) Dump--16 view block
Dump/v--View the hexadecimal content as text to "translate" hexadecimal content, equivalent to executing the strings command on the current block
(4) modify/x d43--Modify the specified block to specify the contents of the data block within the offset
(5) Sum apply-Calculates the checksum value of the modified block of data, and writes the position of offset 16-17 of the data block
(6) Map
map/v
P KCBH
P KTBBH
P KDBH
P KDBT
P KCVFH
P KCVFH.KCVFHRFN
P KCVFH.KCVFHCKP
P *kdbr[0]--First line record
X/rnc-examine/read number char translates into a document that we can read with 16
More detailed can see Dave's blog haha http://blog.csdn.net/tianlesoftware/article/details/5006580