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

Home -> Community -> Usenet -> c.d.o.server -> Re: 10g Bind peeking causes multiple cursors for same query with perl DBD::Oracle

Re: 10g Bind peeking causes multiple cursors for same query with perl DBD::Oracle

From: peter <p_msantos_at_yahoo.com>
Date: 13 Dec 2005 12:22:42 -0800
Message-ID: <1134505362.521601.62060@g44g2000cwa.googlegroups.com>


Just for completeness sake, I contacted the dbi-users_at_perl.org users group and the solution to my problem was to call the prepare() with an additional parameter.

instead of "my $sth = $dbh->prepare($sql);"

do the following

$dbh-> "my $sth = $dbh->prepare($sql, {ora_check_sql => 0} );

The default to ora_check_sql = 1 which causes that extra parse for SELECT statements.
Changing the variable to 1 causes the parse and execute to be done at the same time resulting in
only 1 cursor.

perldoc DBD::Oracle ... then search for ora_check_sql

--peter Received on Tue Dec 13 2005 - 14:22:42 CST

Original text of this message

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