FW: [PHP] Oracle8.16 error ORA-12546,so weird, suggestions r welc ome!

From: Date: Tue, 26 Sep 2000 09:06:40 +0000
Subject: FW: [PHP] Oracle8.16 error ORA-12546,so weird, suggestions r welc ome!
Groups: php.general 
Request: Send a blank email to php-general+get-17560@lists.php.net to get a copy of this message
Hi Thies! Is the web-server on the same host as Oracle? If not, check that the system-user is granted access from the particular host that the web-server IS on. Often system-users is allowed to connect from localhost but not from any other host; this is to reduce the access opportunities if an unothorized person would get his/her hands on the password. This is a good policy; create another account with just enough privilegies to perform the tasks neccessary to satisify the application, and grant it access to all hosts that is suppossed to be able to make use of it. In this case, the web-server host. ;-) Good Luck, Henrik J. > ---------- > From: Thies Arntzen[SMTP:thies@digicol.de] > Sent: den 26 september 2000 09:10 > To: Eric Wang > Cc: php-general@lists.php.net; php-db@lists.php.net > Subject: Re: [PHP] Oracle8.16 error ORA-12546,so weird, suggestions r > welcome! > > On Mon, Sep 25, 2000 at 04:49:33PM -0700, Eric Wang wrote: > > System: > > Redhat6.2 > > PHP4.02 > > Aapche1.3.12 > > Oracle 8.16 > > > > When I tried to connect oracle with php: > > <? > > ocilogon("system","test","TEST"); > > ?> > > your webserver most likely runs as "nobody" - please make > sure that "nobody" can use sqlplus as well. > > tc > > > > > > I get this error > > Warning: _oci_open_server: Error while trying to retrieve text for error > ORA-12546 in /home/otherways/htdocs/testo.php on line 2 > > > > ORA-12546 TNS:permission denied > > Cause: User has insufficient privileges to perform the requested > operation. > > Action: Acquire necessary privileges and try again. > > > > but I use "sqlplus system/test@TEST", it totally ok. > > > > why php can't access oracle? > > > > please help! > > > > :( > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@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 General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#17560) next »