问题描述
我的系统中没有安装oracle数据库.但是我想连接到远程系统.我是否只需要安装oci8扩展库还是需要同时安装InstantClient和oci8扩展?
如果我没记错的话,如果没有Instant Client,OCI8扩展将无法编译.如果您使用 PECL 安装,它将要求您提供Instant Client路径.此外,根据我的经验,除了基本版外,您还需要Instant Client SDK ,将它们解压缩到一个目录中,并在运行PECL命令之前进行一些符号链接:
sudo ln -s libclntsh.so.* libclntsh.so
sudo ln -s libocci.so.* libocci.so
别忘了稍后启用配置:
echo "; configuration for php oci8 module" | sudo tee /etc/php5/conf.d/oci8.ini
echo extension=oci8.so | sudo tee -a /etc/php5/conf.d/oci8.ini
来自此帖子(俄语),我本人最近也在Debian 7上安装了OCI8. /p>
I don't have a oracle database installed in my system. But i want to connect to the remote system. Do i just need to install oci8 extension library or i need to install both instantclient and the oci8 extension?
If I remember correctly, OCI8 extension wouldn't even compile without Instant Client; if you install using PECL, it asks you for Instant Client path. Moreover, from my experience, you'll also need Instant Client SDK in addition to Basic, unpack them to one directory, and make some symlinks before running PECL command:
sudo ln -s libclntsh.so.* libclntsh.so
sudo ln -s libocci.so.* libocci.so
Don't forget to enable the config later:
echo "; configuration for php oci8 module" | sudo tee /etc/php5/conf.d/oci8.ini
echo extension=oci8.so | sudo tee -a /etc/php5/conf.d/oci8.ini
Taken from this post (in Russian), also installed OCI8 myself recently on Debian 7.
这篇关于在Linux中为PHP安装oci8扩展程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!