I just got a VM box. 2.6.9-22.ELsmp, Oracle 10gr2_client
This works: # sqlplus user/pw@machine connects right up.
But this doesn't:
putenv ("ORACLE_PAT H=/opt/oracle/10gr2_client/bin");
putenv ("ORACLE_HOM E=/opt/oracle/10gr2_client");
putenv ("PATH=$PATH ;/opt/oracle/10gr2_client/bin");
$conn = ora_logon ("user@machine" , "passwd");
$cur = ora_open($conn) ;
Gives: PHP Fatal error: Call to undefined function: ora_logon() in
/var/www/html/tst.php I've been searching the web - nothing, well
nothing that fits my case. On the old machine oci8 was in /etc/php.ini.
phpinfo says oci8 is supported. /etc/php.d doesn't have a oci8.ini and
web searching doesn't return anything (that exists). So what am I
missing? doing wrong? cl in co Thanks 4 5845
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Cal Lidderdale wrote:
Gives: PHP Fatal error: Call to undefined function: ora_logon() in
/var/www/html/tst.php I've been searching the web - nothing, well
nothing that fits my case. On the old machine oci8 was in /etc/php.ini.
phpinfo says oci8 is supported.
Then, why are you using the deprecated oracle functions (ora_logon) instead
of the oci8 (oci_connect) functions?
- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.16-2-686 kernel, KDE3.5.3, and PHP
5.1.4-0.1 generating this signature.
Uptime: 18:42:30 up 1 day, 21:06, 1 user, load average: 0.42, 0.21, 0.37
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEq+wz3jc Q2mg3Pc8RAmx2AJ 9/55QQS7Z7zK/c2hp2YGlWzdGE8A CfWT2g
XqxLZlWko4u7CmH YOIpNp24=
=ibsI
-----END PGP SIGNATURE-----
On Wed, 05 Jul 2006 09:51:55 -0600, Cal Lidderdale <ca*@nospam-bug.comwrote:
putenv ("ORACLE_PAT H=/opt/oracle/10gr2_client/bin");
putenv ("ORACLE_HOM E=/opt/oracle/10gr2_client");
putenv ("PATH=$PATH ;/opt/oracle/10gr2_client/bin");
What Iván said, plus it's generally better to set the environment variables
before Apache starts rather than setting them with putenv - if you have access
to do so, at least.
--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
On Wed, 05 Jul 2006 09:51:55 -0600, Cal Lidderdale wrote:
phpinfo says oci8 is supported. /etc/php.d doesn't have a oci8.ini and
web searching doesn't return anything (that exists). So what am I
missing? doing wrong? cl in co Thanks
The problem is in the fact that ora_logon is an OCI function, not OCI8
function. OCI is no longer supported in 5.1. The function you're looking
for is called "oci_connec t", "oci_new_connec t" or "oci_pconne ct",
depending on what do you want to do with it.
-- http://www.mgogala.com
On Wed, 05 Jul 2006 18:43:29 +0200, Iván Sánchez Ortega wrote:
Then, why are you using the deprecated oracle functions (ora_logon) instead
of the oci8 (oci_connect) functions?
I didn't see your answer in time.
-- http://www.mgogala.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
354 roberto@ausone:Build/php-4.3.2> ldd /opt/php4/bin/php
libsablot.so.0 => /usr/local/lib/libsablot.so.0
libstdc++.so.5 => /usr/local/lib/libstdc++.so.5
libm.so.1 => /usr/lib/libm.so.1
|
by: Hans Forbrich |
last post by:
The following is a Request for Discussion, following up on some recent
posts about distributing a periodic news group 'Charter and FAQ' post.
While not formally following RFC/RFD rules, the intent is to use the
rules as a guide for the discussion and make a more formal Request for
Comment and a follow-up formal vote, possibly before year-end.
Proposal:
That the following be posted weekly for this news group:
|
by: Jake McDermott |
last post by:
We have a few developers that use Oracle 9i (9.2.0.4.0) on their
personal workstations for testing purposes. Recently, weve made the
decision to upgrade them to WinXP so that they are able to use some
other functionalities of the OS, but we are running into a totally odd
problem with Oracle. It seems that, Installing Oracle runs just fine,
and our ant scripts to build the database work well...but when we reboot
the computer, the database...
|
by: Arun Goel |
last post by:
I have installed Oracle client & Oracle database(9.2.0.4) on Red Hat
9.0.
It seems to me everything went fine in installation as I followed
notes from http://www.puschitz.com/InstallingOracle9i.shtml.
But now I don't see any instructions somewhere which can explain me
how to start my client?
And how to start my database?
|
by: Will |
last post by:
On the subject of Data Warehouses, Data Cubes & OLAP….
I would like to speak frankly about Data Warehouses, Data Cubes and
OLAP (on-line analytical processing). Has it dawned on anyone else
that these buzz words were created by some geek who decided to take a
stab at marketing? Knowing that to the backwoods manager who knows
little of technology that new innovative names for old concepts would
help to sale their products.
I mean...
| |
by: ʹÃûÑï |
last post by:
ORA-03114: not connected to ORACLE && MS's Bug??
DataBase:Oracle 817
using OracleClient,net framework 1.1
I'm using ADO.Net in C# with Oracle 817.
and following is my public data access class.
using System.Data.OracleClient;
|
by: MAL |
last post by:
Hello,
I have 2 classes that work great as a windows app to retrieve and
process data from an Oracle9i db. When I implement them in a Service
program running as Local System, it fails on the .open. I am using
OLEDB for Oracle 9.2.0.4. I have verified the Oracle Client install,
Local Sys' path variable, and followed MSKB article 259959(Debugging
connectivity issues w/ Oracle).
Here is the error:
|
by: opensourcearts |
last post by:
Hello all,
I am working on an application that is basically a bridge between
oscommerce and gallery2 software, with some other functionality.
It will allow users to port all of their media from gallery2 into
oscommrce, complete with rights definitions and watermarking.
I have spent a lot of time on this application, and I am thinking of
selling it as part of a bundled package with creloaded and gallery2.
|
by: egoldthwait |
last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a
Citrix farm. The issue: we have never converted an Access Db to Oracle
but can probably use Oracle's Workbench to assist with this. Also - the
citrix folks do not want us to keep the FE in Access as the queries and
other activities consume a lot of power. The users will be in 3
different offices across the globe all accessing the 1 Oracle DB in
Citrix.
Does anyone have...
|
by: Noorain |
last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all information to show as displace. please help me.
my coding are as below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |