Compiling bbed and 11.2.0.4bbed in Oracle db 11.2.0.4 in linux 6.3
From: http://blog.csdn.net/inthirties/article/details/5558030
Environment:
Oracle db 11.2.0.4, rhel 6.3 x86-64bit
The following files required for compiling bbed in 11.2.0.4 (11gR2:
Sbbdpt. o from: $ ORACLE_HOME/lib of Oracle db 10.2.0.5 under rhel5.8 x86-64bit
Ssbbded. o Source: Oracle db 10.2.0.5 $ ORACLE_HOME/rdbms/lib under rhel5.8 x86-64bit
Bbedus. msb Source: Oracle db 10.2.0.5 $ ORACLE_HOME/rdbms/mesg under rhel5.8 x86-64bit
An error is reported during the initial compilation:
[oracle@rhel63single lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbedLinking BBED utility (bbed)rm -f /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbedgcc -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/libgcc: /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ssbbded.o: No such file or directorygcc: /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/sbbdpt.o: No such file or directorymake: *** [/u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbed] Error 1
Copy the relevant library file from Oracle db 10.2.0.5 under rhel5.8 x86-64bit:
[Oracle @ rhel63single lib] $ cp/home/oracle/sbbdpt. o. /--------------> Source: rhel5.8 x86-64bit under the Oracle db 10.2.0.5 [oracle @ rhel63single lib] $ cp/home/oracle/ssbbded. o. /--------------> from: rhel5.8 x86-64bit under the Oracle db 10.2.0.5 [oracle @ rhel63single lib] $ cp/home/oracle/bbedus. msb .. /mesg/--------------> Source: Oracle db 10.2.0.5 under rhel5.8 x86-64bit
Re-compile:
[oracle@rhel63single lib]$ make -f ins_rdbms.mk $ORACLE_HOME/rdbms/lib/bbedLinking BBED utility (bbed)rm -f /u02/app/oracle/product/11.2.0.4/db_1/rdbms/lib/bbedgcc -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]$