|
OCI的确是很好的东西,oracle公司作的确实很不错
不知如何使用呢,有高手请教诲一二
首先:oci是不是需要安装,是不是安装了oracle就有了的呢?
其次:oci-demos如何使用呢,我运行了cdemo81.c
[root@BillingServer OCI]# make -f demo_rdbms.mk build EXE=cdemo81 OBJS=cdemo81.o
demo_rdbms.mk:74: /rdbms/lib/env_rdbms.mk: 没有那个目录或文件
make: *** No rule to make target `/rdbms/lib/env_rdbms.mk'. Stop.
换以oracle身份运行,如下:
[oracle@BillingServer OCI]$ make -f demo_rdbms.mk build EXE=cdemo81 OBJS=cdemo81.o
/oracle/product/9.2.0/bin/echodo cc -c -I/oracle/product/9.2.0/rdbms/demo -I/oracle/product/9.2.0/rdbms/public -I/oracle/product/9.2.0/plsql/public -I/oracle/product/9.2.0/network/public -I/oracle/product/9.2.0/precomp/public cdemo81.c
cc -c -I/oracle/product/9.2.0/rdbms/demo -I/oracle/product/9.2.0/rdbms/public -I/oracle/product/9.2.0/plsql/public -I/oracle/product/9.2.0/network/public -I/oracle/product/9.2.0/precomp/public cdemo81.c
Assembler messages:
FATAL: can't create cdemo81.o: 权限不够
make: *** [cdemo81.o] Error 1 |
|