How to make BBED(Oracle Block Brower and EDitor Tool) on Unix/Linux/Windows

简介:
"BBED(Oracle Block Brower and EDitor Tool),用来直接查看和修改数据文件数据的一个工具,是Oracle一款内部工具,可以直接修改Oracle数据文件块的内容,简单来说就是一个针对 Oracle的二进制编辑工具。该工具不受Oracle支持,所以默认是没有生成可执行文件的,在使用前需要重新编译。"   在10g中编译该工具显得较简单:  
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[maclean@rh2 ~]$  cd  $ORACLE_HOME /rdbms/lib
 
[maclean@rh2 lib]$  make  -f ins_rdbms.mk $ORACLE_HOME /rdbms/lib/bbed
make : ` /s01/10gdb/rdbms/lib/bbed ' is up to  date .
 
[maclean@rh2 lib]$  rm  bbed
 
[maclean@rh2 lib]$  make  -f ins_rdbms.mk $ORACLE_HOME /rdbms/lib/bbed
 
Linking BBED utility (bbed)
rm  -f  /s01/10gdb/rdbms/lib/bbed
gcc -o  /s01/10gdb/rdbms/lib/bbed  -L /s01/10gdb/rdbms/lib/  -L /s01/10gdb/lib/  -L /s01/10gdb/lib/stubs/   /s01/10gdb/lib/s0main .o  /s01/10gdb/rdbms/lib/ssbbded .o  /s01/10gdb/rdbms/lib/sbbdpt .o ` cat  /s01/10gdb/lib/ldflags `    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10  /s01/10gdb/rdbms/lib/defopt .o -ldbtools10 -lclntsh  ` cat  /s01/10gdb/lib/ldflags `    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 ` cat  /s01/10gdb/lib/ldflags `    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10  -lvsn10 -lcommon10 -lgeneric10 -lmm -lsnls10 -lnls10  -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 ` cat  /s01/10gdb/lib/ldflags `    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 ` cat  /s01/10gdb/lib/ldflags `    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10  -lvsn10 -lcommon10 -lgeneric10   -lsnls10 -lnls10  -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lclient10 -lnnetd10  -lvsn10 -lcommon10 -lgeneric10 -lsnls10 -lnls10  -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10   ` cat  /s01/10gdb/lib/sysliblist ` -Wl,-rpath, /s01/10gdb/lib  -lm    ` cat  /s01/10gdb/lib/sysliblist ` -ldl -lm   -L /s01/10gdb/lib
 
[maclean@rh2 lib]$  cp  bbed $ORACLE_HOME /bin
 
[maclean@rh2 lib]$ bbed
Password:
 
BBED: Release 2.0.0.0.0 - Limited Production on Thu Sep 2 14:18:27 2010
 
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
 
BBED>
 
/* 你可能要问密码是什么? 呵呵 .. :) */
11.2.0.1中编译bbed可执行文件所需要的ssbbded.o和sbbdpt.o对象文件被移除了,所幸我们可以使用10g下的这2个对象文件在11.2.0.1中编译。
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[maclean@rh2 lib]$  make  -f ins_rdbms.mk $ORACLE_HOME /rdbms/lib/bbed
 
Linking BBED utility (bbed)
rm  -f  /s01/11gdb/rdbms/lib/bbed
gcc -o  /s01/11gdb/rdbms/lib/bbed  -m64 -L /s01/11gdb/rdbms/lib/  -L /s01/11gdb/lib/  -L /s01/11gdb/lib/stubs/   /s01/11gdb/lib/s0main .o  /s01/11gdb/rdbms/lib/ssbbded .o  /s01/11gdb/rdbms/lib/sbbdpt .o ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh  ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lztkg11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11   -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11   ` cat  /s01/11gdb/lib/sysliblist ` -Wl,-rpath, /s01/11gdb/lib  -lm    ` cat  /s01/11gdb/lib/sysliblist ` -ldl -lm   -L /s01/11gdb/lib
gcc:  /s01/11gdb/rdbms/lib/ssbbded .o: No such  file  or directory
gcc:  /s01/11gdb/rdbms/lib/sbbdpt .o: No such  file  or directory
 
[maclean@rh2 ~]$  cp  /s01/10gdb/rdbms/lib/ssbbded .o  /s01/11gdb/rdbms/lib
 
[maclean@rh2 ~]$  cp  /s01/10gdb/rdbms/lib/sbbdpt .o   /s01/11gdb/rdbms/lib
 
[maclean@rh2 ~]$  cp  /s01/10gdb/rdbms/mesg/bbedus .ms*  /s01/11gdb/rdbms/mesg/
 
/* bbed 需要用到bbedus.msg和bbedus.msb 2个信息文件 */
 
[maclean@rh2 lib]$  make  -f ins_rdbms.mk $ORACLE_HOME /rdbms/lib/bbed
 
Linking BBED utility (bbed)
rm  -f  /s01/11gdb/rdbms/lib/bbed
gcc -o  /s01/11gdb/rdbms/lib/bbed  -m64 -L /s01/11gdb/rdbms/lib/  -L /s01/11gdb/lib/  -L /s01/11gdb/lib/stubs/   /s01/11gdb/lib/s0main .o  /s01/11gdb/rdbms/lib/ssbbded .o  /s01/11gdb/rdbms/lib/sbbdpt .o ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh  ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -lztkg11 -lztkg11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11 -lmm -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 ` cat  /s01/11gdb/lib/ldflags `    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11   -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11 -lclient11 -lnnetd11  -lvsn11 -lcommon11 -lgeneric11 -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11   ` cat  /s01/11gdb/lib/sysliblist ` -Wl,-rpath, /s01/11gdb/lib  -lm    ` cat  /s01/11gdb/lib/sysliblist ` -ldl -lm   -L /s01/11gdb/lib
 
[maclean@rh2 lib]$  file  bbed
bbed: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV),  for  GNU /Linux  2.6.9, dynamically linked (uses shared libs),  for  GNU /Linux  2.6.9, not stripped
 
[maclean@rh2 lib]$ size bbed
    text    data     bss     dec     hex filename
  154473   43448      32  197953   30541 bbed
 
[maclean@rh2 lib]$ ldd bbed
         libclntsh.so.11.1 =>  /s01/11gdb/lib/libclntsh .so.11.1 (0x00002b042b883000)
         libnnz11.so =>  /s01/11gdb/lib/libnnz11 .so (0x00002b042dead000)
         libdl.so.2 =>  /lib64/libdl .so.2 (0x00000039f2400000)
         libm.so.6 =>  /lib64/libm .so.6 (0x00000039f2000000)
         libpthread.so.0 =>  /lib64/libpthread .so.0 (0x00000039f2800000)
         libnsl.so.1 =>  /lib64/libnsl .so.1 (0x00000039f5c00000)
         libc.so.6 =>  /lib64/libc .so.6 (0x00000039f1c00000)
         libaio.so.1 =>  /usr/lib64/libaio .so.1 (0x00002b042e293000)
         /lib64/ld-linux-x86-64 .so.2 (0x00000039f1800000)
 
[maclean@rh2 lib]$  cp  bbed $ORACLE_HOME /bin
 
[maclean@rh2 lib]$  which  bbed
/s01/11gdb/bin/bbed
 
[maclean@rh2 lib]$ bbed
Password:
 
BBED: Release 2.0.0.0.0 - Limited Production on Thu Sep 2 15:18:37 2010
 
Copyright (c) 1982, 2009, Oracle and /or  its affiliates.  All rights reserved.
 
BBED>

  如图:   



本文转自maclean_007 51CTO博客,原文链接:http://blog.51cto.com/maclean/1277116

相关文章
|
11月前
|
Oracle 关系型数据库 MySQL
Oracle Linux 8.10 编译安装sysbench
Oracle Linux 8.10 编译安装sysbench
365 34
|
11月前
|
关系型数据库 虚拟化 UED
Omnissa Horizon Windows OS Optimization Tool 2503 - Windows 系统映像优化工具
Omnissa Horizon Windows OS Optimization Tool 2503 - Windows 系统映像优化工具
421 7
Omnissa Horizon Windows OS Optimization Tool 2503 - Windows 系统映像优化工具
|
10月前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
420 11
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
|
10月前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
451 0
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
|
9月前
|
Oracle 关系型数据库 Linux
MyEMS开源系统安装之CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux
本指南介绍如何在CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux服务器上部署MyEMS开源能源管理系统。内容涵盖系统准备、数据库配置、多个MyEMS服务(如myems-api、myems-admin、myems-modbus-tcp等)的安装与配置,以及Nginx服务器设置和防火墙规则调整。通过完成所有步骤,您将能够访问MyEMS Admin UI和Web UI,默认端口分别为8001和80,初始登录凭据已提供。
565 0
|
11月前
|
Oracle 关系型数据库 MySQL
Oracle linux 8 二进制安装 MySQL 8.4企业版
Oracle linux 8 二进制安装 MySQL 8.4企业版
470 1
|
安全 Unix Linux
Unix:Linux的“祖师爷”
Unix的诞生 Unix操作系统诞生于1969年,由肯·汤普逊(Kenneth Lane Thompson)和丹尼斯·里奇(Dennis MacAlistair Ritchie)在AT&T的贝尔实验室开发。其初衷是为了在闲置的PDP-7计算机上开发一个简单的操作系统,以便进行编程和游戏。最初的Unix是用汇编语言编写的,但随后为了更高效的开发和更好的可移植性,里奇和汤普逊用C语言重写了Unix的大部分代码,这奠定了Unix的基础,并促进了C语言的广泛应用。
367 2
|
Oracle 关系型数据库 Linux
linux8安装oracle 11g遇到的问题记录
Oracle 11g在Linux 8上安装时会遇到link编译环节的问题。官方建议忽略安装中的链接错误,安装完成后应用DBPSU 11.2.0.4.240716补丁及一次性补丁33991024,再重新编译二进制文件,并配置监听器和数据库。但因11g已退出服务期,这些补丁需付费获取。网上信息显示22年1月的PSU补丁也可解决问题,找到该补丁后按常规方式打补丁即可。如有需求或疑问可咨询我。
647 20
|
Oracle Cloud Native 关系型数据库
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
317 10
Oracle Linux 9.5 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
|
Unix Linux 编译器
UNIX/Linux 上的安装
UNIX/Linux 上的安装。
205 2

热门文章

最新文章