Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,198 of 9,198 pages
About the help in other languages
All help pages

site.ini [Db2Settings]

The settings of [Db2Settings] in site.ini: Layer, Driver, Schema, Security, ConnectionOptions, StatementConcentrator, DeadlockRetries, DeadlockRetryWait ...

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/site/Db2Settings.md

On this page

site.ini [Db2Settings]

The block [Db2Settings] of settings/site.ini, with 10 setting(s).

IBM Db2 for Linux, UNIX and Windows 11.5 and 12.1 (DatabaseImplementation=db2, expDb2DB) over pdo_ibm or ibm_db2,
or PDO_ODBC with an ODBC driver of 64-bit lengths. Server, Port (50000), User, Password and Database come from
[DatabaseSettings]; without Server, Database is an alias catalogued in the client. The database must exist with
pages of 32 KB and a user temporary tablespace (db2: CREATE DATABASE EXP USING CODESET UTF-8 TERRITORY US
PAGESIZE 32 K; CREATE USER TEMPORARY TABLESPACE USERTEMP PAGESIZE 32 K): Db2 creates databases outside a connection.

Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/site.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php for one siteaccess,
  • extension/<extension>/settings/site.ini.append.php in an extension (read when the extension is active).

Layer

auto (pdo_ibm, else ibm_db2), pdo_ibm, ibm_db2 or pdo_odbc

Default: auto.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
Layer=auto
*/ ?>

Driver

The ODBC driver's name for Layer=pdo_odbc (e.g. IBM DB2 ODBC DRIVER, or the path of libdb2o.so)

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
Driver=
*/ ?>

Schema

The schema of the site's tables (SET SCHEMA on every connection); empty: the user's own

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
Schema=
*/ ?>

Security

SSL for an encrypted connection; empty: none

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
Security=
*/ ?>

ConnectionOptions

More keywords of the connection string (KEY=value;KEY=value)

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
ConnectionOptions=
*/ ?>

StatementConcentrator

enabled: Db2's statement concentrator (StmtConcentrator=WITHLITERALS) compiles statements that differ only in their
literals once; the kernel writes its values as literals, and without it every statement is compiled anew

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
StatementConcentrator=enabled
*/ ?>

DeadlockRetries

How often a single statement outside a transaction is sent again after a deadlock

Default: 3.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
DeadlockRetries=3
*/ ?>

DeadlockRetryWait

Milliseconds before the first retry (doubled, tripled ... for the next)

Default: 50.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
DeadlockRetryWait=50
*/ ?>

ReconnectOnLoss

enabled: a lost connection outside a transaction is opened again (persistent Velocity workers)

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
ReconnectOnLoss=enabled
*/ ?>

InListChunkSize

Values per IN list of generateSQLINStatement()

Default: 1000.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[Db2Settings]
InListChunkSize=1000
*/ ?>

Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x