AIX联接oracle找不到 .sqlcxt
AIX连接oracle找不到 .sqlcxtmakefile:proc SQLCHECKSEMANTICSHOLD_CURSORYES useriduop_uif1/123456@n
AIX连接oracle找不到 .sqlcxt
makefile:
proc SQLCHECK=SEMANTICS HOLD_CURSOR=YES userid=uop_uif1/123456@ngcrm1_taf code=CPP iname=test.pc oname=a.cpp
xlc -qdfp -I$ORACLE_HOME/rdbms/lib32 \
-I$ORACLE_HOME/lib32 \
-I$ORACLE_HOME/precomp/public \
-L${ORACLE_HOME}/rdbms/lib -L${ORACLE_HOME}/lib -locci -lclntsh\
-L$ORACLE_HOME/rdbms/lib32 \
-L$ORACLE_HOME/lib32 \
-L$ORACLE_HOME/precomp/public a.cpp -o DATATOFILE
错误: xlc -qdfp -IRACLE_HOME/rdbms/lib32 -IRACLE_HOME/lib32 -IRACLE_HOME/precomp/public -L/oracle/app/oracle/product/10.2/rdbms/lib -L/oracle/app/oracle/product/10.2/lib -locci -lclntsh -LRACLE_HOME/rdbms/lib32 -LRACLE_HOME/lib32 -LRACLE_HOME/precomp/public a.cpp -o DATATOFILE
1540-2142 (W) "-qfloat=nodfpemulate" is not compatible with "-qarch=ppc". "-qfloat=dfpemulate" is being set.
ld: 0711-317 ERROR: Undefined symbol: .sqlcxt
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: The error code from the last command is 8.
[解决办法]在Makefile里命令吧
$ORACLE_HOME
改为
${ORACLE_HOME}
在Makefile里变量需要加大括号的!