下面是介绍一下ORACLE BBED工具的安装。

      ORACLE 10G

  1. [root@test ~]# su - oracle 
  2. [oracle@test mesg]$ cd $ORACLE_HOME/rdbms/lib 
  3. [oracle@test lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbed 
  4. Linking BBED utility (bbed) 
  5. rm -f /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/bbed 
  6. gcc -o /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/bbed -L/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ -L/u01/app/oracle/product/10.2.0/db_1/lib/ -L/u01/app/oracle/product/10.2.0/db_1/lib/stubs/  /u01/app/oracle/product/10.2.0/db_1/lib/s0main.o /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ssbbded.o /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/sbbdpt.o `cat /u01/app/oracle/product/10.2.0/db_1/lib/ldflags`    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/defopt.o -ldbtools10 -lclntsh  `cat /u01/app/oracle/product/10.2.0/db_1/lib/ldflags`    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /u01/app/oracle/product/10.2.0/db_1/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 /u01/app/oracle/product/10.2.0/db_1/lib/ldflags`    -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /u01/app/oracle/product/10.2.0/db_1/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 /u01/app/oracle/product/10.2.0/db_1/lib/sysliblist` -Wl,-rpath,/u01/app/oracle/product/10.2.0/db_1/lib -lm    `cat /u01/app/oracle/product/10.2.0/db_1/lib/sysliblist` -ldl -lm   -L/u01/app/oracle/product/10.2.0/db_1/lib 
  7. [oracle@test lib]$ ln -s $ORACLE_HOME/bin/bbed /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/bbed 
  8. ln: creating symbolic link `/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/bbed' to `/u01/app/oracle/product/10.2.0/db_1/bin/bbed': File exists 
  9. [oracle@test lib]$ cd /u01/app/oracle/product/10.2.0/db_1/bin/ 
  10.  
  11. [oracle@test bin]$ cp /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/bbed /u01/app/oracle/product/10.2.0/db_1/bin/ 
  12. [oracle@test bin]$ which bbed 
  13. /u01/app/oracle/product/10.2.0/db_1/bin/bbed 
  14. [oracle@test bin]$ bbed 
  15. Password:  
  16. BBED-00113: Invalid password. Please rerun utility with the correct password

      ORACLE 11G

     在11g默认已经不支持bbed,但是我们可以通过把10g的文件cp来11g的环境来编译。

  1. [oracle@test ~]$ cp /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ssbbded.o /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ 
  2. [oracle@test ~]$ cp /u01/app/oracle/product/10.2.0/db_1/rdbms/lib/sbbdpt.o /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ 
  3. [oracle@test ~]$ cp /u01/app/oracle/product/10.2.0/db_1/rdbms/mesg/bbedus.ms* /u01/app/oracle/product/11.2.0/db_1/rdbms/mesg/ 
  4. [oracle@test lib]$ cd $ORACLE_HOME 
  5. [oracle@test db_1]$ cd rdbms 
  6. [oracle@test rdbms]$ cd lib 
  7. [oracle@test lib]$ make -f  ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbed 
  8. rm -f /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/bbed 
  9. gcc -o /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/bbed -m64 -L/u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ -L/u01/app/oracle/product/11.2.0/db_1/lib/ -L/u01/app/oracle/product/11.2.0/db_1/lib/stubs/  /u01/app/oracle/product/11.2.0/db_1/lib/s0main.o /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/ssbbded.o /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/sbbdpt.o `cat /u01/app/oracle/product/11.2.0/db_1/lib/ldflags`    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh  `cat /u01/app/oracle/product/11.2.0/db_1/lib/ldflags`    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0/db_1/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 /u01/app/oracle/product/11.2.0/db_1/lib/ldflags`    -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0/db_1/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 /u01/app/oracle/product/11.2.0/db_1/lib/sysliblist` -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/lib -lm    `cat /u01/app/oracle/product/11.2.0/db_1/lib/sysliblist` -ldl -lm   -L/u01/app/oracle/product/11.2.0/db_1/lib 
  10. [oracle@test lib]$ cp  /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/bbed  /u01/app/oracle/product/11.2.0/db_1/bin/ 
  11. [oracle@test lib]$ which bbed 
  12. /u01/app/oracle/product/11.2.0/db_1/bin/bbed 

OK。安装已经完成。