Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TNS Connection String for Oracle 11g RAC

RiazDec 31 2013 — edited Dec 31 2013

Dear All,

In earlier versions, for 2-Node Oracle RAC, we used to use the connection string (in tnsnames.ora) like:

<TNS Name> =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = VIP-Node1)(PORT = <PortNumber>))

      (ADDRESS = (PROTOCOL = TCP)(HOST = VIP-Node2)(PORT = <PortNumber>))

      (LOAD_BALANCE = yes)

    )

    (CONNECT_DATA =

      (SERVICE_NAME = <ServiceName>)

    )

  )

Now with Oracle 11g RAC, we have SCAN in place; how the TNS Entry will look like? Will it be like:

<TNS Name> =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = SCAN Name)(PORT = <PortNumber>))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = <ServiceName>)

    )

  )

Regards,

Muhammad Riaz

This post has been answered by JohnWatson on Dec 31 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2014
Added on Dec 31 2013
2 comments
830 views