DBD::Oracle out of memory



I have some problem with dbd-oracle 1.19

Its work fine if I use CLOB as a bind- variable in a loop.
like this:


While($id < $maxid)
{
$dbh_ora= dbh_con();
$dbh_ora->{LongReadLen} = 1024*500;

while ( my ( $id
,$field1
,$field2
)= $sth_pg->fetchrow_array())
{
$sth_ora->bind_param(1, $field1 );
$sth_ora->bind_param(2, $field1 ,{ ora_field=>'FIELD1' , ora_type
=> ORA_CLOB });
$sth_ora->bind_param(3, $field2 ,{ ora_field=>'FIELD2' , ora_type
=> ORA_CLOB });
}
$dbh_ora->commit();
$dbh_ora->disconnect();
}

But the memory increased until I get out of memory.
Exists solution fort this problem

I use:
Oracle 10G2
Perl 5.8.8
Linux Kernel 2.4.21

.



Relevant Pages

  • Re: export to XML file - poor performance
    ... VARCHAR2) RETURN CLOB AS ... loading first wirh select into and using a loop for concatenation? ... I'm trying to create PL/SQL procedure which will export data to xml ... I loop from the data and create the output file concatenating the ...
    (comp.databases.oracle.misc)
  • Re: Clobs and DBMS_LOB
    ... "Using SQL Semantics with LOBs ... writing to a CLOB benchmarked, and the results are interesting ... ... end loop; ... call count cpu elapsed disk query current ...
    (comp.databases.oracle.server)
  • Weird Oracle CLOB insert problem
    ... I'm working on some test code to insert and read clob and blob ... DBD-Oracle documentation. ... one row has a number in the chardata column and the other is empty. ... SQL ...
    (perl.dbi.users)
  • Re: CLOB and Stored Procedure
    ... > i'm using ORACLE 9i and Delphi 2005. ... > I have a field in a one field table defined as CLOB and i have ... > Stored Procedure: ... > for i in 1..3300 loop ...
    (borland.public.delphi.database.ado)
  • Re: stripping html from a clob
    ... I grabbed the code for str_html off asktom which is below:- ... end loop; ... To change this to work with a clob should be pretty easy (the following ... Prev by Date: ...
    (comp.databases.oracle.misc)