Oracle bbed一鍵安裝工具分享

orastar發表於2021-11-08

1. 工具作用

    Oracle bbed(Block Browser and EDitor)工具, 是一款功能強大的Oracle internal分析及異常恢復
工具,為了幫助各位Oracle dba小夥伴便捷、正確的配置及使用bbed工具,分享Oracle bbed 一鍵安裝工具,
希望該工具對各位小夥伴有所幫助。
    下載方式:關注公眾號“xaoug”,回覆 “x_onekey”。

2. 安裝部署

[oracle@oracle19c ~]$ pwd
/home/oracle
[oracle@oracle19c ~]$ ls
x_recovery.tar
[oracle@oracle19c ~]$ ls -ltr
total 20
-rw-r--r--. 1 oracle oinstall 20480 Oct 28 22:31 x_recovery.tar[oracle@oracle19c ~]$ pwd
/home/oracle
[oracle@oracle19c ~]$ tar -xf x_recovery.tar 
[oracle@oracle19c ~]$ ls
x_recovery  x_recovery.tar
[oracle@oracle19c ~]$ cd x_recovery
[oracle@oracle19c x_recovery]$ ls
src  x_reco.sh
[oracle@oracle19c x_recovery]$ sh x_reco.sh 
--------------------------------------------------------------------------------
|**********************WELCOME: x_rec for Oracle*******************************| 
|1). install_bbed: bbed install one key                                        |
|2). exit: quit the x_rec                                                      |
|*****************if you need any help contact my wechat: xidoublestar*********|  
--------------------------------------------------------------------------------
pls,input operation name:install_bbed
will install bbed one key?(y/n)ybegin install bbed...
installl bbed succeed...--------------------------------------------------------------------------------
|**********************WELCOME: x_rec for Oracle*******************************| 
|1). install_bbed: bbed install one key                                        |
|2). exit: quit the x_rec                                                      |
|*****************if you need any help contact my wechat: xidoublestar*********|  
--------------------------------------------------------------------------------
pls,input operation name:exit[oracle@oracle19c x_recovery]$

3. 工具測試

[oracle@oracle19c x_recovery]$ cd
[oracle@oracle19c ~]$ pwd
/home/oracle
[oracle@oracle19c ~]$ ls -ltr
total 20
drwxr-xr-x. 3 oracle oinstall    34 Oct 28 15:53 x_recovery
-rw-r--r--. 1 oracle oinstall 20480 Oct 28 22:31 x_recovery.tardrwxr-xr-x. 2 oracle oinstall    59 Oct 28 23:02 bbed
[oracle@oracle19c ~]$ cd bbed
[oracle@oracle19c bbed]$ ls
l_bbed.sh  listfile.txt  par.bbed
[oracle@oracle19c bbed]$ cat l_bbed.sh 
bbed PASSWORD=blockedit PARFILE=par.bbed
[oracle@oracle19c bbed]$ cat listfile.txt 
1 /oradata/ORCL/system01.dbf 954204160                                          
3 /oradata/ORCL/sysaux01.dbf 807403520                                          
4 /oradata/ORCL/undotbs01.dbf 356515840                                         
7 /oradata/ORCL/users01.dbf 5242880                                             
[oracle@oracle19c bbed]$ cat par.bbed
blocksize=8192
listfile=listfile.txt
mode=edit
spool=yes
[oracle@oracle19c bbed]$ sh l_bbed.sh 
BBED: Release 2.0.0.0.0 - Limited Production on Thu Oct 28 23:04:05 2021Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> info all File#  Name                                                        Size(blks) 
-----  ----                                                        ----------
     1  /oradata/ORCL/system01.dbf                                      116480
     3  /oradata/ORCL/sysaux01.dbf                                       98560
     4  /oradata/ORCL/undotbs01.dbf                                      43520
     7  /oradata/ORCL/users01.dbf                                          640
     BBED> p dba 1,1 kcvfhbfhstruct kcvfhbfh, 20 bytes                   @0       
   ub1 type_kcbh                            @0        0x0b
   ub1 frmt_kcbh                            @1        0xa2
   ub2 wrp2_kcbh                            @2        0x0000
   ub4 rdba_kcbh                            @4        0x00400001
   ub4 bas_kcbh                             @8        0x00000000
   ub2 wrp_kcbh                             @12       0x0000
   ub1 seq_kcbh                             @14       0x01
   ub1 flg_kcbh                             @15       0x04 (KCBHFCKV)   ub2 chkval_kcbh                          @16       0xb563
   ub2 spare3_kcbh                          @18       0x0000BBED>

歡迎關注公眾號交流溝通“xaoug”
xaoug.jpg


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31442014/viewspace-2841108/,如需轉載,請註明出處,否則將追究法律責任。

相關文章