ITPub博客

首页 > 数据库 > Oracle > Oracle 11G 安装 bbed 工具

Oracle 11G 安装 bbed 工具

Oracle 作者:东北胖子 时间:2019-01-14 20:20:03 0 删除 编辑

BBED(Oracle Block Browerand EDitor Tool),用来直接查看和修改数据文件数据的一个工具,是Oracle一款内部工具,可以直接修改Oracle数据文件块的内容,在一些极端恢复场景下比较有用。该工具不受Oracle支持,所以默认是没有生成可执行文件的,在使用前需要重新连接。

本文的实验环境为:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0

bbed安装(Oracle 11.2.0.4)

因为BBED是Oracle内部工具,在11g环境中,已经不开放使用,所以需要从Oracle10g中拷贝相应的文件到ORACLE_HOME中。

  • 从Oracle 10g上拷贝3个文件到本地Oracle安装目录下。文件如下:

$ORACLE_HOME/rdbms/lib/sbbdpt.o
$ORACLE_HOME/rdbms/lib/ssbbded.o
$ORACLE_HOME/rdbms/mesg/bbedus.msb
  • 使用Oracle用户执行以下命令编译:

$ make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk BBED=$ORACLE_HOME/bin/bbed $ORACLE_HOME/bin/bbed
  • 登录bbed

[oracle@test-db mesg]$ bbed
Password: 
BBED: Release 2.0.0.0.0 - Limited Production on Mon Jan 14 20:10:46 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED>

默认密码为:blockedit


当出现如下提示时表明没有创建配置文件

BBED> set file 3 block 128
BBED-00312: no LISTFILE specified


filelist文件中的内容可以通过SQL获得:select file#||' '||name||' '||bytes from v$datafile ;

[oracle@test-db ~]$ vi filelist
3 /data/oracle/oradata/justin.dbf 104857603 /data/oracle/oradata/justin.dbf 104857603 /data/oracle/oradata/renkun01.dbf 10485760参数信息
[oracle@test-db ~]$ vi par
blocksize=8192
listfile=filelist.txt
mode=edit

登录

[oracle@test-db ~]$ bbed parfile=/home/oracle/par
Password: 
BBED: Release 2.0.0.0.0 - Limited Production on Mon Jan 14 22:28:03 2019
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2317695/viewspace-2557335/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-03-09

  • 博文量
    77
  • 访问量
    204989