downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Configuración en tiempo de ejecución> <Requerimientos
[edit] Last updated: Fri, 07 Jun 2013

view this page in

Instalación

Para construir la extensión ibm_db2, deben estar instaladas en el sistema tanto las cabeceras como las bibliotecas de desarrollo de aplicaciones DB2. DB2 no lo instala por omisión, por lo que se debe habilitar explícitamente en el instalador de DB2. Los ficheros de cabeceras vienen incluidos de forma gratuita en Cliente de Desarrollo de Aplicaciones DB2 de la » página de soporte de la Base de datos Universal IBM DB2.

Si se añadieran las cabeceras y bibliotecas de desarrollo de aplicaciones DB2 a un sistema Linux o Unix en el que DB2 ya estuviera instalado, será necesario ejecutar el comando db2iupdt -e para actualizar los enlaces simbólicos a las cabeceras y bibliotecas de la instancia DB2.

ibm_db2 es una extensión » PECL, por lo que se deben seguir las instrucciones de Instalación de extensiones PECL para instalar esta extensión en PHP. Debe ejecutarse el comando configure apuntando a la localización de las cabeceras y bibliotecas DB2 de la siguiente forma:

bash$ ./configure --with-IBM_DB2=/path/to/DB2
El comando configure apunta por omisión a /opt/IBM/db2/V8.1.

Nota: Nota para usuarios de IIS

Si se estuviera usando el driver ibm_db2 con Microsoft Internet Information Server (IIS) es posible que haya que hacer lo siguiente:

  • Instalar DB2 con seguridad de sistema operativo extendidad
  • Añadir la ruta del binario PHP a la variable de entorno del sistema PATH (por omisión C:\php\).
  • Crear una nueva variable de entorno del sistema que contenga la ruta al fichero PHP.INI (por ejemplo: PHPRC = C:\php\).
  • Añadir IUSR_COMPUTERNAME al grupo DB2USERS.



Configuración en tiempo de ejecución> <Requerimientos
[edit] Last updated: Fri, 07 Jun 2013
 
add a note add a note User Contributed Notes Instalación - [5 notes]
up
1
AngocA
4 years ago
I installed this tool foolwing the next steps:

(Prereq: I've installed DB2 express-c before, and also Apache and php)

- Download the file: ibm_db2-1.8.2.tgz
- Untar the file: tar -xvf ibm_db2-1.8.2.tgz
- Go to the main directory
- Execute 'phpize' and that creates several files.
- Execute './configure --with-IBM_DB2=/opt/ibmn/db2/V9.5_01'
- Execute 'make'
- Execute 'make install'
- Modify the php.ini file in order to activate the ibm_db2.so extension.
    extension=ibm_db2.so

To check that the library is included: php -i

Then, you have to restart Apache: httpd -k restart
up
0
rifat dot aras at gmail dot com
1 year ago
If you try to use the php_ibm_db2.dll that comes with the database while working with a WAMP server, you may have difficulties loading the ibm_db2 extension. You can understand this by checking the Apache error log.

This can be solved by downloading the correct dll by visiting http://sourceforge.net/projects/db2mc/files/ and then clicking "IBM_DB2 PHP Driver for Windows > PHP 5.(2|3)._ > VC(6|9) > php_ibm_db2-ver-(nts_ts)-vc(6|9)-x86.zip"

The correct dll version can be determined by checking the "Compiler" and "Thread Safety" fields on the php_info page.

Copy the dll to the extension directory, update the php.ini file, and restart the Apache service.
up
0
angoca at yahoo dot com
1 year ago
In DB2 v9 the clients have changed their names. Now, they are called

Data server client

If you search in Internet "DB2 fixpack" you will get an IBM address like

http://www-01.ibm.com/support/docview.wss?uid=swg24031181

You select the DB2 version and fixpack level, then the platform and finally the product, that in this case is "Data Server client"
up
0
kpfitzgerald at gmail dot com
2 years ago
Actually a much simpler way on SLES 11 SP1 and DB2 Express C  is to execute the following.

pecl install ibm_db2

when it asks for your path put in your location of SQLLIB not your db2 install. usually found here...

/home/db2inst1/sqllib

to verify execute
pecl list

Should show the following:

Installed packages, channel pecl.php.net:
=========================================
Package Version State
ibm_db2 1.9.1   stable
up
-1
hellboy1975 at gmail dot com
2 years ago
Took me a little while to found this, so I thought it may help someone else down the track.  You can grab the latest versions of the php_ibm_db2.dll files for Windows IIS & PHP5+ from this site on Sourceforge:

http://sourceforge.net/projects/db2mc/files/

 
show source | credits | stats | sitemap | contact | advertising | mirror sites