Downloaded 114 BLOBS using PHP before getting ORA-12537: TNS Connection Closed [message #643998] |
Sat, 24 October 2015 15:25 |
|
jdrogers73
Messages: 2 Registered: October 2015
|
Junior Member |
|
|
I am running a very basic PHP script on a Redhat Linux box to download photos. I can connect to Oracle with no problem. 114 BLOBS are downloaded before getting ORA-12537 TNS: Connection Closed. Why is it closing? I need to download 2,114 BLOBS.
This is the algorithm:
query = "SELECT picture FROM table WHERE id_number = :id";
foreach(id number)
{
prepare query
execute query
bind column
fetch
array[id] = picture;
}
print_r(array);
exit;
[Updated on: Sat, 24 October 2015 15:26] Report message to a moderator
|
|
|
|
|
|
Re: Downloaded 114 BLOBS using PHP before getting ORA-12537: TNS Connection Closed [message #647171 is a reply to message #644036] |
Thu, 21 January 2016 03:49 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
I don't really know PHP, but in Perl or Java you have to "close" the query again. Otherwise you might run into too much open cursors (ORA-01000 maximum open cursors exceeded).
Since PHP is notoriously bad at reporting errors, it might be you run into THAT during the "prepare", but it's not reported, only the "connection closed" is reported later on....
|
|
|