本文借鉴自:http://blog.csdn.net/inthirties/article/details/5558030
环境:
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
一开始编译报错:
[[email protected] 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下拷贝相关库文件:
[[email protected] lib]$ cp /home/oracle/sbbdpt.o ./ -------------->来源于:rhel5.8 x86-64bit下的Oracle db 10.2.0.5 [[email protected] lib]$ cp /home/oracle/ssbbded.o ./ -------------->来源于:rhel5.8 x86-64bit下的Oracle db 10.2.0.5 [[email protected] lib]$ cp /home/oracle/bbedus.msb ../mesg/ -------------->来源于:rhel5.8 x86-64bit下的Oracle db 10.2.0.5
再次编译:
[[email protected] 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
[[email protected] lib]$ ls -lrt bbed -rwxr-xr-x. 1 oracle oinstall 259142 Apr 18 19:23 bbed [[email protected] lib]$ pwd /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib [[email protected] lib]$
[[email protected] lib]$ cp bbed ../../bin/ [[email protected] lib]$ which bbed /u02/app/oracle/product/11.2.0.4/db_1/bin/bbed [[email protected] lib]$
时间: 2024-11-05 04:48:39