I have installed Oracle8 and php in a Solaris for intel. When I connect with Oracle with SQLPLUS it runs ok. PHP runs well, but when I try to do something with php to connect with oracle8 I can't connect in local mode. For example, if I put:
$db="(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Sun-Toni)(PORT = 1521))
(CONNECT_DATA = (SID = ORCLTST))
)";
$c1 = ocilogon("scott","tiger",$db);
in a php file, it runs well.
But if I put:
$db="ORCLTST"
$c1 = ocilogon("scott","tiger",$db);
I doesn't work and I get:
Warning: _oci_open_server: Error while trying to retrieve text for error ORA-12154
in /var/apache/htdocs/kk1.php on line 6
12154 Error while trying to retrieve text for error ORA-12154
Any Ideas?
Thanks
$db="(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Sun-Toni)(PORT = 1521))
(CONNECT_DATA = (SID = ORCLTST))
)";
$c1 = ocilogon("scott","tiger",$db);
in a php file, it runs well.
But if I put:
$db="ORCLTST"
$c1 = ocilogon("scott","tiger",$db);
I doesn't work and I get:
Warning: _oci_open_server: Error while trying to retrieve text for error ORA-12154
in /var/apache/htdocs/kk1.php on line 6
12154 Error while trying to retrieve text for error ORA-12154
Any Ideas?
Thanks