Guest_imported
New member
- Jan 1, 1970
- 0
I have installed Apache 1.3.14 and PHP 4.0.4 on my Win98 platform. And then I have installed and configured Personal Oracle 7. I have set the TNSNAME. But I got error when executing the following code.
<?php
$conn = Ora_Logon("user123@ORA7", "abcdefg"
;
print $conn;
?>
And the error is:
Warning: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in c:\program files\apache group\apache\htdocs\dante\oracle.php on line 6
The username, password and TNSNAME is correct since I have tested them by connecting Oracle thru SQL *Plus. The error message shown above states that PHP cannot recognise the TNSNAME. And I have searched for the PHP Manual. I found that I may need to add the following line
-with-oracle =ORACLE_HOME DIR
to a file. The problem is, I do not I should add this line to which file...
Could anyone give me a hand? I would appreciate any comment and advice.
Million Thanks.
dantetang@hkem.com
Dante
<?php
$conn = Ora_Logon("user123@ORA7", "abcdefg"
print $conn;
?>
And the error is:
Warning: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in c:\program files\apache group\apache\htdocs\dante\oracle.php on line 6
The username, password and TNSNAME is correct since I have tested them by connecting Oracle thru SQL *Plus. The error message shown above states that PHP cannot recognise the TNSNAME. And I have searched for the PHP Manual. I found that I may need to add the following line
-with-oracle =ORACLE_HOME DIR
to a file. The problem is, I do not I should add this line to which file...
Could anyone give me a hand? I would appreciate any comment and advice.
Million Thanks.
dantetang@hkem.com
Dante