<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[张宴的博客]]></title> 
<link>http://zyan.cc/index.php</link> 
<description><![CDATA[Web系统架构与底层研发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[张宴的博客]]></copyright>
<item>
<link>http://zyan.cc/post/411/</link>
<title><![CDATA[Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[数据库技术]]></category>
<pubDate>Tue, 21 Apr 2009 04:53:20 +0000</pubDate> 
<guid>http://zyan.cc/post/411/</guid> 
<description>
<![CDATA[ 
	　　[文章作者：张宴 本文版本：v1.0 最后修改：2009.04.21 转载请注明原文链接：<a href="http://blog.zyan.cc/post/411/" target="_blank">http://blog.zyan.cc/post/411/</a>]<br/><br/>　　<strong>1、下载Oracle即时客户端程序包</strong> — Basic： 运行 OCI、OCCI 和 JDBC-OCI 应用程序所需的所有文件<br/><br/>　　①、打开以下网址（本文以32位版为例）：<br/>　　（Linux 32位版）<a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html" target="_blank">http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html</a><br/>　　（Linux 64位版）<a href="http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html" target="_blank">http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html</a><br/><br/>　　②、下载以下几个文件：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">oracle-instantclient11.1-basic-11.1.0.7.0-1.i386.rpm<br/>oracle-instantclient11.1-devel-11.1.0.7.0-1.i386.rpm<br/>oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.i386.rpm</div><br/><br/>　　<strong>2、安装Oracle即时客户端程序包</strong><br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">rpm -ivh oracle-instantclient11.1-basic-11.1.0.7.0-1.i386.rpm oracle-instantclient11.1-devel-11.1.0.7.0-1.i386.rpm oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.i386.rpm<br/>echo "/usr/lib/oracle/11.1/client/lib/" > /etc/ld.so.conf.d/oracle_client.conf<br/>/sbin/ldconfig</div><br/><br/>　　<strong>3、安装OCI8 PHP扩展</strong>（使用PHP自带的OCI8，假设PHP程序安装在/usr/local/webserver/php/）<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">yum install libaio<br/>wget <a href="http://pecl.php.net/get/oci8-1.3.5.tgz" target="_blank">http://pecl.php.net/get/oci8-1.3.5.tgz</a><br/>tar zxvf oci8-1.3.5.tgz<br/>cd oci8-1.3.5/<br/>/usr/local/webserver/php/bin/phpize<br/>CFLAGS="-I/usr/include/oracle/11.1/client/"<br/>CXXFLAGS="-I/usr/include/oracle/11.1/client/"<br/>./configure --with-php-config=/usr/local/webserver/php/bin/php-config --with-oci8=/usr/lib/oracle/11.1/client/<br/>make<br/>make install</div><br/><br/>　　<strong>4、修改PHP配置文件</strong>（/usr/local/webserver/php/etc/php.ini）<br/>在extension_dir = "/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20060613/"后增加一行：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">extension = "oci8.so"</div><br/><br/>　　<strong>5、重启PHP</strong><br/><br/>　　<strong>6、创建一个phpinfo.php文件（内容如下）并通过Web访问，如果有“oci8”这一项，则表明安装成功。</strong><br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">&lt;?php<br/>phpinfo();<br/>?&gt;</div><br/>　　<a href="http://zyan.cc/attachment.php?fid=12" target="_blank"><img src="http://zyan.cc/attachment.php?fid=12" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>Tags - <a href="http://zyan.cc/tags/php/" rel="tag">php</a> , <a href="http://zyan.cc/tags/oracle/" rel="tag">oracle</a> , <a href="http://zyan.cc/tags/oci8/" rel="tag">oci8</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3072</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>你的天使 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 21 Apr 2009 08:32:57 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3072</guid> 
<description>
<![CDATA[ 
	谢谢老大。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3074</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>dengjiuhong &lt;dengjiuhong@gmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 21 Apr 2009 08:50:39 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3074</guid> 
<description>
<![CDATA[ 
	可怜的mysql, 不知道以后是不是laOp了。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3079</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>ilsanbao &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 22 Apr 2009 01:34:26 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3079</guid> 
<description>
<![CDATA[ 
	不尝试使用pdo ?
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3100</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>111 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 23 Apr 2009 11:21:04 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3100</guid> 
<description>
<![CDATA[ 
	希望你写一个jboss+apache的文章<br/>静态页面交给apache处理<br/>动态jsp页面交给jboss处理
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3108</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>coolzsb &lt;coolzsb@gmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 24 Apr 2009 09:27:42 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3108</guid> 
<description>
<![CDATA[ 
	为啥不用Oracle出的php RPM包来做呢？？<a href="http://oss.oracle.com/projects/php/" target="_blank">http://oss.oracle.com/projects/php/</a>签名---用Oracle当然用Oracle自己改过的东西最安稳
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3127</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>coolzsb &lt;coolzsb@gmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 27 Apr 2009 04:55:08 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3127</guid> 
<description>
<![CDATA[ 
	那地方有提供srpm的包啊<div class="quote"><div class="quote-title">引用</div><div class="quote-content">张宴 回复于 2009-4-24 17:57 RPM包无法定制安装我们需要的一些PHP扩展，包括自己写的PHP扩展。</div></div>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3148</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>dpj &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sat, 02 May 2009 06:33:44 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3148</guid> 
<description>
<![CDATA[ 
	請問在Nginx下的配置也是一樣嗎？
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3254</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>sharon &lt;380351115@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 13 May 2009 01:17:13 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3254</guid> 
<description>
<![CDATA[ 
	我phpinfo.php有出现oci8的那些内容 但是zendframework框架使用中我在config.ini<br/>[general]<br/>db.adapter=PDO_Oci<br/>会出现&#039;The oci driver is not currently installed&#039;&nbsp;&nbsp;是什么原因
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3350</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>da &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 26 May 2009 01:09:32 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3350</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3575</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>xiaoxue &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 30 Jun 2009 09:14:38 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3575</guid> 
<description>
<![CDATA[ 
	您好！我是新手，请求帮忙！万分感谢<br/>我的php是rpm默认安装的，我找不到php/bin/phpize，还有<br/>CFLAGS=&quot;-I/usr/include/oracle/11.1/client/&quot;<br/>CXXFLAGS=&quot;-I/usr/include/oracle/11.1/client/&quot;<br/>这2句话是做什么的呀？写的哪里的？<br/>我的oci8-1.3.5目录下没有configure文件呀
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3578</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>xiaoxue &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 01 Jul 2009 01:40:42 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3578</guid> 
<description>
<![CDATA[ 
	thank you,已经解决问题了
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3736</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>xiaoka &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 24 Jul 2009 03:08:50 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3736</guid> 
<description>
<![CDATA[ 
	张大哥，我按你的方法去做了，但是还是没有把OCI正确加载进来，这是为什么
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment3871</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>不知道 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 14 Aug 2009 02:16:25 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment3871</guid> 
<description>
<![CDATA[ 
	编译出 oci8.so&nbsp;&nbsp; 了&nbsp;&nbsp;&nbsp;&nbsp;就是加载不进去&nbsp;&nbsp;php5.3
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment4089</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>不知道 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 25 Sep 2009 02:14:46 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment4089</guid> 
<description>
<![CDATA[ 
	看错了，原来是已经装好的。。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/411/#blogcomment4247</link>
<title><![CDATA[[评论] Linux下PHP 5.2 Oracle客户端扩展（OCI8）安装[原创]]]></title> 
<author>xiao &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 21 Oct 2009 06:42:49 +0000</pubDate> 
<guid>http://zyan.cc/post/411/#blogcomment4247</guid> 
<description>
<![CDATA[ 
	checking Oracle Instant Client version... configure: error: Oracle Instant Client libraries not found
]]>
</description>
</item>
</channel>
</rss>