oci8.setup.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 154 行

HTML
154
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Installing/Configuring</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intro.oci8.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="oci8.installation.html">Installation</a></div> <div class="up"><a href="book.oci8.html">OCI8</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Installing/Configuring</h1><h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="oci8.installation.html">Installation</a></li><li><a href="oci8.configuration.html">Runtime Configuration</a></li><li><a href="oci8.resources.html">Resource Types</a></li></ul>  <div id="oci8.requirements" class="section">  <h2 class="title">Requirements</h2>  <p class="para">   You will need the Oracle client libraries to use this extension.   Windows users will need libraries with version at least 10 to use the   <var class="filename">php_oci8.dll</var>.  </p>  <blockquote><p><b class="note">Note</b>:        This extension does not support Oracle 8 client libraries anymore.    Though you still can connect to Oracle 8 servers as long as    the client library (v.9+) supports this.   <br />  </p></blockquote>  <p class="para">   The most convenient way to install all the required files   is to use Oracle Instant Client, which is available from here:   <a href="http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html" class="link external">&raquo; http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html</a>.   To work with OCI8 module &quot;basic&quot; version of Oracle Instant Client is   enough. Instant Client does not need ORACLE_SID or ORACLE_HOME environment   variables set. You still may need to set LD_LIBRARY_PATH and NLS_LANG, though.  </p>  <p class="para">   Before using this extension, make sure that you have set up your   Oracle environment variables properly for the Oracle user, as well   as your web daemon user. These variables should be set up   <em class="emphasis">before</em> you start your web-server. The   variables you might need to set are as follows:   <ul class="itemizedlist">    <li class="listitem">     <span class="simpara">      ORACLE_HOME     </span>    </li>    <li class="listitem">     <span class="simpara">      ORACLE_SID     </span>    </li>    <li class="listitem">     <span class="simpara">      LD_PRELOAD     </span>    </li>    <li class="listitem">     <span class="simpara">      LD_LIBRARY_PATH     </span>    </li>    <li class="listitem">     <span class="simpara">      NLS_LANG     </span>    </li>   </ul>    For less frequently used Oracle environment variables such as    TNS_ADMIN, TWO_TASK, ORA_TZFILE, and the various Oracle    globalization settings like ORA_NLS33, ORA_NLS10 and the NLS_*    variables refer to Oracle documentation.  </p>  <p class="para">   After setting up the environment variables for your web server user,   be sure to also add the web server user (nobody, www) to the oracle   group.  </p>  <blockquote><p><b class="note">Note</b>:    <b>If your web server doesn&#039;t start or crashes at startup</b><br />       Check that Apache is linked with the pthread library:   <br />       <div class="informalexample">     <div class="example-contents"><pre><div class="cdata"><pre># ldd /www/apache/bin/httpd   libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x4001c000)   libm.so.6 =&gt; /lib/libm.so.6 (0x4002f000)   libcrypt.so.1 =&gt; /lib/libcrypt.so.1 (0x4004c000)   libdl.so.2 =&gt; /lib/libdl.so.2 (0x4007a000)   libc.so.6 =&gt; /lib/libc.so.6 (0x4007e000)   /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)</pre></div>     </pre></div>    </div>   <br />       If the libpthread is not listed you have to reinstall Apache:   <br />       <div class="informalexample">     <div class="example-contents"><pre><div class="cdata"><pre># cd /usr/src/apache_1.3.xx# make clean# LIBS=-lpthread ./config.status# make# make install</pre></div>     </pre></div>    </div>   <br />       Please note that on some systems, like UnixWare it is libthread    instead of libpthread. PHP and Apache have to be configured    with EXTRA_LIBS=-lthread.   <br />  </p></blockquote> </div>             </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intro.oci8.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="oci8.installation.html">Installation</a></div> <div class="up"><a href="book.oci8.html">OCI8</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?