Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: DBD::Oracle - OCILobRead error

by Samy_rio (Vicar)
on Apr 29, 2009 at 12:52 UTC ( #760864=note: print w/ replies, xml ) Need Help??


in reply to Re: DBD::Oracle - OCILobRead error
in thread DBD::Oracle - OCILobRead error

I assigned the LongReadLen value like below and also i got the exact length, eventhough i am getting the same error.

my $new_sql = <<EOS; select <col_name> from <table_name> EOS $dbh->{LongReadLen} = $dbh->selectrow_array(qq{ SELECT dbms_lob.getlength(<col_name>) FROM <table_name> }); print "CLOB Length: ".$dbh->{LongReadLen}; my $sth = $dbh->prepare($new_sql); $sth->execute(); my @rows; while(my $cols = $sth->fetchrow_hashref()) { push(@rows, $cols); } $sth->finish();

Anything wrong in that?

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';


Comment on Re^2: DBD::Oracle - OCILobRead error
Select or Download Code
Replies are listed 'Best First'.
Re^3: DBD::Oracle - OCILobRead error
by runrig (Abbot) on Apr 29, 2009 at 16:09 UTC
    Just set it to an arbitrarily large value:
    $dbh->{LongReadLen} = 1024*1024; # or even another 1024*4

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://760864]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2015-07-31 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls