当前位置:首页 > 大杂烩 > 正文内容

python linux下oracle 低版本使用Oracle Instant Client 的办法

高老师4周前 (09-10)大杂烩44

(1)、下载sdk解压到/www/server/oracle_instantclient/instantclient_11_2

(2)、通过 ldconfig 配置系统库缓存,让系统每次启动都能自动识别 Oracle 客户端库

sudo echo "/www/server/oracle_instantclient/instantclient_11_2" > /etc/ld.so.conf.d/oracle-instantclient.conf
sudo ldconfig
ldconfig -p | grep libclntsh

若输出包含 /www/server/oracle_instantclient/instantclient_11_2/libclntsh.so,说明永久配置生效。

注意事项:

Linux 下 Oracle Instant Client 依赖libaio库(Debian/Ubuntu 默认不预装),缺失会导致库加载失败。执行以下命令安装:
bash
# apt-get update && apt-get install -y libaio1


扫描二维码推送至手机访问。

版权声明:本文由高久峰个人博客发布,如需转载请注明出处。

本文链接:https://blog.20230611.cn/post/903.html

分享给朋友:

“python linux下oracle 低版本使用Oracle Instant Client 的办法 ” 的相关文章

c#中string和StringBuilder效率对比

c#中string和StringBuilder效率对比

    c#中string和StringBuilder直接看看执行速度。(2).String类型累计赋值Test               ...

Application的错误使用

Application的错误使用

Application 对象用于存储和访问来自任意页面的变量,类似 Session 对象。不同之处在于所有的用户分享一个 Application 对象,而 session 对象和用户的关系是一一对应的。很多的书籍中介绍的Application对象都喜欢以统计在线人数来介绍Application 对象...

Git推送文件到远程仓库

Git推送文件到远程仓库

1.远程仓库的协作模式开发者把自己最新的版本推到线上仓库,同时把线上仓库的最新代码,拉到自己本地即可2.注册git帐号国外: http://www.github.com国内: http://git.oschina.net2.在码云创建项目,不要初始化readmegit push https://gi...

Git从远程仓库更新文件

Git从远程仓库更新文件

 git   pull  https://git.oschina.net/392223903/learn.git   master   换为您的git地址...

Git日志查看和版本切换

Git日志查看和版本切换

日志查看:git log版本切换:方式1:git  reset  --hard  HEAD^   倒退一个版本git  reset  --hard  HEAD^^  倒退两个版本方式2:(版本号的形式,建议版本号码补充完...

c#关闭计算机的代码

c#关闭计算机的代码

    1.关机Process.Start("shutdown", "-s -t 0");    2. 注销  Proc...