473,326 Members | 2,655 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,326 software developers and data experts.

OCI8 / Oracle issues with php 5.x


Warning: oci_new_connect() [function.oci-new-connect]: OCIEnvNlsCreate()
failed. There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in
/wwwroot/htdocs/test.php on line 8
I am having this dump on my recent suse 10/oracle 10.2/apache
2.2.0/php5.1.2. Any ideas i pritty much used a uber basic.

apache cfg line
$ ./configure --prefix=/wwwroot --enable-so

php cfg line
'./configure' '--prefix=/wwwroot/php' '--with-apxs2=/wwwroot/bin/apxs'
'--with-config-file-path=/wwwroot/php'
'--with-oci8=/opt/oracle/product/10gR2' '--with-curl=/usr/local/lib'
'--with-mcrypt' '--with-xmlrpc'
Any one see were i fuxed up.
--
YeCkeL
Jan 21 '06 #1
8 4602
On Fri, 20 Jan 2006 23:26:01 +0100, YeCkeL wrote:

Warning: oci_new_connect() [function.oci-new-connect]: OCIEnvNlsCreate()
failed. There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in
/wwwroot/htdocs/test.php on line 8
I am having this dump on my recent suse 10/oracle 10.2/apache
2.2.0/php5.1.2. Any ideas i pritty much used a uber basic.

apache cfg line
$ ./configure --prefix=/wwwroot --enable-so

php cfg line
'./configure' '--prefix=/wwwroot/php' '--with-apxs2=/wwwroot/bin/apxs'
'--with-config-file-path=/wwwroot/php'
'--with-oci8=/opt/oracle/product/10gR2' '--with-curl=/usr/local/lib'
'--with-mcrypt' '--with-xmlrpc'
Any one see were i fuxed up.


AIUI oci 8 was built on Oracle 8. You're linking it to Oracle 10. It
seemed to work ok with Oracle 9, but looks like that module needs updating?

$0.02,

Steve

Jan 21 '06 #2
On Sun, 22 Jan 2006 09:19:57 +1300, Steve <Th*****@Aint.Valid> wrote:
On Fri, 20 Jan 2006 23:26:01 +0100, YeCkeL wrote:
Warning: oci_new_connect() [function.oci-new-connect]: OCIEnvNlsCreate()
failed. There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in
/wwwroot/htdocs/test.php on line 8

I am having this dump on my recent suse 10/oracle 10.2/apache
2.2.0/php5.1.2. Any ideas i pritty much used a uber basic.

apache cfg line
$ ./configure --prefix=/wwwroot --enable-so

php cfg line
'./configure' '--prefix=/wwwroot/php' '--with-apxs2=/wwwroot/bin/apxs'
'--with-config-file-path=/wwwroot/php'
'--with-oci8=/opt/oracle/product/10gR2' '--with-curl=/usr/local/lib'
'--with-mcrypt' '--with-xmlrpc'
Any one see were i fuxed up.


AIUI oci 8 was built on Oracle 8. You're linking it to Oracle 10. It
seemed to work ok with Oracle 9, but looks like that module needs updating?


That's not the issue - OCI8 is just the API version - it's just as applicable
to 10g as it is to 9i and 8i. The last major API change was in Oracle 7, where
it was called OCI7.

There's definitely something subtle going on here though, as this is a repeat
of the issue from a previous thread "5.1.2 woes". That was triggered by
compiling with "--without-pdo", but it works correctly against 10g if that's
not specified.

The OP hasn't specified that, so there's probably some related library
interaction problem.

To the OP: have you submitted this as a bug on bugs.php.net?

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 21 '06 #3
On Sat, 21 Jan 2006 23:16:11 +0000, Andy Hassall wrote:
To the OP: have you submitted this as a bug on bugs.php.net?


Yes.

--
http://www.mgogala.com

Jan 22 '06 #4
On Fri, 20 Jan 2006 23:26:01 +0100, YeCkeL wrote:

Warning: oci_new_connect() [function.oci-new-connect]: OCIEnvNlsCreate()
failed. There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in
/wwwroot/htdocs/test.php on line 8
I am having this dump on my recent suse 10/oracle 10.2/apache
2.2.0/php5.1.2. Any ideas i pritty much used a uber basic.

apache cfg line
$ ./configure --prefix=/wwwroot --enable-so

php cfg line
'./configure' '--prefix=/wwwroot/php' '--with-apxs2=/wwwroot/bin/apxs'
'--with-config-file-path=/wwwroot/php'
'--with-oci8=/opt/oracle/product/10gR2' '--with-curl=/usr/local/lib'
'--with-mcrypt' '--with-xmlrpc'
Any one see were i fuxed up.


Try relinking with --with-pdo-oci=/opt/oracle/product/10gR2

This is a bug and it was reported to bugs.php.net

--
http://www.mgogala.com

Jan 22 '06 #5
On Sun, 22 Jan 2006 01:29:51 +0000, Mladen Gogala wrote:
To the OP: have you submitted this as a bug on bugs.php.net?


Yes.


Bug number is: 36119

--
http://www.mgogala.com

Jan 22 '06 #6
On Sun, 22 Jan 2006 05:09:58 GMT, Mladen Gogala <go****@sbcglobal.net> wrote:
On Sun, 22 Jan 2006 01:29:51 +0000, Mladen Gogala wrote:
To the OP: have you submitted this as a bug on bugs.php.net?


Yes.


Bug number is: 36119


Oh dear, they're taking that sort of attitude are they...

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 22 '06 #7
I logged in as root
exported ORACLE_HOME environment variable
restarted apache.

The pages started working after that.

Jan 23 '06 #8
On Fri, 20 Jan 2006 23:26:01 +0100, YeCkeL <ye*****@kc.rr.com> wrote:
Warning: oci_new_connect() [function.oci-new-connect]: OCIEnvNlsCreate()
failed. There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in
/wwwroot/htdocs/test.php on line 8

I am having this dump on my recent suse 10/oracle 10.2/apache
2.2.0/php5.1.2. Any ideas i pritty much used a uber basic.

apache cfg line
$ ./configure --prefix=/wwwroot --enable-so

php cfg line
'./configure' '--prefix=/wwwroot/php' '--with-apxs2=/wwwroot/bin/apxs'
'--with-config-file-path=/wwwroot/php'
'--with-oci8=/opt/oracle/product/10gR2' '--with-curl=/usr/local/lib'
'--with-mcrypt' '--with-xmlrpc'

Any one see were i fuxed up.


Just to rule out the easy solution - what's your permissions on the Oracle
home? I've noticed that a fresh install of 10g locks down the permissions
fairly tightly, so your typical Apache user won't be able to load the libraries
- resulting in this (not very descriptive) error.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 23 '06 #9

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

Similar topics

0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
3
by: Chad The Man | last post by:
I have been developing some applications on suse 9 / apache 1.37 / php 4.3.4 / Oracle 9i / OCI8. We recently moved servers, apache works fine, php works fine, oracle works fine... however, trying...
8
by: PIII450 | last post by:
Hi all, We had to switch to windows 2003 server with IIS and now i've got a problem with the OCI8 :(( Big time! I know php works. I have tested this. I know the oracle\bin is in the path. I...
0
by: RDahlstedt | last post by:
I am relatively new to PHP, but with over a decade of experience in C and other programming languages I can usually pick up a new programming language relatively quickly (to be reasonably...
6
by: DravenStone | last post by:
Hi, I had just a horrible day at work, spent pretty much the entire day trying to get php_oci.dll and php_oracle.dll to load. It still never did. Super Quick Background. Jack of all trades IT...
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...
5
by: Mladen Gogala | last post by:
The latest version of OCI8 1.2.1 doesn't work with LOB fields. There was an open bug, but Tony2001 was his usual helpful self, so he removed the bug and flatly denied its existence. I had to...
0
by: Yannick | last post by:
Hi, I'm Julien from France, We have recently install a new Web Server for my company The server is composed : - Linux RedHat RHEL4 U4 - Httpd-2.0.52-27.ent - Oracle Database 10.2.0.1
7
by: eholz1 | last post by:
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.