ORA-01019 unable to allocate memory in the user sideCause: The user side memory allocator returned an error.Action: Increase the size of the process heap or switch to the old set of calls

解决方案 »

  1.   

    出错提示
    Connection Failed: Error while trying to retrieve text for error ORA-01019
    这个问题有可能是重新安装oracle(就是用暴力方法把oracle文件rm -rf 后重新安装)造成的。
    解决方法:
    删掉httpd,php的相关编译文件。重新编译。
    过程:
    rm -rf /usr/local/include/php /usr/local/lib/php /usr/local/bin/php* 
    删除httpd文件。
    系统环境:rhel4
    先安装oracle9i,略。
    注意安装成功后把gcc296用gcc343替换回来。
    编译httpd,注意要加上–enable-module=so
    编译php:
    先执行
    export ORACLE_BASE=/home/oracle
    export ORACLE_HOME=/home/oracle/product/9.2.0
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    export PATH=$ORACLE_HOME/bin:$PATH
    否则将来执行apachectl的时候,libphp4.so会找不到oracle的相关so文件。
    Cannot load /usr/localhttpd/modules/libphp4.so into server: libclntsh.so.9.0: cannot open shared object file: No such file or directory
    我的编译参数:
    ./configure –prefix=/httpdpath/php –with-zlib –with-apxs2=/httpdpath/bin/apxs 
    –disable-xml –without-mysql –with-oci8=$ORACLE_HOME 
    –with-oracle=$ORACLE_HOME –with-config-file-path=/httpdpath/php/etc/php.ini 
    –disable-rpath –without-pear –with-imap –with-kerberos