1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-24 07:02:08 +01:00
Files
archived-doc-ja/reference/ibm_db2/setup.xml
2026-01-18 21:36:27 +00:00

99 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 020edc73be983e8e2aca04782ff7c901da4afad7 Maintainer: takagi Status: ready -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="ibm-db2.setup">
&reftitle.setup;
<!-- {{{ Requirements -->
<section xml:id="ibm-db2.requirements">
&reftitle.required;
<simpara>
IBM DB2 Universal Database for Linux・UNIX・Windows、
IBM Cloudscape、Apache Derby に接続するには、
PHP を稼動させるコンピュータ上に IBM DB2 Universal
Database client がインストールされていなければなりません。
この拡張モジュールは、DB2 バージョン 8.2
を対象にして開発およびテストが行われています。
</simpara>
<simpara>
IBM DB2 Universal Database for z/OS・iSeries
に接続するには、IBM DB2 Connect あるいはそれと同等の
DRDA ゲートウェイソフトウェアも必要となります。
</simpara>
<section xml:id="ibm-db2.requirements.unix">
<title>Linux あるいは Unix についての要件</title>
<simpara>
これらの関数を使用する前には、PHP 実行ファイルあるいは SAPI
を実行するユーザーで DB2 インスタンスを指定する必要があります。
&php.ini;<literal>ibm_db2.instance_name</literal>
を使用して DB2 インスタンス名を指定するか、
PHP 実行ファイルの起動前に DB2 インスタンスプロファイルを
読み込むことができます。
</simpara>
<para>
例えば、<literal>db2inst1</literal> という名前の DB2 インスタンスを
<filename>/home/db2inst1/</filename> に作成した場合には
&php.ini; に以下の行を追加します。
<screen>
<![CDATA[
ibm_db2.instance_name=db2inst1
]]>
</screen>
&php.ini; にこれを指定しない場合は、
DB2 へのアクセス用の環境変数を設定するために
以下のコマンドを実行しなければなりません。
<screen>
<![CDATA[
bash$ source /home/db2inst1/sqllib/db2profile
]]>
</screen>
PHP が使用できる Web サーバーからこれらの関数を使用するには、
&php.ini;<literal>ibm_db2.instance_name</literal> を設定するか、
Web サーバーの起動スクリプト (<filename>/etc/init.d/httpd</filename>
あるいは <filename>/etc/init.d/apache</filename> であることが多いでしょう)
で DB2 インスタンス環境変数を読み込む必要があります。
</para>
</section>
</section>
<!-- }}} -->
<!-- {{{ Installation -->
&reference.ibm-db2.configure;
<!-- }}} -->
<!-- {{{ Configuration -->
&reference.ibm-db2.ini;
<!-- }}} -->
<!-- {{{ Resources -->
<section xml:id="ibm-db2.resources">
&reftitle.resources;
<simpara>
ibm_db2 拡張モジュールは、接続リソース・ステートメントリソース
および結果セットリソースを返します。
</simpara>
</section>
<!-- }}} -->
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->