oci_connect connection failed

后端 未结 5 1424
长发绾君心
长发绾君心 2020-12-18 15:55

I am having serious problem connecting to external ORA DB 11g from local Zend server CE. OCI8 is enabled and running version 1.4.6 (due to phpinfo()).

I

5条回答
  •  温柔的废话
    2020-12-18 16:46

    My solution on fedora 17:

    1. yum install httpd httpd-devel.
    2. yum install php php-mysql php-pear php-devel
    3. Install oracle instantclient:
    
    rpm -Uvh oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm 
    rpm -Uvh oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm 
    
    4. pecl install oci8
    
    This gives:
    
    **
    downloading oci8-1.4.7.tgz ...
    Starting to download oci8-1.4.7.tgz (Unknown size)
    .....done: 168,584 bytes
    10 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20100412
    Zend Module Api No:      20100525
    Zend Extension Api No:   220100525
    Please provide the path to the ORACLE_HOME directory.
    Use 'instantclient,/path/to/instant/client/lib' if you're compiling
    with Oracle Instant Client [autodetect] :' 
    ** 
    
    Just press enter.
    
    5. Enable the OCI8 extension by creating a file, oci8.ini for example, with the following line at /etc/php.d/:
    
    extension=oci8.so
    
    6. service httpd restart
    

提交回复
热议问题