You are here: Error with ocilogon() : OCIEnvNlsCreate() failed « PHP Programming Language « IT news, forums, messages
Error with ocilogon() : OCIEnvNlsCreate() failed

Posted by JuliouZ on 04/25/07 09:44

Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There
is something wrong with your system - please check that ORACLE_HOME is
set and points to the right directory in /web/htdocs/test.php on line 6
Oracle Connect Error

my file test.php :
<?php
PutEnv("ORACLE_SID=TEST");
PutEnv("ORACLE_HOME=/oracle/ora102");
PutEnv("TNS_ADMIN=/oracle/ora102/network/admin");

if ($c=OCILogon("system", "test", "TEST")) {
echo "Successfully connected to Oracle.\n";
OCILogoff($c);
} else {
$err = OCIError();
echo "Oracle Connect Error " . $err[text];
}
?>

Apache Version is 2.2.4 compile with : ./configure
--prefix=/usr/local/apache --enable-so --enable-rewrite

PHP version is 5.2.1 compile with : ./configure
--with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php --with-zlib --with-gettext
--with-gdbm --with-oracle=/oracle/ora102 --with-oci8=/oracle/ora102

Oracle is a Database 10.2.1

Tanks for help

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация