Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Connect php to oracle
Andy Hassall wrote:
>
> Use single quotes.
>
> In double quotes, \n turns into newline, \t turns into tab. You don't
> want
> this.
>
> Alternatively use / instead of \, as Windows will accept / as a directory
> separator.
>
>> $db=" >> (DESCRIPTION = >> (ADDRESS_LIST = >> (ADDRESS = >> (PROTOCOL = TCP) >> (Host = <server ip>)
>>Connection Test >>Warning: ocilogon(): _oci_open_server: Error while trying to retrieve text >>for error ORA-12538 in c:\inetpub\wwwroot\oci8test.php on line 17
Thanks for your reply.
I changed from double to single quotes, but with the same result.
Unfortunately it didn't help me any further....
I removed all environment settings from the php-page and tried to add a third parameter (the tnsnames.ora entry) to OCILogon(). This resulted in the following output from my php page:
As you notice the ORA error message changed from 12538 to 12154, but still no Oracle connection...
-- Regards, Tore SkoglyReceived on Thu Jan 08 2004 - 10:16:58 CST
![]() |
![]() |