473,387 Members | 1,606 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,387 software developers and data experts.

5.1.2 woes

I downloaded PHP-5.1.2 and tried it with an application I normally use.
Application connects to Oracle 10.2. Here is the result:

[Thu Jan 12 19:26:11 2006] [notice] Apache/2.0.54 (Unix) PHP/5.1.2
configured -- resuming normal operations [Thu Jan 12 19:26:20 2006]
[error] [client 127.0.0.1] PHP Warning: ocilogon() [<a
href='function.ocilogon'>function.ocilogon</a>]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that ORACLE_HOME
is set and points to the right directory in
/usr/local/PHP/adodb/drivers/adodb-oci8.inc.php on line 228, referer:
http://localhost/dba/dba_helper.php

When I downgraded to 5.1.1 - it worked like a charm. Version 5.1.2 is
still a little bit rough around the edges, isn't it?

--
http://www.mgogala.com

Jan 13 '06 #1
8 2268

Mladen Gogala wrote:
I downloaded PHP-5.1.2 and tried it with an application I normally use.
Application connects to Oracle 10.2. Here is the result:

[Thu Jan 12 19:26:11 2006] [notice] Apache/2.0.54 (Unix) PHP/5.1.2
configured -- resuming normal operations [Thu Jan 12 19:26:20 2006]
[error] [client 127.0.0.1] PHP Warning: ocilogon() [<a
href='function.ocilogon'>function.ocilogon</a>]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that ORACLE_HOME
is set and points to the right directory in
/usr/local/PHP/adodb/drivers/adodb-oci8.inc.php on line 228, referer:
http://localhost/dba/dba_helper.php

When I downgraded to 5.1.1 - it worked like a charm. Version 5.1.2 is
still a little bit rough around the edges, isn't it?

--
http://www.mgogala.com


Are you sure the extension was compiled correctly?

Jan 13 '06 #2
On Thu, 12 Jan 2006 18:01:16 -0800, Chung Leong wrote:
Are you sure the extension was compiled correctly?


Yes, I am. ORACLE_HOME was set and here is the configure command I used:

../configure --with-apxs2=/opt/apache/bin/apxs --with-xmlrpc --with-zlib --with-bz2 --with-ttf --with-gd --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --with-config-file-path=/usr/local/lib/php --enable-sigchild --without-sqlite --disable-mysql --disable-pdo --with-oci8

Nothing fancy, nothing out of ordinary. I've seen the same type of
behavior with DBI-1.50 and DBD::Oracle 1.16 (another language, but the
problem looks exactly the same). The error message is exactly the
same, in both cases. No compilations errors were reported, in either
case.
--
http://www.mgogala.com

Jan 13 '06 #3
On Thu, 12 Jan 2006 18:01:16 -0800, Chung Leong wrote:

Are you sure the extension was compiled correctly?


I found the problem: I shouldn't have disabled PDO. With PDO and PDO_OCI
compiled in, it works like a charm. Funny thing that those two extensions
are interdependent.

--
http://www.mgogala.com

Jan 13 '06 #4
On Fri, 13 Jan 2006 01:09:00 GMT, Mladen Gogala <go****@sbcglobal.net> wrote:
I downloaded PHP-5.1.2 and tried it with an application I normally use.
Application connects to Oracle 10.2. Here is the result:

[Thu Jan 12 19:26:11 2006] [notice] Apache/2.0.54 (Unix) PHP/5.1.2
configured -- resuming normal operations [Thu Jan 12 19:26:20 2006]
[error] [client 127.0.0.1] PHP Warning: ocilogon() [<a
href='function.ocilogon'>function.ocilogon</a>]: OCIEnvNlsCreate() failed.
There is something wrong with your system - please check that ORACLE_HOME
is set and points to the right directory in
/usr/local/PHP/adodb/drivers/adodb-oci8.inc.php on line 228, referer:
http://localhost/dba/dba_helper.php

When I downgraded to 5.1.1 - it worked like a charm. Version 5.1.2 is
still a little bit rough around the edges, isn't it?


Any warnings during "configure"? Did the OCI8 bit look like it picked up
Oracle?

I've set up 5.1.2 on Linux and Windows, both connecting to Oracle to try out
the new version of the OCI8 extension - no issues in either case. The new
features seem to work well from a brief first test - the timeout on persistent
connections is a welcome addition, and it seems to work.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 13 '06 #5
On Fri, 13 Jan 2006 19:18:35 +0000, Andy Hassall wrote:
Any warnings during "configure"? Did the OCI8 bit look like it picked up
Oracle?


Nope, no warnings. It seems that it needs something from PDO_OCI.
Strange.

--
http://www.mgogala.com

Jan 13 '06 #6
On Fri, 13 Jan 2006 21:40:53 GMT, Mladen Gogala <go****@sbcglobal.net> wrote:
On Fri, 13 Jan 2006 19:18:35 +0000, Andy Hassall wrote:
Any warnings during "configure"? Did the OCI8 bit look like it picked up
Oracle?


Nope, no warnings. It seems that it needs something from PDO_OCI.
Strange.


Just tried it with --disable-pdo. Same result. Yep, strange.

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

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 20 '06 #8
I am experiencing the same error message. I can produce this message
by connecting quickly about four times - the first three times works
and then this error message is thrown:

"PHP Warning: ocilogon() [<a
href='function.ocilogon'>function.ocilogon</a>]: OCIEnvNlsCreate()
failed. There is something wrong with your system - please check that
ORACLE_HOME is set and points to the right directory in ..."

Here's my phpinfo configuration:

'./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-libdir=lib' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic'
'--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr'
'--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--with-pear=/usr/share/pear' '--with-kerberos'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr'
'--enable-memory-limit' '--enable-shmop' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic'
'--without-sqlite' '--with-libxml-dir=/usr' '--with-xml'
'--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd'
'--without-odbc' '--disable-dom' '--disable-dba'

PHP Version 5.0.4

Any ideas?

Feb 7 '06 #9

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

Similar topics

2
by: Martin the Mac Addict | last post by:
Good evening to the skilled Ladies and Gentlemen of the PHP world. I am fairly new to all of this but learning quickly. I have run in to a need to remove blank lines from a form submission after...
7
by: Mark | last post by:
O, woe is me, to have seen what I have seen, see what I see! (That's Shakespeare for those who were wondering what I'm on about) I am "having fun" with cookies. And I wonder if I have...
0
by: Cedric | last post by:
This is a 3 weeks old problem, but having found a solution (and having looked for one here, finding only this message), I'm replying now. From: Jive (someone@microsoft.com) Subject: Upgrade...
3
by: Angel Cat | last post by:
Trying to get my jobs to send mail when job fails. Should be easy but it's giving me headache Had a whole slew of issues. Outlook is installed with a n outlook mail profile set up that can...
2
by: Andrew Thompson | last post by:
- NN 4.78 rendering woes, links at far left - I am trying to rework an old site, make it valid html and css, improving the x-browser and 'older browser' compatibility. My efforts so far, have...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
9
by: Mark Rae | last post by:
Hi, This time, I'm looking for a regular expression which says "the string must contain exactly seven or exactly eight digits" e.g. 123456 fails 1234567 passes 12345678 passes 123456789...
1
by: hdogg | last post by:
Scope Woes - IF statement nested in WHILE statement -PHP I have an array $actuals_sum. <?php while(conditions) { if($i == '24) {
4
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
I am at my witless end here, please help! I have an ASP.Net aspx web page, hosted on Windows Server 2003, that receives a query string with the path to an autocad drawing file selected from a...
1
by: Mike Howarth | last post by:
I've been having a few problems with connecting to SQL Server, initially I was using dblib however found some problems with returning text fields whereby all text fields were ignored and it bawked...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.