码迷,mamicode.com
首页 > 系统相关 > 详细

11.2.0.4 linux 6.3下编译bbed

时间:2015-04-22 18:24:22      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:oracle 11.2   bbed   

本文借鉴自: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

 一开始编译报错:

[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]$ 

11.2.0.4 linux 6.3下编译bbed

标签:oracle 11.2   bbed   

原文地址:http://blog.csdn.net/msdnchina/article/details/45196287

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!