Skip to Main Content

Database Software

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!

tnsnames entry for different RAC servers with same name

kazyskiyn0wJul 15 2014 — edited Jul 17 2014

Hi All,

I have 1 RAC database called CPROD with 2 instances called CPROD1 and CPROD2.

the tnsnames.ora node 1 is:

CPRD1 =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.0.15.21)(PORT = 1522))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = CPRD1)

    )

  )

node 2 is:

CPRD2 =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.0.15.22)(PORT = 1522))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = CPRD2)

    )

  )

If I create another RAC database with different IPs, but with the same name called CPROD, and two instances CPROD1 and CPROD2, how can I change the names in the tnsnames.ora and listener.ora?

I created a tnsnames.ora with a different name

Node 1:

DPRD1 =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.0.15.31)(PORT = 1522))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = CPRD1)

    )

  )

but got error when connecting in s:qlplus remotely

conn system@DPRD1

ORA-12154: TNS

What am I doing wrong? Can someone help me to solve this issue?

Thanks

KZ

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2014
Added on Jul 15 2014
4 comments
2,105 views