Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: ora_check_sql in DBD::oracle
Mladen Gogala wrote:
> In private communication with Cary Millsap, I was warned about the
> undocumented DBI handle attribute called "ora_check_sql" which was
> defaults to "1" and, oracle versions 8 and above, causes oracle to
> parse each statement twice ($sth=$dbh->prepare() is the first parse
> and 4sth->execute() was the second). On 1/27/2004. Tim Bunce delivered
> the new DBD::Oracle v1.15 and in the documentation one can find the
> following text:
> ***************************************************************************
> ora_check_sql
>
> If 1 (default), force SELECT statements to be described in prepare
> (). If 0, allow SELECT statements to defer describe until execute().
> (OCI8 and later only.)
>
> See "Prepare postponed till execute" for more information.
good catch, Mladen.
Just to back that up, I was poring over some trace files a month or so
ago, and noticed the double parsing. Took some digging, but that was the
cause.
Once we set {ora_check_sql => 0} in the prepare statement -- all gone.
Cheers!
-- Bricklen Anderson, Database Administrator PresiNET Systems http://www.PresiNET.com Live Demo: https://www.presinet.com/secure/login ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Feb 05 2004 - 13:14:48 CST
![]() |
![]() |