数据库

位置:IT落伍者 >> 数据库 >> 浏览文章

Oracle10g/11g编译上古神器BBED


发布日期:2020年07月03日
 
Oracle10g/11g编译上古神器BBED

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

               

上一篇:ORACLE数据库的基本语法集锦

下一篇:Oracle中空间管理对系统性能的影响