R: [PHP-GENERAL] Connecting to oracle using ocilogon()....

From: Date: Fri, 23 Jun 2000 12:41:42 +0000
Subject: R: [PHP-GENERAL] Connecting to oracle using ocilogon()....
Groups: php.general 
Request: Send a blank email to php-general+get-2779@lists.php.net to get a copy of this message
-----Messaggio originale----- Da: David Newcomb [mailto:davidn@vnvi.com] Inviato: venerdì 23 giugno 2000 11.59 David, did you set the following environment variable in /etc/bashrc? (user oracle is recomended to be used only for Oracle installation and maintainance) ORACLE_BASE=/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/8.0.5 LD_LIBRARY_PATH=$ORACLE_HOME/lib TWO_TASK=$ORACLE_HOME/network/admin/tnsnames.ora (if RDBMS is in other server) or ORACLE_SID=<your sid> About privileges, give your $ORACLE_HOME a chmod 774 (everyone can read there...) To check it, by root do a "su - nobody" and then "export": you should see them. P.S.: my environment var are intended for Oracle8.0.5, but for other version changes are few... Ciao Roberto A: php-general Oggetto: Re: [PHP-GENERAL] Connecting to oracle using ocilogon().... Check that the web server is running with enough permissions to access the files. On my Linux box the PHP stuff will not work unless I run httpd as oracle! David. ----- Original Message ----- From: <thies@digicol.de> To: Mustansir <mustansir@softhome.net> Cc: PHP General <php-general@lists.php.net> Sent: Friday, June 23, 2000 10:32 AM Subject: Re: [PHP-GENERAL] Connecting to oracle using ocilogon().... > On Fri, Jun 23, 2000 at 02:56:37PM +0530, Mustansir wrote: > > Hi, > > > > I was successfuly in compilimg php 4 with oci8 support but when i try to > > connect to oracle database using ocilogon() I get this error message: > > > > Warning: _oci_open_server: Error while trying to retrieve text for error > > ORA-12546 in > > /usr/local/apache/htdocs/ora.php4 on line 3 > > > > Can you tell me why it can be happening? > > > csh> oerr ORA 12546 > 12546, 00000, "TNS:permission denied" > // *Cause: User has insufficient privileges to perform the requested operation. > // *Action: Acquire necessary privileges and try again. > > > > > Mustansir > > > > > > -- > > 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 > -- 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 (#2779) next »