还没有用过oracle现在正准备用,
帮你顶一下,顺便学一点,高手说一下,ORACLE的连接问题。

解决方案 »

  1.   

    php是4.3.4,httpd.conf中user和group 为nobody数据库应该没有什么问题。用的是oci8
      

  2.   

    编译php时,--with-oci8,带上了吗?
    phpinfo中oci8里面的oracle_home对不对?,再不行就把apache的user改能启动oracle的user
      

  3.   

    编译php时,--with-oci8,带上了;
    如下:./configure  --prefix=/usr/local/php434 --with-apxs=/usr/local/apache13/bin/apxs --with-mysql=/usr --enable-sigchild --enable-safe
    -mode --with-system-regex --disable-debug --enable-magic-quotes --enable-track-vars --with-zlib-dir=/usr/local --with-ttf=/usr/local
     --enable-gd-native-ttf --with-jpeg-dir=/usr --with-gd=/usr/local --with-oracle=/usr/oracle/9i --with-oci8=/usr/oracle/9iapache的user改掉后(user:oracle;Group:sysdba),程序访问引入的文件是会有访问权限问题。(关键还是我不太懂php)
      

  4.   

    OCILogon($this->ORACLE_USER, $this->ORACLE_PASSWORD,$this->ORACLE_SID),楼主的连接是这样样子的吗?
    如果apache的running user为oracle可能是有点小问题,但apache中的group用#-1就可以了.
    也可以相反地,让apache的running user有/usr/oracle/9i目录权限也是可以的啊
    我的目的只是想看一西到底是不是因为apache user的权限导致此问题的
      

  5.   

    f ($this->Persistent)
          $this->Link_ID = @OCIplogon ("$this->DBUser", "$this->DBPassword", "$this->DBDatabase");
        else
          $this->Link_ID = @OCIlogon ("$this->DBUser", "$this->DBPassword", "$this->DBDatabase");
    这是连接代码
      

  6.   

    不是哪儿的问题,我用
    <? 
    if ($conn=Ora_Logon("user@SID","pwd"))
      { echo "SUCCESS ! Connected to database\n";
       }
    else
    {echo "Failed :-( Could not connect to database\n";}
    Ora_Logoff($conn);
    phpinfo();
    ?> 测试,也报错:Warning: Oracle: Connection Failed: Error while trying to retrieve text for error ORA-01019 
      

  7.   

    另外,oci8的补丁包也下载安装了!
      

  8.   

    用ADODB或者PEAR库可以连接8i,我现在想连接9i或者10g怎么做呀?一直找不着办法,急
      

  9.   

    问题已解决,是因为权限的问题,web server的用户没有oracle的访问权限,通过修改用户权限文件已经解决!