关于连接远程数据库的问题,100分求救
rengs 2003-04-15 10:15:20 我在一台linux服务器上安装了apache,php和oracle客户端,另一台服务器安装了oracle8.1.7。在linux web服务器上已经配置好了tns
(用sqlplus system/manage@test可以访问数据库),数据库名是test
但在运行页面的程序出现以下报错,请高手帮忙诊断。。。
web服务器只是安装了oracle client
<?
putenv("ORACLE_SID=test");
putenv("ORACLE_HOME=/home/oracle/product/8.1.7");
$handle = ora_plogon("system@test","manager") or die;
$cursor = ora_open($handle);
ora_commitoff($handle);
?>
Unable to connect to ORACLE (Error while trying to retrieve text for error ORA-12154)