473,795 Members | 3,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP adodb

I just started using the php adodb library for my Oracle transactions,
but am running into a problem when there are 2 simultaneous requests
going on at the same time.

The nature of the php app that I created is it runs a large query that
takes approximately 15 seconds to run and then prints the data out on
a web page.

If I open 2 separate browser windows and call the same report at about
the same time, or while one report is processing, I get the following
error:

Warning: Unknown: _oci_close_sess ion: OCISessionEnd: ORA-03127: no new
operations allowed until the active operation ends in Unknown on line
0

When I was doing this same report using php4 and the OCI functions I
had no problems with this database and concurrent transactions, seems
to be something with how I am using adodb..

Here is my code snippet:

include('./adodb/adodb.inc.php') ;
$username = "user"; //oracle user
$password = "password"; //oracle password
$database = "testdataba se"; //tnsnames database entry

//Type of connection
$db = NewADOConnectio n('oci8');

//Sets the query results to come back as assoc arrays
$db->SetFetchMode(A DODB_FETCH_ASSO C);

function InvokeErrorHand ler()
{
global $db; ## assume global
echo $db->ErrorMsg();
}

//Make the connection
$db->Connect($datab ase, $username, $password);
if (!$db->Connect($datab ase, $username, $password))
InvokeErrorHand ler();

$query = "SELECT * FROM table";

$rs = $db->Execute($query );

This all seems common, as I have seen many examples using similar
config and connect info, but I cannot get past the concurrent issue, I
have tried using PConnect instead of connect, but I still get
problems.

Thanks

Mar 27 '07 #1
7 3501
On Tue, 27 Mar 2007 09:11:29 -0700, trpost wrote:
I just started using the php adodb library for my Oracle transactions,
but am running into a problem when there are 2 simultaneous requests
going on at the same time.

The nature of the php app that I created is it runs a large query that
takes approximately 15 seconds to run and then prints the data out on a
web page.

If I open 2 separate browser windows and call the same report at about
the same time, or while one report is processing, I get the following
error:

Warning: Unknown: _oci_close_sess ion: OCISessionEnd: ORA-03127: no new
operations allowed until the active operation ends in Unknown on line 0

When I was doing this same report using php4 and the OCI functions I had
no problems with this database and concurrent transactions, seems to be
something with how I am using adodb..

Here is my code snippet:

include('./adodb/adodb.inc.php') ;
$username = "user"; //oracle user
$password = "password"; //oracle password $database = "testdataba se";
//tnsnames database entry

//Type of connection
$db = NewADOConnectio n('oci8');

//Sets the query results to come back as assoc arrays
$db->SetFetchMode(A DODB_FETCH_ASSO C);

function InvokeErrorHand ler()
{
global $db; ## assume global
echo $db->ErrorMsg();
}

//Make the connection
$db->Connect($datab ase, $username, $password); if
(!$db->Connect($datab ase, $username, $password)) InvokeErrorHand ler();

$query = "SELECT * FROM table";

$rs = $db->Execute($query );

This all seems common, as I have seen many examples using similar config
and connect info, but I cannot get past the concurrent issue, I have
tried using PConnect instead of connect, but I still get problems.
Is this a Windows installation of Apache? I have no such problem
with either Linux or Solaris.
Mar 28 '07 #2
I get the same problem on both Windows and Solaris

Apr 2 '07 #3
On Apr 2, 1:38 pm, trp...@gmail.co m wrote:
I get the same problem on both Windows and Solaris
Is there anything better than adodb, that supports concurrent
transactions. I am still getting the following if I call the same
query at the same time:

Warning: ocilogon() [function.ocilog on]: OCISessionBegin : ORA-03127:
no new operations allowed until the active operation ends

Apr 2 '07 #4
On 27 Mar 2007 09:11:29 -0700, tr****@gmail.co m wrote:
>Warning: Unknown: _oci_close_sess ion: OCISessionEnd: ORA-03127: no new
operations allowed until the active operation ends in Unknown on line
0
What version of PHP and Oracle client?

Does your table contain LOBs? There seem to be a few bugs that result from
problems in LOBs that result in this error.

http://www.google.co.uk/search?q=ORA-03127+oci8

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Apr 3 '07 #5
On 2 Apr 2007 14:42:44 -0700, tr****@gmail.co m wrote:
>On Apr 2, 1:38 pm, trp...@gmail.co m wrote:
>I get the same problem on both Windows and Solaris

Is there anything better than adodb, that supports concurrent
transactions . I am still getting the following if I call the same
query at the same time:

Warning: ocilogon() [function.ocilog on]: OCISessionBegin : ORA-03127:
no new operations allowed until the active operation ends
ADOdb is just a wrapper for the various database extensions, in this case the
oci8 extension to access Oracle; it won't be responsible for the error, which
is coming from the database extension level.

--
Andy Hassall :: an**@andyh.co.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Apr 3 '07 #6
I am using php version 5.05 and Oracle instantclient_1 0_2 and adodb
4.96. I was previously using php 4.3.9 and the ora functions, which
worked fine with the same queries, however with php 5+ I cannot use
the ora fxns and insead must use the oci fxns which is where I run
into this problem that I cannot run the same long query at the same
time. I did some more reading about blocking vs. non-blocking
queries... Is it possible to switch between the 2 using php/oci? Or
any other ideas??

Apr 6 '07 #7
Ok, so I upgraded php from 5.0.5 to 5.2.1 and the problem went away,
but it is not so easy for me to upgrade my other Unix envoronment as
anything after php 5.0.5 requires me to upgrade mysql as well. So what
is it about 5.0.5 that is causing this error, and how do I fix it
without upgrading.
Apr 13 '07 #8

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

Similar topics

4
9312
by: KLomax | last post by:
I have a VB6 com object that uses ADO 2.1 for data access. I have referenced this object in a aspx application. It works fine on my local development machine. On our staging server, it errors when trying to instantiate the com object. This object runs fine in another asp application on the same box, so it is not the object itself. I am remotely compiling the application on our staging server. The full error message is below.
0
2881
by: elcc1958 | last post by:
I need to support a VB6 application that will be receiving disconnected ADODB.Recordset from out DotNet solution. Our dotnet solution deals with System.Data.DataTable. I need to populate a disconnected ADODB.Recordset from System.Data.DataTable data. Below is the source code I am implementing to test the process. I do not get any error, that I can see. The problem I have is that at the end, the recordset seems to be empty. Any...
0
2479
by: Channing Jones | last post by:
Hello everyone, I am trying to store data in a binary field of an SQL-Server table using ADODB. So far, I have managed to store a record but not any data in the binary field. I only get exceptions on various part. I have tried both AppendChunk and using a stream object. Unfortunately all the examples I can find in the Net and on the Microsoft site
5
29854
by: Simone | last post by:
Hello I hope you guys can help me. I am very new to ADO... I am creating a ADODB connection in a module and trying to access it from a command button in a form. Function fxEIDAssgn(plngEID As Long) As Boolean Dim rsAssignedUser As ADODB.Recordset Dim strSelectUser As String
0
3285
by: Andre Azevedo | last post by:
Hi all ! I've created a .net serviced component with only one method. This method receive an ADODB.Command object and execute it. The ADODB.Command object is created in the client process. (VB for example). When I try to set the connection property or try to open a recordset using the Command object I've got an error. Here is the mehotd code for the connection set error:
0
3539
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the original question, the subject line is: ADODB.NET and "Access Denied" I have an ASP.NET page writtein in VB that uses ADODB. I just had to
4
5512
by: Ames111 | last post by:
Hi I have an application that connects to a SQl database on my computer via an ADODB connection: ADODB.Connection Conn = new ADODB.Connection(); Conn.ConnectionString = ("Driver={SQL Server};Server=4P-12.Leighton.local;Database=HD;Uid=l0073;Pwd=cheese");
6
5366
by: Wonder | last post by:
We have a VB.NET project with a reference to ADO 2.5 When I open it on my machine, I get the following build error: "The referenced component 'ADODB' has an updated custom wrapper available." When I double click on it, I get the following dialog appear: If I click 'No', for every object declared from the ADODB library, I get a build error as follows: "Reference required to assembly 'ADODB' containing the type 'ADODB.Connection'. Add...
7
4153
by: Bryan | last post by:
Hi , I am using ADO (ADODB) with access database. Not sure what I am doing wrong.here. Can anyone please help me? string mdbFile = System.IO.Directory.GetCurrentDirectory() +" \\bTrack.mdb;" ADODB.Connection conn = new ADODB.Connection(); ADODB.Recordset rs = new ADODB.Recordset(); string connString =string.Format("Provider=Microsoft.Jet.OLEDB.4.0; Data Source={0}", mdbFile); string query = "Select * from Client";
6
5177
by: Oko | last post by:
I'm currently developing an MS Access Data Project (.adp) in MS Access 2002. One of the reports within the DB uses data that is Dynamic and cannot be stored on the SQL Server. To resolve this, I have created an ADODB.Recordset in the reports OPEN event, built the necessary records inside of it, and then bound the report to this newly created recordset. Here's the rub:
0
9519
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,...
0
10437
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, 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...
0
10214
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 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...
1
10164
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,...
0
10001
tracyyun
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...
1
7538
isladogs
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...
0
5437
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...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.