sumitrishi wrote:
> I think database locking and all does not come into picture till the
> time you are just reading the data. As a matter of fact in my handler
> I try to run a stored procedure which has data insertion but it
> happens only in oracle global temporary table. These tables are used
> for parallel run and insertion can happen simultaneously in different
> sessions, in fact each session gets it own copy of global temporary
> tables. If I try running my stored procedures from two different
> instances of TOAD(interactive utility to work with oracle) the stored
> procedures run parallely independent of each other.
TOAD probably does not use ODBC, DAO, or ADO at all but directly
communicates throug
h the native Oracle network protocol. I would be
surprised if they can't handle concurrent connections on that level for
such a commercial grade application.
> I just tried running TOAD and my program together and they did run
> without problem. Indication oracle for ODBC driver also is capable of
> multithreading.
Multithreading of course, otherwise it wouldn't run with ADO, DAO but
that does not mean that the ADO/DAO layer to access an Oracle database
is guaranteed to not use some sort of lock during extraction of the
data, which in these APIs is usually the most time consuming part anyhow.
> However I am not so sure about the way 'oracle ODBC driver' and
> labVIEW interacts?
In the new Database Connectivity Toolkit, it accesses the Active X Data
Object (ADO) interface. This interface then either uses an OLE-DB
provider to communicate to a particular database or if there is no such
provider uses a gateway to access the ODBC driver for that database. I
think there is also
a translation to DAO, the previous object oriented
Microsoft database interface before ADO, for such providers.
So there are a number of places where a restrictive lock could limit
parallel operation severely.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390