dbTalk Databases Forums  

Oracle OLEDB Provider on 8i parses the SQL Twice

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Oracle OLEDB Provider on 8i parses the SQL Twice in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vivek
 
Posts: n/a

Default Oracle OLEDB Provider on 8i parses the SQL Twice - 02-23-2006 , 08:11 AM







Dear all

Scenario:
1. We have a WinForm application using .NET that creates Sql
statements to be executed.
2. We have an Oracle database 8i.

we are using OraOLEDB.Oracle provider for data access

following is the connection string
ConnectionString="Provider=OraOLEDB.Oracle;User ID=userId;Data
Source=TestDB;Password=itbagain;distribtx=0;";

as i am looking at the SQL TRACE it shows that each statement get
parsed twice at Database End.


call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
----------
Parse 25 0.12 0.12 0 0 0
0
Execute 12 1.66 1.89 0 0 0
1
Fetch 10 0.06 0.08 0 901 20
0
------- ------ -------- ---------- ---------- ---------- ----------
----------
total 47 1.84 2.09 0 901 20
1


as this affects on performance of the application.

kindlly suggest if i am missing any connection string attribute,or
something else.


Thanks and Regards.

Vivek


Reply With Quote
  #2  
Old   
frank.van.bortel@gmail.com
 
Posts: n/a

Default Re: Oracle OLEDB Provider on 8i parses the SQL Twice - 02-24-2006 , 04:37 AM






Your connection most probably does a describe before every execute, in
order to check validity of the (types of the) parameters passed.

Cannot comment on your environment, but maybe this hint will help

Regards,
Frank van Bortel


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.