how to use direct mode at oraccle RAC

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
daizhicun
Posts: 109
Joined: Thu 21 Jan 2010 11:49

how to use direct mode at oraccle RAC

Post by daizhicun » Mon 13 Aug 2012 03:34

for example :
My oracle use RAC;

in a client PC, my tnsnames.ora is:

TEST=
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.101)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.102)(PORT=1521))
)
(CONNECT_DATE = (SERVER_NAME=TEST)
)
)

SO ,in direct mode , k only can use one of server's ip ;

begin
UniConnection1.SpecificOptions.Add('Oracle.Direct=True');
UniConnection1.Username := 'xxx';
UniConnection1.Password := 'xxx';
UniConnection1.Server := '192.168.1.101:1521:sn=TEST';
end;

I don't know how to use RAC in direct mode;

can i set:

UniConnection1.Server := '(192.168.1.101:1521)(192.168.1.102:1521):sn=TEST';

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

Re: how to use direct mode at oraccle RAC

Post by AlexP » Mon 13 Aug 2012 07:38

hello,

Presently, the RAC technology is not supported in the Direct mode (automatic server switch). You can connect to one of the servers only. Full support of RAC is planned for one of the next versions.

Daril
Posts: 27
Joined: Fri 07 Oct 2011 09:58

Re: how to use direct mode at oraccle RAC

Post by Daril » Mon 24 Mar 2014 09:00

Hi,
I wonder to any progress in RAC support for Direct Mode or still this option is not supported.

Than you Daril

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

Re: how to use direct mode at oraccle RAC

Post by AlexP » Mon 24 Mar 2014 13:51

No, this feature is not yet implemented.

cosullivan
Posts: 5
Joined: Fri 24 Aug 2012 07:20

Re: how to use direct mode at oraccle RAC

Post by cosullivan » Sun 03 Aug 2014 23:55

Hi,

Do you have any timeline on when RAC support under Direct Mode will be available? Is it still in the plan?

Thanks,
Cain

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

Re: how to use direct mode at oraccle RAC

Post by AlexP » Tue 05 Aug 2014 09:18

The next UniDAC version will include a possibility to specify a server both as a record from the tnsnames.ora file and as a list of nodes (ip,port). UniDAC will attempt to connect to the first node in turn.

cointec
Posts: 50
Joined: Fri 11 Dec 2015 11:02

Re: how to use direct mode at oraccle RAC

Post by cointec » Thu 25 Feb 2016 10:48

Does the current version of Oracle supports RAC in directo mode?

If yes, is there any example?

Thank you

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

Re: how to use direct mode at oraccle RAC

Post by AlexP » Thu 25 Feb 2016 11:41

To connect to RAC, you should set the following Server property:

Code: Select all

scott/[email protected],n2.domain:PORT1,PORT2:SID

cointec
Posts: 50
Joined: Fri 11 Dec 2015 11:02

Re: how to use direct mode at oraccle RAC

Post by cointec » Fri 26 Feb 2016 13:53

Thank you, then when the connection is lost, UniConnection reconnects automatically to the second, third server?

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

Re: how to use direct mode at oraccle RAC

Post by AlexP » Tue 01 Mar 2016 10:36

Yes, if you set the RetryMode variable to rmReconnect or rmReconnectExecute in the onConnectionLost event handler, then on connection loss with one node there will occur an attempt to connect to the next node.

Post Reply