Unnecessary calls to DBMS_DESCRIBE Oracle Stored procedure
From: Hooman (Hooman_at_discussions.microsoft.com)
Date: 01/27/05
- Next message: Stephen Howe: "Re: Unnecessary calls to DBMS_DESCRIBE Oracle Stored procedure"
- Previous message: Andy Schmidt: "JET CREATE TEMPORARY TABLE is Syntax Error"
- Next in thread: Stephen Howe: "Re: Unnecessary calls to DBMS_DESCRIBE Oracle Stored procedure"
- Reply: Stephen Howe: "Re: Unnecessary calls to DBMS_DESCRIBE Oracle Stored procedure"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 Jan 2005 17:33:06 -0800
I have utilized Microsoft Activex Data Object 2.6 library to call some Oracle
stored procedures from my COM+ object. It works fine, but the trace data
shows that we have extra calls to DBMS_DESCRIBE.
It actually happens when we are calling the stored procedures that are going
to return a result set in one of their out put parameters.
It seems that the problem is related to the implementation of ORACLE OLE/ADO
Provider (Driver). I found this discussion in a web site:
************************************************
The problem is supposed to be fixed in the Oracle 9.2 provider...
Here is a short excerpt from Oracle Support in one of the posts:
"Apparently what is happening is the provider (ADO/OLEDB) calls
OCIStmtExecute twice. Once with DESCRIBE_ONLY to do an explicit describe and
again to execute. The parse stat count is being incremented twice, once for
each execute call. The parse happens only during the first call which is a
hard parse. On the second call, the count is being incremented even though a
hard parse is not made. As a result, the parse count shows 2 even though it
is actually being parsed only once, the first time."
************************************************
I already checked version of the Oracle OLE/ADO provider in our server and
it is 9.2, so that bug has not been fixed in that version.
Do you have any idea to prevent those extra calls?
Thanks,
Hooman Malek
- Next message: Stephen Howe: "Re: Unnecessary calls to DBMS_DESCRIBE Oracle Stored procedure"
- Previous message: Andy Schmidt: "JET CREATE TEMPORARY TABLE is Syntax Error"
- Next in thread: Stephen Howe: "Re: Unnecessary calls to DBMS_DESCRIBE Oracle Stored procedure"
- Reply: Stephen Howe: "Re: Unnecessary calls to DBMS_DESCRIBE Oracle Stored procedure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|