在redhat enterprise 6上使用Oracle11g的occi比windows简单

简介:

    在redhat enterprise 6 上安装了Oracle11g后,使用occi编程比windows里使用visual studio.net 里使用occi简单得多

1)在oracle官网下载instantclient_11_2 把那个sdk也下载了解压到这个文件夹中

2)进入instantclient_11_2 进行:ln -sf libclntsh.so.11.1 libclntsh.so    ln -sf libocci.so.11.1 libocci.so

3) 把$ORACLE_HOME/network/admin/下的文件拷贝到instantclient_11_2中

4)配置环境变量,编辑.bash_profile加上

export ORACLE_HOME=$ORACLE_HOME:/instantclient_11_2

export LD_LIBRARY_PATH=/instantclient_11_2:$LD_LIBRARY_PATH

export  TNS_ADMIN=/instantclient_11_2

  在编译你的occi程序时:

g++ -I /instantclient_11_2/sdk/include -L /instantclient_11_2 yourocci.cxx -locci -lclntsh -o yourocci

原文发布时间为:2012-03-31

本文来自云栖社区合作伙伴“Linux中国”

相关文章
|
1月前
|
安全 Linux 网络安全
如何在 VM 虚拟机中安装 Red Hat Enterprise Linux 9.3 操作系统保姆级教程(附链接)
如何在 VM 虚拟机中安装 Red Hat Enterprise Linux 9.3 操作系统保姆级教程(附链接)
89 0
|
架构师 中间件 Linux
Red Hat Enterprise Linux 8/7/6/5/4 合集下载地址
Red Hat Enterprise Linux 8/7/6/5/4 合集下载地址
|
6月前
|
网络协议 关系型数据库 MySQL
Red Hat enterprise linux 5 -mysql安装步骤
Red Hat enterprise linux 5 -mysql安装步骤
|
Linux
Why does my Red Hat Enterprise Linux (RHEL) system swap despite of having free RAM?
Why does my Red Hat Enterprise Linux (RHEL) system swap despite of having free RAM? Swapping in a linux system happens under two conditions. 1) Anonymous mapped memory. 2) Oversized workload abusing memory overcommit. In our problem, only point 1 is valid. So, we will discuss that here.
68 0
|
并行计算 Linux Windows
如何关闭CenOS/RedHat的X Windows
如何关闭CenOS/RedHat的X Windows
|
监控 算法 安全
Red Hat Enterprise Linux (RHEL) 9 更新了哪些新特性?
Red Hat Enterprise Linux (RHEL) 9 更新了哪些新特性?
|
安全 Linux 编译器
红帽发布 Red Hat Enterprise Linux 9!转向边缘和多云|下一代企业 IT 基础设施旗舰
红帽发布 Red Hat Enterprise Linux 9!转向边缘和多云|下一代企业 IT 基础设施旗舰
181 0
红帽发布 Red Hat Enterprise Linux 9!转向边缘和多云|下一代企业 IT 基础设施旗舰
|
Linux Windows
Windows下创建PXE网络安装Linux[Redhat AS5.5]IBM X3650
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zergskj/article/details/6303442 IBM x3650 M3服务器未配置DVD光驱,但提供了PXE网络方式安装,我们便通过一台普通PC机搭建PXE网络,安装Linux操作系统。
1676 0
|
存储 缓存 Oracle
Red Hat Enterprise Linux(RHEL)中yum的repo文件详解
Red Hat Enterprise Linux(RHEL)中yum的repo文件详解
554 0
|
Shell Linux Windows
windows 云盘在线扩容不成功: windows实例更新RedHat VirtIO驱动
点击了在线扩容还是生效,更新驱动
316 0

推荐镜像

更多