Child pages
  • PHP 와 IBM DB2(ibm_db2) 연동하기

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

바이너리 설치

  1. IBM 사이트에서 cli 드라이버 다운로드 

    Code Block
    wget "https://iwm.dhe.ibm.com/sdfdl/v2/regs2/smkane/IDSDPDS/Xa.2/Xb.EjTAa9JmwNlCNC7gnLPVg7Gp95exzkos-UtV6N_Dla8/Xc.ibm_data_server_driver_package_linuxx64_v10.5.tar.gz/Xd./Xf.LPr.D1vk/Xg.8588547/Xi.swg-idsdpds/XY.regsrvs/XZ.jAfBeLngjvGdhTsGCmjRIWfWbRk/ibm_data_server_driver_package_linuxx64_v10.5.tar.gz"
  2. 압축 해제
  3. 이동

    Code Block
    cd dsdriver/php_driver/linuxamd64/php64
  4. ibm_db2 는 PHP 드라이버이고 pdo_ibm 은 PDO 드라이버임. nts 는 none thread safety 라이브러리

    Code Block
    $ ls -l
    
    total 676
    -r-xr-xr-x 1 vagrant vagrant 191903 May 30  2013 ibm_db2_5.3.6_nts.so
    -r-xr-xr-x 1 vagrant vagrant 197589 May 30  2013 ibm_db2_5.3.6_ts.so
    -r-xr-xr-x 1 vagrant vagrant 143721 May 30  2013 pdo_ibm_5.3.6_nts.so
    -r-xr-xr-x 1 vagrant vagrant 139900 May 30  2013 pdo_ibm_5.3.6_ts.so
    -r--r--r-- 1 vagrant vagrant   2148 May 30  2013 README
    -r--r--r-- 1 vagrant vagrant   1811 May 30  2013 validate_install.php
  5. php 드라비어를 php 의 모듈 디렉터리에 복사
  6. php.ini 에 추가

...