473,320 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error with ocilogon() : OCIEnvNlsCreate() failed

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
Apr 25 '07 #1
2 25791
Try changing the permissions on the oracle home directory

Apr 28 '07 #2
On Wed, 25 Apr 2007 11:44:36 +0200, JuliouZ wrote:
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
It's a known problem. You should patch-up your oracle to 10.2.0.3.
There is script called "changePerm.sh" on $ORACLE_HOME/install, but
only on 10.2.0.2 and later versions.
$ cd $ORACLE_HOME/install
$ ls
utl rootdeletenode.sh jlib createseed1.sh
unix restrict.lst install.excl changePerm.sh
templocal readme.txt envVars.properties.bak
seed.log portlist.ini envVars.properties
rootlocaladd make.log createseed.sh
$
You must, however, apply at least the first patchset. Patch sets for
Oracle are available at http://metalink.oracle.com. You will need a
valid contract cupport identifier (CSI) to log in. If you don't have one,
send me an email and I'll help you change protection on your $ORACLE_HOME
manually.

--
http://www.mladen-gogala.com
May 14 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Nigel J. Andrews | last post by:
This will be a little vague, it was last night and I can't now do the test in that db (see below) so can't give the exact wording. I seem to remember a report a little while ago about tsearch v2...
0
by: Eph0nk | last post by:
Hi, I get an overload resolution failed error (Overload resolution failed because no accessible 'New' can be called without a narrowing conversion), and I can't seem to find a lot of relevant...
4
by: cyrano | last post by:
I am having issues maintaining an oracle connection in my apache/php web application. I am able to succesfully connect to an Oracle 9i dbase using oci() and retrieve expected results for the...
0
by: vcuser | last post by:
All, Can someone please let me know if you have come across this error in VC 7.1 when trying to implement an interface using the "Implement Interface wizard"? If so, can you please let me know...
0
by: sreejith.ram | last post by:
I did google & search in this group , but couldnt find any thing related to this. This is my first attempt to connect GridView to a Oracle database via SqlDataSource. I am receving error message...
3
by: tyngtyng | last post by:
hi... i'm new to the php and now i'm getting an error to insert my data inside the form..and also undefined index in latest_updated...... Now,i'm having trouble catching what i'm doing...
0
by: ravinder1983 | last post by:
Hi All, I am new to this world of php. I tried getting oci8 work with php but to no avail. The error i recieve is "Warning: ocilogon() : OCIEnvNlsCreate() failed. There is something wrong with...
6
by: Dave Kelly | last post by:
Sorry for the long post, it is easier to discard information than to have to wait for it to arrive. So here goes: This code worked perfectly when I was an Earthlink customer. Sprint decided...
1
by: madan agarwal | last post by:
Hi all, My sql 2000 set up failed with the error SQL setup failed with the error "LoadLibrary failed on sqlsrs.rll" Please help .... Thanks in advavance
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.