in reply to Re: DBI limitation???
in thread DBI limitation???

This was copied from another code that was getting metadata from another table in oracle that comes in a large blob format. you are right this is not needed.

Replies are listed 'Best First'.
Re^3: DBI limitation???
by derby (Abbot) on Apr 06, 2016 at 16:58 UTC

    Gotcha. Well ... instead of a $dbh->do(...) ... which would read all the rows into memory before returning, I'd try the prepare/execute/fetchrow approach and hope the underlying DBD/OCI does the right thing memory wise.

    my $sth = $dbh->prepare( $ctas_sql ); $sth->execute(); while( my $row = $sth->fetchrow_arrayref ) { # do whatever with $row }

    -derby

    Update: Doh! just reread this and saw it was a create statement, not a select. In that case I'm guessing you're timing out somewhere. You may want to look into using DBI->trace to try and track that down.