Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: return CLOB via Perl/DBI

Re: return CLOB via Perl/DBI

From: Ken Chesak <datavector_at_hotmail.com>
Date: 25 Jun 2003 08:41:58 -0700
Message-ID: <3f2f39c4.0306250741.16db2589@posting.google.com>


Using the following code I get the error,

DBD::Oracle::db prepare failed: ORA-03115: unsupported network datatype or repre
sentation (DBD: odescr failed) at clob.pl line 26.

It works if I use dbms_lob.substr( comments, 30000, 1). But then I am limited to 30000.

$dbh->{LongReadLen} = 512 * 1024 ;
$dbh->{LongTruncOk} = 1;

        $sth1 = $dbh->prepare(q{
               SELECT cd_type, comments
               FROM comments WHERE id_comment = 53
       });

       $sth1->execute();

        while ( ($name, $data) = $sth1->fetchrow_array ) {

                print "row = $name $data \n";

        }
Received on Wed Jun 25 2003 - 10:41:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US