[ERROR] - Oracle Connection

65 views
Skip to first unread message

Maicon Herverton

unread,
Mar 24, 2012, 12:57:32 PM3/24/12
to Professional PHP Developers
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that PATH
includes the directory with Oracle Instant Client libraries in C:\xampp
\htdocs\testeOracle.php on line 56



public function Conectar()
{
$this->ora_conecta = ocilogon($this->ora_user,$this->ora_senha,
$this->ora_servidor);
if(!$this->ora_conecta) {
echo "<p>Não foi possível conectar-se ao servidor Oracle.</
p>\n<p><strong>Erro Oracle: " . OCIError() . "</strong></p>\n";
exit();
}
}

Robert Gonzalez

unread,
Mar 24, 2012, 1:17:52 PM3/24/12
to professi...@googlegroups.com
XAMPP is a pain in the ass. So is Oracle. That said...

This error message is giving you something to look at:
There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries

Take a look at your %PATH% system setting and see if the path to the Oracle Instant Client are in that path. If not, add the path to the oracle client to your system path, restart your webserver and try again. That might help you here.



--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.

For information or project assistance please visit :
http://www.360psg.com

You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professi...@googlegroups.com
To unsubscribe from this group, send email to Professional-P...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP



--

Robert Gonzalez
   

Reply all
Reply to author
Forward
0 new messages