需要将我的 C 代码传达给 Oracle 11g。我发现oci是合适的。而且我不知道如何安装它。
上
Linux kernel-2.6.32-279.el6.i686
我在 hello.c 中使用了这段代码
#include<stdio.h>
#include<oci.h>
int main(void)
{
int x;
printf("Please Enter Number: ");
scanf("%d",&x);
return 0;
}
和命令
gcc hello.c -o hello.o
显示的错误信息:
error: oci.h: No such file or directory
并且即时客户端安装在位置
/u01/app/oracle/product/11.2.0/client_1/instantclient/
我知道这是基本的,但我也是新手。