<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/oci8.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'oci8.configuration.php',
    1 => '&Ccedil;alışma Anı Yapılandırması',
    2 => '&Ccedil;alışma Anı Yapılandırması',
  ),
  'up' => 
  array (
    0 => 'oci8.setup.php',
    1 => 'Yapılandırma/Kurulum',
  ),
  'prev' => 
  array (
    0 => 'oci8.test.php',
    1 => 'Testing',
  ),
  'next' => 
  array (
    0 => 'oci8.constants.php',
    1 => '&Ouml;ntanımlı Sabitler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/oci8/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="oci8.configuration" class="section">
    <h2 class="title">Çalışma Anı Yapılandırması</h2>
    <p class="simpara">Bu işlevlerin davranışı <var class="filename">php.ini</var>
içindeki ayarlardan etkilenir.</p>
    <p class="para">
     <table class="doctable table">
      <caption><strong>OCI8 Configuration Options</strong></caption>
      
       <thead>
        <tr>
         <th>İsim</th>
         <th>Öntanımlı</th>
         <th>Değişlik Yeri</th>
         <th>Sürüm Bilgisi</th>
        </tr>

       </thead>

       <tbody class="tbody">
        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.connection-class" class="link">oci8.connection_class</a></td>
         <td>&quot;&quot;</td>
         <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.default-prefetch" class="link">oci8.default_prefetch</a></td>
         <td>&quot;100&quot;</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.events" class="link">oci8.events</a></td>
         <td>Off</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.max-persistent" class="link">oci8.max_persistent</a></td>
         <td>&quot;-1&quot;</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.old-oci-close-semantics" class="link">oci8.old_oci_close_semantics</a></td>
         <td>Off</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td>Deprecated as of PHP 8.1.0.</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.persistent-timeout" class="link">oci8.persistent_timeout</a></td>
         <td>&quot;-1&quot;</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.ping-interval" class="link">oci8.ping_interval</a></td>
         <td>&quot;60&quot;</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.prefetch-lob-size" class="link">oci8.prefetch_lob_size</a></td>
         <td>&quot;0&quot;</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td>Available since PECL OCI8 3.2.</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.privileged-connect" class="link">oci8.privileged_connect</a></td>
         <td>Off</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

        <tr>
         <td><a href="oci8.configuration.php#ini.oci8.statement-cache-size" class="link">oci8.statement_cache_size</a></td>
         <td>&quot;20&quot;</td>
         <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
         <td class="empty">&nbsp;</td>
        </tr>

       </tbody>
      
     </table>

    </p>

    <p class="para">
Yapılandırma yönergelerinin kısa açıklamalarını aşağıda bulabilirsiniz.
</p>

    <p class="para">
     <dl>
      
       <dt id="ini.oci8.connection-class">
        <code class="parameter">oci8.connection_class</code>
        <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
       </dt>
       <dd>
        <p class="para">
         This user defined text should always be set when using Oracle Database
         Resident Connection Pooling (DRCP). It allows sub-partitioning of the
         DRCP connection pool, allowing OCI8 persistent connections from an
         application to reuse database sessions from a previous PHP script,
         giving better scalability.  When an application uses a database pooled
         process previously used with a different connection class, the session
         settings such as the default Oracle date format are reset.  This
         prevents accidental sharing of information between different
         applications.
        </p>
        <p class="para">
         The value can be set at runtime
         with <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span> prior to connecting.
        </p>
        <p class="para">
         To use DRCP, OCI8 must be linked with Oracle 11<em>g</em>
         (or later) libraries and the database must be Oracle
         11<em>g</em> (or later).  The DRCP connection pool must be
         enabled in the database, the <code class="literal">oci8.connection_class</code>
         should be set to the same string for all web servers running the same
         application, and the OCI8 connection string must specify to use a
         pooled server.  The application should use persistent connections.
        </p>
       </dd>
      
      
       <dt id="ini.oci8.default-prefetch">
        <code class="parameter">oci8.default_prefetch</code>
        <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
       </dt>
       <dd>
        <p class="para">
         This option sets the default number of extra rows that will
         be fetched and cached automatically whenever a low-level
         request for data from the database is made.  Setting a value
         of <code class="literal">0</code> turns off prefetching.
        </p>
        <p class="para">
         The prefetch value does not alter the number of rows that
         functions like <span class="function"><a href="function.oci-fetch-array.php" class="function">oci_fetch_array()</a></span> return to
         the user; the prefetching and caching of rows is handled
         internally in OCI8.
        </p>
        <p class="para">
         The value can be set per-statement
         with <span class="function"><a href="function.oci-set-prefetch.php" class="function">oci_set_prefetch()</a></span> prior to statement
         execution.
        </p>
        <p class="para">
          When using Oracle Database 12<em>c</em> (or later), the prefetch
          value set by PHP can be overridden by Oracle&#039;s
          client <code class="literal">oraaccess.xml</code> configuration file.  Refer
          to Oracle documentation for more detail.
        </p>
        <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
         <span class="simpara">
          A larger prefetch can result in improved performance, at the
          cost of some increased memory usage. For queries that return
          large amounts of data, the performance benefit can be
          significant.
         </span>
        </p></blockquote>
       </dd>
      
      
       <dt id="ini.oci8.events">
        <code class="parameter">oci8.events</code>
        <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
       </dt>
       <dd>
        <p class="para">
         Using <code class="literal">On</code> allows PHP to be notified of
         database Fast Application Notification (FAN) events.
        </p>
        <p class="para">
         Without FAN, when a database instance or machine node fails
         unexpectedly, PHP applications may be blocked waiting for a
         database response until a TCP timeout expires.  With FAN
         events, PHP applications are quickly notified of failures
         that affect their established database connections.  The OCI8
         extension will clean up unusable connections in the
         persistent connection cache.
        </p>
        <p class="para">
         When using <code class="literal">On</code>, the database must also be
         configured to post FAN events.
        </p>
        <p class="para">
         FAN support is available when OCI8 is linked with Oracle
         10<em>g</em>R2 (or later) libraries and connected to Oracle Database
         10<em>g</em>R2 (or later).
        </p>
       </dd>
      
      
       <dt id="ini.oci8.max-persistent">
        <code class="parameter">oci8.max_persistent</code>
        <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
       </dt>
       <dd>
        <p class="para">
         The maximum number of persistent OCI8 connections per PHP
         process.  Setting this option to -1 means that there is no
         limit.
        </p>
       </dd>
      
      
       <dt id="ini.oci8.old-oci-close-semantics">
        <code class="parameter">oci8.old_oci_close_semantics</code>
        <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
       </dt>
       <dd>
        <p class="para">
         This option controls <span class="function"><a href="function.oci-close.php" class="function">oci_close()</a></span> behaviour.
         Enabling it means that <span class="function"><a href="function.oci-close.php" class="function">oci_close()</a></span> will do
         nothing; the connection will not be
         closed until the end of the script. This is for backward
         compatibility only. If you find that you need to enable this
         setting, you are <em>strongly encouraged</em> to
         adjust the <span class="function"><a href="function.oci-close.php" class="function">oci_close()</a></span> calls in your
         application instead of enabling this option.
        </p>
       </dd>
      
      
       <dt id="ini.oci8.persistent-timeout">
        <code class="parameter">oci8.persistent_timeout</code>
        <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
       </dt>
       <dd>
        <p class="para">
         The maximum number of seconds that a PHP process is allowed
         to keep an idle persistent connection open.  Setting this
         option to -1 means that idle persistent connections will be
         retained until the PHP process terminates or the connection
         is explicitly closed with <span class="function"><a href="function.oci-close.php" class="function">oci_close()</a></span>.
        </p>
        <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
         <span class="simpara">
          In PHP, the expiry of idle resources is not alarm-based. It
          occurs when PHP finishes processing a script and checks the
          last-used timestamp of resources.  Hence there is a paradox
          that idle connections can only be closed when there is some
          activity (though not necessarily OCI8 related) in the PHP
          process.  If there is more than one PHP process then each
          must individually be activated in order to trigger expiry of
          its idle resources.  The introduction of Database Resident
          Connection Pooling (DRCP) in Oracle 11<em>g</em> resolves the memory
          and resource issues
          that <code class="literal">oci8.max_persistent</code>
          and <code class="literal">oci8.persistent_timeout</code> previously
          attempted to overcome.
         </span>
        </p></blockquote>
       </dd>
      
      
       <dt id="ini.oci8.ping-interval">
        <code class="parameter">oci8.ping_interval</code>
        <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
       </dt>
       <dd>
        <p class="para">
          The number of seconds that must pass before issuing a ping
          during <span class="function"><a href="function.oci-pconnect.php" class="function">oci_pconnect()</a></span>. A ping ensures
          that the database connection is valid. When set to 0,
          persistent connections will be pinged every
          time <span class="function"><a href="function.oci-pconnect.php" class="function">oci_pconnect()</a></span> is called. To disable
          pings completely, set this option to -1.
        </p>
        <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
         <span class="simpara">
          Disabling pings allows <span class="function"><a href="function.oci-pconnect.php" class="function">oci_pconnect()</a></span> to
          operate at the highest efficiency, but PHP may not be able
          to detect unusable connections, such as caused by network
          dropout, or if the Oracle database has gone down since PHP
          connected, until the connection is used later in the
          script. Consult the
          <span class="function"><a href="function.oci-pconnect.php" class="function">oci_pconnect()</a></span> documentation for more information.
         </span>
        </p></blockquote>
       </dd>
      
      
       <dt id="ini.oci8.prefetch-lob-size">
        <code class="parameter">oci8.prefetch_lob_size</code>
        <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
       </dt>
       <dd>
        <p class="para">
          This is a tuning parameter affecting internal buffering of LOB data.
          Increasing this value can improve the performance of fetching smaller
          LOBs by reducing round-trips between PHP and the database. Memory
          usage will change.
        </p>
        <p class="para">
          The value affects LOBs returned as OCILob instances and also those
          returned using <strong><code><a href="oci8.constants.php#constant.oci-return-lobs">OCI_RETURN_LOBS</a></code></strong>.
        </p>
        <p class="para">
         The value can be set per-statement
         with <span class="function"><a href="function.oci-set-prefetch-lob.php" class="function">oci_set_prefetch_lob()</a></span> prior to statement
         execution.
        </p>
        <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
          <span class="simpara">
            Use with Oracle Database 12.2 or later.
          </span>
        </p></blockquote>
       </dd>
      
      
       <dt id="ini.oci8.privileged-connect">
        <code class="parameter">oci8.privileged_connect</code>
        <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
       </dt>
       <dd>
        <p class="para">
         This option allows connections to use the privileged external
         credentials
         <strong><code><a href="oci8.constants.php#constant.oci-sysoper">OCI_SYSOPER</a></code></strong> or <strong><code><a href="oci8.constants.php#constant.oci-sysdba">OCI_SYSDBA</a></code></strong>.
        </p>
        <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
         <span class="simpara">
          Seting this <code class="literal">On</code> can allow scripts on web
          servers running with the appropriate OS user privileges to
          connect as privileged database users without requiring a
          database password.  This can be a security risk.
         </span>
        </p></blockquote>
       </dd>
      
      
       <dt id="ini.oci8.statement-cache-size">
        <code class="parameter">oci8.statement_cache_size</code>
        <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
       </dt>
       <dd>
        <p class="para">
         This option enables statement caching, and specifies how many
         statements to cache. To disable statement caching just set
         this option to 0.
        </p>
        <p class="para">
         Statement caching removes the need to transmit the statement
         text to the database and removes the need to transmit any
         meta data about the statement back to PHP.  This can
         significantly improve overall system performance in
         applications which reuse statements during the lifetime of a
         connection.  Some extra database &quot;cursors&quot; may be
         held open under the assumption that statements will be
         reused.
        </p>
        <p class="para">
         Set this value to the size of the working set of statements
         used by your application. Setting too small a value can cause
         statements to be flushed from the cache before they are
         reused.
        </p>
        <p class="para">
         This option is of most use with persistent connections.
        </p>
        <p class="para">
         When using Oracle Database 12<em>c</em> (or later), this
         value can be overridden and automatically tuned by Oracle&#039;s
         client <code class="literal">oraaccess.xml</code> file.  Refer to
         Oracle documentation for more detail.
        </p>
       </dd>
      
     </dl>
    </p>
   </div><?php manual_footer($setup); ?>