環境:
Oracle db 11.2.0.4,rhel 6.3 x86-64bit
在11.2.0.4(確切的說是11gR2)下編譯bbed所需要的下列文件:
sbbdpt.o 來源於:rhel5.8 x86-64bit下的Oracle db 10.2.0.5的$ORACLE_HOME/lib
ssbbded.o 來源於:rhel5.8 x86-64bit下的Oracle db 10.2.0.5$ORACLE_HOME/rdbms/lib
bbedus.msb 來源於:rhel5.8 x86-64bit下的Oracle db 10.2.0.5$ORACLE_HOME/rdbms/mesg
一開始編譯報錯:
[oracle@rhel63single lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbed Linking BBED utility (bbed) rm -f /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed gcc -o /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed -m64 -z noexecstack -L/u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ -L/u02/app/oracle/product/11.2.0.4/db_1/lib/ -L/u02/app/oracle/product/11.2.0.4/db_1/lib/stubs/ /u02/app/oracle/product/11.2.0.4/db_1/lib/s0main.o /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ssbbded.o /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/sbbdpt.o `cat /u02/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh `cat /u02/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u02/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 /u02/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u02/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 /u02/app/oracle/product/11.2.0.4/db_1/lib/sysliblist` -Wl,-rpath,/u02/app/oracle/product/11.2.0.4/db_1/lib -lm `cat /u02/app/oracle/product/11.2.0.4/db_1/lib/sysliblist` -ldl -lm -L/u02/app/oracle/product/11.2.0.4/db_1/lib gcc: /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ssbbded.o: No such file or directory gcc: /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/sbbdpt.o: No such file or directory make: *** [/u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed] Error 1
從rhel5.8 x86-64bit下的Oracle db 10.2.0.5下拷貝相關庫文件:
[oracle@rhel63single lib]$ cp /home/oracle/sbbdpt.o ./ -------------->來源於:rhel5.8 x86-64bit下的Oracle db 10.2.0.5 [oracle@rhel63single lib]$ cp /home/oracle/ssbbded.o ./ -------------->來源於:rhel5.8 x86-64bit下的Oracle db 10.2.0.5 [oracle@rhel63single lib]$ cp /home/oracle/bbedus.msb ../mesg/ -------------->來源於:rhel5.8 x86-64bit下的Oracle db 10.2.0.5
再次編譯:
[oracle@rhel63single lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbed Linking BBED utility (bbed) rm -f /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed gcc -o /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed -m64 -z noexecstack -L/u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ -L/u02/app/oracle/product/11.2.0.4/db_1/lib/ -L/u02/app/oracle/product/11.2.0.4/db_1/lib/stubs/ /u02/app/oracle/product/11.2.0.4/db_1/lib/s0main.o /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ssbbded.o /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/sbbdpt.o `cat /u02/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -ldbtools11 -lclntsh `cat /u02/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u02/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 /u02/app/oracle/product/11.2.0.4/db_1/lib/ldflags` -lncrypt11 -lnsgr11 -lnzjs11 -ln11 -lnl11 -lnro11 `cat /u02/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 /u02/app/oracle/product/11.2.0.4/db_1/lib/sysliblist` -Wl,-rpath,/u02/app/oracle/product/11.2.0.4/db_1/lib -lm `cat /u02/app/oracle/product/11.2.0.4/db_1/lib/sysliblist` -ldl -lm -L/u02/app/oracle/product/11.2.0.4/db_1/lib
[oracle@rhel63single lib]$ ls -lrt bbed -rwxr-xr-x. 1 oracle oinstall 259142 Apr 18 19:23 bbed [oracle@rhel63single lib]$ pwd /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib [oracle@rhel63single lib]$
[oracle@rhel63single lib]$ cp bbed ../../bin/ [oracle@rhel63single lib]$ which bbed /u02/app/oracle/product/11.2.0.4/db_1/bin/bbed [oracle@rhel63single lib]$