<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; PHP连接Oracle</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/php%E8%BF%9E%E6%8E%A5oracle/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下PHP远程连接Oracle数据库</title>
		<link>https://www.osyunwei.com/archives/5194.html</link>
		<comments>https://www.osyunwei.com/archives/5194.html#comments</comments>
		<pubDate>Tue, 21 Aug 2012 12:28:26 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PHP连接Oracle]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=5194</guid>
		<description><![CDATA[说明： Web服务器环境：CentOS 5.8 32位+Nginx 1.2.3+Mysql 5.5.27+php 5.3.16 Web服务器IP：192.168.21.149 php源码编译目录：/usr/local/src/php-5.3.16 php安装目录：/usr/local/php5 Nginx站点根目录：/usr/local/nginx/html Oracle数据库服务器IP：192.168.21.130 开启1521端口，允许远程连接数据库 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 数据库版本：Oracle 11gR1_database_111070  数据库名称：orcl 数据库账号：system 数据库密码：123456 PHP连接Oracle用到OCI包，需要在Web服务器上安装oracle-instantclien，使PHP支持Oracle扩展包OCI 一、下载oracle-instantclien http://download.oracle.com/otn/linux/instantclient/111070/oracle-instantclient11.1-basic-11.1.0.7.0-1.i386.rpm http://download.oracle.com/otn/linux/instantclient/111070/oracle-instantclient11.1-devel-11.1.0.7.0-1.i386.rpm 备注：需要注册登录之后才能下载（如果Web服务器是64位，需要下载相应的64位包） 注意：下载的包要与Oracle数据库版本一致！ 二、安装oracle-instantclien 把上一步中下载好的文件上传到Web服务器/usr/local/src/目录中，在当前目录下执行以下命令 rpm -Uvh oracle-instantclient11.1-basic-11.1.0.7.0-1.i386.rpm   #安装 rpm -Uvh oracle-instantclient11.1-devel-11.1.0.7.0-1.i386.rpm   #安装 cd /usr/lib/oracle #看到安装的库文件 三、重新编译php，添加OCI扩展 cd /usr/local/src/php-5.3.16  #进入php源码编译目录 cd  ext/oci8  #进入ext目录下的oci8目录 /usr/local/php5/bin/phpize #用phpize生成configure配置文件 ./configure --with-php-config=/usr/local/php5/bin/php-config --with oci8=share,instantclient,/usr/lib/oracle/11.1/client/lib  #配置 系统运维 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/5194.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/5194.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
