9.4.11 - RAC server support is improved

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
IgorM
Posts: 4
Joined: Sun 20 Oct 2013 20:44

9.4.11 - RAC server support is improved

Post by IgorM » Fri 19 Sep 2014 18:02

Hi!
what is "RAC server support is improved" in new features list of ORACLe 9.4.11

Could you please explain?

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

Re: 9.4.11 - RAC server support is improved

Post by AlexP » Mon 22 Sep 2014 07:43

Hello,

The previous versions didn't support RAC servers in Direct Mode. Now you can specify several hosts or the full record from tnsnames.ora - then ODAC will attempt to connect to the specified hosts one by one (it will connect to the first available one).

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

Re: 9.4.11 - RAC server support is improved

Post by albourgz » Wed 25 Mar 2015 13:12

I use odac 9.4.14 - C++ builder pro XE6.

Now you can specify several hosts or the full record from tnsnames.ora .
How do I specify several hosts? Suppose I have n1.domain and n2.domain.
Should I type "n1.domain n2.domain" in server?

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

Re: 9.4.11 - RAC server support is improved

Post by AlexP » Thu 26 Mar 2015 07:36

Hello,

To connect to RAC, you should set the following ConnectionString:

Code: Select all

OraSession1.ConnectString := 'scott/[email protected],n2.domain:PORT1,PORT2:SID'

albourgz
Posts: 160
Joined: Wed 06 May 2009 12:17
Location: belgium

Re: 9.4.11 - RAC server support is improved

Post by albourgz » Thu 26 Mar 2015 11:14

OK I could connect.
As you said, it always connects to the same node (even with scan-name).

Do you think it will soon be feasible to achieve "load-balancing" / to be connected to a random node of the cluster?

If not, I seriously think about dynamically swapping the sequence of the nodes (on a random way) in the connectString at startup.

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

Re: 9.4.11 - RAC server support is improved

Post by AlexP » Fri 27 Mar 2015 09:21

ODAC connects to the first available server in the list. If you need access to RAC with all its features, you should use the Oracle client.

Post Reply