2013年(118)
分类: Oracle
2013-08-12 11:16:12
原文地址:ORACLE 11GR2 编译 bbed 作者:deepalley
bbed,号称oracle手术刀, 用来反汇编 oracle data block。但是在11G中编译安装却遇到了点麻烦,看来原厂并不鼓励使用。
1. 编译出错
[oracle@dbserver lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbed
gcc: /u01/app/oracle/product/11.2.0/dbhome_01/rdbms/lib/ssbbded.o: No such file or directory
gcc: /u01/app/oracle/product/11.2.0/dbhome_01/rdbms/lib/sbbdpt.o: No such file or directory
make: *** [/u01/app/oracle/product/11.2.0/dbhome_01/rdbms/lib/bbed] Error 1
2. 从10g 中拷贝文件$ORACLE_HOME/rdbms/lib/{ sbbdpt.o, ssbbded.o}, $ORACLE_HOME/rdbms/mesg/bbedus.ms*
[oracle@dbserver shared]$ cp sbbdpt.o ssbbded.o /u01/app/oracle/product/11.2.0/dbhome_01/rdbms/lib/
[oracle@dbserver shared]$ cp bbedus.ms* /u01/app/oracle/product/11.2.0/dbhome_01/rdbms/mesg/
3. 重新编译成功
[oracle@dbserver lib]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_01/rdbms/lib
[oracle@dbserver lib]$ make -f ins_rdbms.mk /u01/app/oracle/product/11.2.0/dbhome_01/rdbms/lib/bbed
Linking BBED utility (bbed)
rm -f /u01/app/oracle/product/11.2.0/dbhome_01/rdbms/lib/bbed
.......
`cat /u01/app/oracle/product/11.2.0/dbhome_01/lib/sysliblist` -Wl,-rpath,/u01/app/oracle/product/11.2.0/dbhome_01/lib -lm `cat /u01/app/oracle/product/11.2.0/dbhome_01/lib/sysliblist` -ldl -lm -L/u01/app/oracle/product/11.2.0/dbhome_01/lib
4. 拷贝/链接 bbed 到$ORACLE_HOME/bin 目录
5. 启动bbed
[oracle@dbserver lib]$ bbed
Password: # 密码 blockedit
BBED: Release 2.0.0.0.0 - Limited Production on Sun Aug 11 22:00:40 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
************* !!! For Oracle Internal Use only !!! ***************
BBED> exit