熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Oracle >> 正文

Oracle10g/11g編譯上古神器BBED

2022-06-13   來源: Oracle 

  BBED(Oracle Block Brower and EDitor Tool)用來直接查看和修改數據文件數據的一個工具是Oracle一款內部工具可以直接修改Oracle數據文件塊的內容簡單來說就是一個針對Oracle的二進制編輯工具該工具不受Oracle支持所以默認是沒有生成可執行文件的在使用前需要重新編譯

  在Oracle g中編譯BBED

   [oracle@mailserver ~]$ cd $ORACLE_HOME/rdbms/lib

   [oracle@mailserver lib]$ make f ins_rdbmsmk $ORACLE_HOME/rdbms/lib/bbed

  

   Linking BBED utility (bbed)

   rm f /u/app/oracle/rdbms/lib/bbed

   gcc o /u/app/oracle/rdbms/lib/bbed L/u/app/oracle/rdbms/lib/ L/u/app/oracle/lib/ L/u/app/oracle/lib/stubs/  /u/app/oracle/lib/smaino /u/app/oracle/rdbms/lib/ssbbdedo /u/app/oracle/rdbms/lib/sbbdpto `cat /u/app/oracle/lib/ldflags`    lnsslb lncrypt lnsgr lnzjs ln lnnz lnl /u/app/oracle/rdbms/lib/defopto ldbtools lclntsh  `cat /u/app/oracle/lib/ldflags`    lnsslb lncrypt lnsgr lnzjs ln lnnz lnl lnro `cat /u/app/oracle/lib/ldflags`    lnsslb lncrypt lnsgr lnzjs ln lnnz lnl lclient lnnetd  lvsn lcommon lgeneric lmm lsnls lnls  lcore lsnls lnls lcore lsnls lnls lxml lcore lunls lsnls lnls lcore lnls `cat /u/app/oracle/lib/ldflags`    lnsslb lncrypt lnsgr lnzjs ln lnnz lnl lnro `cat /u/app/oracle/lib/ldflags`    lnsslb lncrypt lnsgr lnzjs ln lnnz lnl lclient lnnetd  lvsn lcommon lgeneric   lsnls lnls  lcore lsnls lnls lcore lsnls lnls lxml lcore lunls lsnls lnls lcore lnls lclient lnnetd  lvsn lcommon lgeneric lsnls lnls  lcore lsnls lnls lcore lsnls lnls lxml lcore lunls lsnls lnls lcore lnls   `cat /u/app/oracle/lib/sysliblist` Wlrpath/u/app/oracle/lib lm    `cat /u/app/oracle/lib/sysliblist` ldl lm   L/u/app/oracle/lib

   [oracle@mailserver lib]$ ls bbed

   bbed

   [oracle@mailserver lib]$ link /bbed $ORACLE_HOME/bin/bbed

   [oracle@mailserver lib]$ bbed

   Password:

  

   BBED: Release Limited Production on Fri Jun ::

  

   Copyright (c) Oracle  All rights reserved

  

   ************* !!! For Oracle Internal Use only !!! ***************

  

   BBED> exit

  在Oracle g中編譯BBED

  Oracle g編譯BBED就麻煩一點將Oracle g的ORACLE_HOME目錄中的個文件復制到Oracle g對應的目錄中

   [oracle@mailserver ~]$ mkdir p /tmp/bbed/lib/

   [oracle@mailserver ~]$ mkdir p /tmp/bbed/mesg/

   [oracle@mailserver ~]$ cd $ORACLE_HOME

   [oracle@mailserver oracle]$ cp /rdbms/lib/ssbbdedo /tmp/bbed/lib/

   [oracle@mailserver oracle]$ cp /rdbms/lib/sbbdpto  /tmp/bbed/lib/

   [oracle@mailserver oracle]$ cp /rdbms/mesg/bbed

   bbedusmsb   bbedusmsg   bbedzhsmsb

   [oracle@mailserver oracle]$ cp /rdbms/mesg/bbed*    /tmp/bbed/mesg/

  

   [orag@mailserver ~]$ cd $ORACLE_HOME

   [orag@mailserver db_]$ cp /tmp/bbed/lib/*   /rdbms/lib/

   [orag@mailserver db_]$ cp /tmp/bbed/mesg/*  /rdbms/mesg/

  此時再進行編譯

   [orag@mailserver ~]$ cd $ORACLE_HOME

   [orag@mailserver db_]$ make f /rdbms/lib/ins_rdbmsmk BBED=/bin/bbed /bin/bbed

  

   Linking BBED utility (bbed)

   rm f bin/bbed

   gcc o bin/bbed m L/u/app/oracle//db_/rdbms/lib/ L/u/app/oracle//db_/lib/ L/u/app/oracle//db_/lib/stubs/  /u/app/oracle//db_/lib/smaino /u/app/oracle//db_/rdbms/lib/ssbbdedo /u/app/oracle//db_/rdbms/lib/sbbdpto `cat /u/app/oracle//db_/lib/ldflags`    lncrypt lnsgr lnzjs ln lnl ldbtools lclntsh  `cat /u/app/oracle//db_/lib/ldflags`    lncrypt lnsgr lnzjs ln lnl lnro `cat /u/app/oracle//db_/lib/ldflags`    lncrypt lnsgr lnzjs ln lnl lnnz lzt lztkg lztkg lclient lnnetd  lvsn lcommon lgeneric lmm lsnls lnls  lcore lsnls lnls lcore lsnls lnls lxml lcore lunls lsnls lnls lcore lnls `cat /u/app/oracle//db_/lib/ldflags`    lncrypt lnsgr lnzjs ln lnl lnro `cat /u/app/oracle//db_/lib/ldflags`    lncrypt lnsgr lnzjs ln lnl lclient lnnetd  lvsn lcommon lgeneric   lsnls lnls  lcore lsnls lnls lcore lsnls lnls lxml lcore lunls lsnls lnls lcore lnls lclient lnnetd  lvsn lcommon lgeneric lsnls lnls  lcore lsnls lnls lcore lsnls lnls lxml lcore lunls lsnls lnls lcore lnls   `cat /u/app/oracle//db_/lib/sysliblist` Wlrpath/u/app/oracle//db_/lib lm    `cat /u/app/oracle//db_/lib/sysliblist` ldl lm   L/u/app/oracle//db_/lib

   [orag@mailserver db_]$ bbed

   Password:

   BBED: Release Limited Production on Fri Jun ::

   Copyright (c) Oracle and/or its affiliates  All rights reserved

   ************* !!! For Oracle Internal Use only !!! ***************

   BBED> exit


From:http://tw.wingwit.com/Article/program/Oracle/201311/18290.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.