Direct mode and oci mode in parallel -> alternated connection closing

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
b-b
Posts: 10
Joined: Fri 19 Jul 2013 11:09

Direct mode and oci mode in parallel -> alternated connection closing

Post by b-b » Fri 02 Aug 2013 14:45

Hello,
if you have want to use two connections, one in direct-mode and one in oci-mode, they are closed alternated.
This is quite bad if you work with transactions (-> rollback).
Is it possible to support both connection types in parallel without closing?

Kind regards,


Bernd

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Direct mode and oci mode in parallel -> alternated connection closing

Post by AlexP » Tue 06 Aug 2013 06:28

Hello,

Now you cannot connect to Oracle simultaneously in different modes (OCI and Direct).
We know about this problem, we are working on it.

dados
Posts: 82
Joined: Thu 18 Aug 2005 14:06

Re: Direct mode and oci mode in parallel -> alternated connection closing

Post by dados » Sun 15 Sep 2013 16:34

Also if you open one direct session and call DetectOCI and open another direct session then the first direct session is closed...

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Direct mode and oci mode in parallel -> alternated connection closing

Post by AlexP » Mon 16 Sep 2013 12:24

Hello,

DetectOCI is an internal method not designed for calling from an application. Thereafter, access to this method will be closed.

sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Re: Direct mode and oci mode in parallel -> alternated connection closing

Post by sinys » Tue 17 Sep 2013 15:38

We use DetectOCI and InitOCI like

Code: Select all

            try
              if not LoadedOCI then
                DetectOCI;
            except
            end;

            try
              if not OCIInited then
                InitOCI;
            except
            end;
for obtaining OracleHomes and TNS Names list.
How we can obtaining TNS Names if you make DetectOCI private?

Speed of call DetectOCI between 300msec and 1sec. If you can increase speed of this procedure, please do it because it affects on application start speed.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Direct mode and oci mode in parallel -> alternated connection closing

Post by AlexP » Thu 19 Sep 2013 09:21

Hello,

As I wrote earlier, these methods won't be available in the next version, therefore you will have to define the presence of installed clients by yourself. You can define the presence of installed clients by analyzing the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE registry branch

Post Reply