Re: Bug #1462: Ora_connect fails with a error stating that I have given a "null-password"
| From: | Thies C. Arntzen | Date: | Fri, 28 May 1999 06:33:44 +0000 |
| Subject: | Re: Bug #1462: Ora_connect fails with a error stating that I have given a "null-password" | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-6111@lists.php.net to get a copy of this message | ||
On 27 May 1999 fredrik.rovik@sas.no wrote:
> From: fredrik.rovik@sas.no
> Operating system: Linux Redhat 6.0
> PHP version: 3.0.8
> PHP Bug Type: Oracle related
> Bug description: Ora_connect fails with a error stating that I have given a
> "null-password"
>
> I have some problems connecting to oracle using
> the php 3.0.8 sourcetree (3.0.7 works fine).
> I get an error stating I have not given a password or given a nullpassword, which ofcourse
> is not the case.
>
> As for compile options this is a DSO running under apache 1.3.6. compiled with the
> following options --with-mysql=/usr/local --with-oracle --apxs=whatever.
>
> Oracle client software is freshly installed from oracles website. Version 8.0.5.
>
> <?
> putenv("ORACLE_HOME=/usr/oracle/app/oracle/product/8.0.5");
> putenv("ORACLE_SID=POBP");
> putenv("TNS_ADMIN=/usr/oracle/tns");
> putenv("PATH=/usr/oracle/app/oracle/product/8.0.5/bin:/usr/local/bin:/bin");
> putenv("TNS_ADMIN=/usr/oracle/tns");
> putenv("PATH=/usr/oracle/app/oracle/product/8.0.5/bin:/usr/local/bin:/bin");
> $conn_id=ora_logon("jalla@whatever","whatever secret");
i'd say that you shpuld try:
$conn_id=ora_logon("jalla/whatever secret@whatever","");
that's the way i do it, and it always worked for me.
if you use the "new" oci8-driver you'd say;
$con = ocilogon("user","pass","service");
regards,
tc
> ?>
>
>
> --
> PHP Development Mailing List http://www.php.net/
> To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
> For help: php-dev-help@lists.php.net
>
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net