|
蓝森林 http://www.lslnet.com 2006年8月26日 15:18
_oci_open_server: Error 出错,刚刚搭建linux+php+oracle10
Warning: ocilogon() [function.ocilogon]: _oci_open_server: Error while trying to retrieve text for error ORA-12154 in /usr/n2n/apache2/htdocs/bb.php on line 3
Error while trying to retrieve text for error ORA-12154
模块也上了
我想连接远程的服务器
在本地应该不需要搭建oracle服务器
php5。1+apache2+oracle-instantclient-devel-10.2.0.1-1.i386.rpm+oracle-instantclient-basic-10.2.0.1-1.i386.rpm
===========
bb.php
<?php
$db="nnkj";
$conn = ocilogon("scott@192.168.0.209", "tiger", $db);
if (!$conn) {
$e = oci_error();
print htmlentities($e['message']);
exit;
}
?>
==== |
是不是和什么环境变量有关系
putenv("ORACLE_HOME=/u01/app/oracle/product/8.1.7";
putenv("ORACLE_SID=orcl";
可是我是连接远程的oracle不是在本地的
那么oracle home也就不存在 |
| |