1. 程式人生 > 其它 >oracle bbed安裝

oracle bbed安裝

環境:

Os:Centos 7

DB:11.2.0.4

1.下載相應的檔案
bbedus.msb
sbbdpt.o
ssbbded.o
或是從oracle 10g中獲取到

2.拷貝到相應的目錄
bbedus.msb 複製到$ORACLE_HOME/rdbms/mesg
sbbdpt.o ssbbded.o 複製到$ORACLE_HOME/rdbms/lib

[root@11g bbed]# su - oracle
[oracle@11g ~]$ cd /soft/bbed


[oracle@11g bbed]$cp sbbdpt.o $ORACLE_HOME/rdbms/lib/
[oracle@11g bbed]$cp ssbbded.o $ORACLE_HOME/rdbms/lib/


[oracle@11g bbed]$cp bbedus.msb $ORACLE_HOME/rdbms/mesg/

3.編譯
oracle使用者
[root@11g bbed]# su - oracle
[oracle@11g ~]$ cd $ORACLE_HOME/rdbms/lib

[oracle@11g lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbed

Linking BBED utility (bbed)
rm -f /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed
gcc -o /u01/app/oracle/product/11.2
.0.4/db_1/rdbms/lib/bbed -m64 -z noexecstack -L/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ -L/u01/app/oracle/product/11.2.0.4/db_1/lib/ -L/u01/app/oracle/product/11.2.0.4/db_1/lib/stubs/ /u01/app/oracle/product/11.2.0.4/db_1/lib/s0main.o /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ssbbded.o /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/sbbdpt.o `cat /u01/app/oracle/product/11.2
.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh `cat /u01/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnnz11 -lzt11 -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.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u01/app/oracle/product/11.2.0.4/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.4/db_1/lib/sysliblist` -Wl,-rpath,/u01/app/oracle/product/11.2.0.4/db_1/lib -lm `cat /u01/app/oracle/product/11.2.0.4/db_1/lib/sysliblist` -ldl -lm -L/u01/app/oracle/product/11.2.0.4/db_1/lib

4.然後複製到bin下
cp /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed /u01/app/oracle/product/11.2.0.4/db_1/bin/


5.使用
BBED是Oracle 內部使用的命令,所以Oracle 不提供技術支援,為了安全BBED設定了口令保護,預設密碼為 blockedit.
[oracle@11g lib]$ bbed
Password:

BBED: Release 2.0.0.0.0 - Limited Production on Sun Oct 24 21:50:35 2021

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

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

BBED> show
FILE# 0
BLOCK# 1
OFFSET 0
DBA 0x00000000 (0 0,1)
FILENAME
BIFILE bifile.bbd
LISTFILE
BLOCKSIZE 8192
MODE Browse
EDIT Unrecoverable
IBASE Dec
OBASE Dec
WIDTH 80
COUNT 512
LOGFILE log.bbd
SPOOL No