473,656 Members | 2,997 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 Clob Data Memory Limit Reached PHP ODBC

2 New Member
When trying to load the data from a clob data type I get the following error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1047096368 bytes)

What I don't understand is why so much memory is being used. This is a test record that contains only 50 characters yet it is somehow trying to allocate several gigabytes of data.

I'm running this as a php application connecting to a db2 9.7 database. I am very new working with db2. My experience has been mainly with mysql. Here is the code that is giving the error:
Expand|Select|Wrap|Line Numbers
  1. $sql = "SELECT * FROM callresp where crprojid = 204547";
  2. $r = odbc_exec($conn, $sql);
  3. if(!$r){exit("Error in SQL");}
  4. while(odbc_fetch_row($r))
  5.     {   
  6.         $desc = odbc_result($r, 'crDesc');
  7.         $assigned = odbc_result($r, 'crAssigned');
  8.         $problem = odbc_result($r, 'crProblem');
  9.         $solution = odbc_result($r, 'crSolution');
  10.     }
  11.  
Everything else on this connection works. If I comment out the clob data variables the page runs like it should only with out that data. I have been searching all day and its seems that almost any mention of clobs has been in relation to oracle. If anyone can help me I would greatly appreciate it.
Oct 19 '11 #1
1 2679
elispop122003
2 New Member
I want to also say that I have tried to achieve this by:
Expand|Select|Wrap|Line Numbers
  1. substr(crDesc, 1, length(crDes));
  2.  
I have tried using length and someone else suggested I use strlen() but that throws a db2 error.
Oct 20 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3423
by: James Butler | last post by:
Running a CLI script that fopen's a file, parses the lines into an array, checks the array entries against a few regular expression qualifiers (i.e. !eregi("bot",$entry)) and dump the good entries into a MySQL db. The fopen'ed file is a 410MB text file with log entries formatted like a .CSV file ("" text qualifiers and comma separators). Running the script from a web browser in Windows98: Works fine, except it stops about 1/10th of...
2
1874
by: beena | last post by:
We have a mainframe DB2 table with CLOB data type... What's the best way to transfer CLOB data from os/390 DB2 to UDB (8.2) on AIX 5.2. We tried unloading data with fixed format and tried loading in UDB using Method L. Unloaded CLOB field seems to have \n which causes confusion with the row delimitor (\n)...
1
1875
by: pankaj_wolfhunter | last post by:
I have a table with a clob column with 10 records and each record is around 1MB. I just want to know is there any way that i can export or send this clob data of each record into separate file. For eg: clob data of first row into datafile1.txt clob data of second row into datafile2.txt and so on Any kind of help will be greatly appreciated.
0
1366
by: Jimm | last post by:
Can anyone advise me as to the best method for updating an Oracle CLOB data type. I have to update a single column of CLOB data type via a web service. Thank you in advance. Jimm.
0
2834
by: Jimm | last post by:
Can anyone advise me as to the best method for updating an Oracle CLOB data type. I have to update a single column of CLOB data type via a web service. Thank you in advance. Jimm.
15
6716
by: jane | last post by:
We are getting this error during a large large load. 2006-06-03-02.58.31.688266 Instance:sieinst Node:000 PID:1286274(db2agent (SRMW) 0) TID:1 Appid:GAFE423C.P4CE.0671B3070116 database utilities DIAG_ERROR Probe:0 Database:SRMW LOADID: 1286274.2006-06-03-02.58.31.581068.0 (4;125) Error loading partition. 0, fffffffffffff43d, Detected in file:
3
3140
by: sadanjan | last post by:
Hi , Appreciate if someone can clarify if database Share Memory Limit (2 GB ) in Unix 32 bit boxes is the top limit for all the databases put together in a database or is it for each of the database in an Instance Thanks & regards sadanjan
38
24958
by: kanthi84 | last post by:
Hiiiiii i am having a table in oracle. in that table one of the column is to store clob data. and in that clob column, the data is inserted like the following using separators kanthi~is a good girl~she is very pretty~,^mamy~is a good girl~ wat i need is , i need to get them separately
0
1267
by: xievvv | last post by:
We are experiencing a memory leak in one of our applications. It is a web-based reporting system that produces large (> 500mb) PDF reports. It takes approx 4 hours to run the largest of these reports and during this process we have been experiencing issues with the aspnet worker process being recycled as the application's memory keeps growing to around 600mb. From my investigation, it appears that the memory is becoming bloated with character...
6
4860
by: howa | last post by:
Suppose the file is stored in "upload_tmp_dir ", so why I need to increase the memory limit? If I want to upload 100 MB, how large should I set? Thanks.
0
8816
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
8710
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
8497
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
8598
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
6162
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
4150
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
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1928
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.