What should be in TNSnames?
Tesla, November 28, 2016 - 7:38 am UTC
Say I have the following tnsnames.ora in my two node RAC database,
DIVTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = DIVTEST-scan.DIVCORP.com)(PORT = 1721))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DIVTEST)
)
)
And I create a service as following:
Service_name – DIVTEST
Failover_type - Basic
Failover_method - session
Failover_retries – 180
Failover_delay - 5
and the service in running in both the nodes. Should I edit my tnsnames.ora (above mentioned) on my database server? like the below?
Or just have the service running in both the nodes will ensure TAF?
DIVTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = DIVTEST-scan.DIVCORP.com)(PORT = 1721))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = DIVTEST)
(FAILOVER_MODE=
(TYPE=session)
(METHOD=basic))))
2. Should the service-name in TNS and the service which I create for TAF using srvctl be the same?
November 29, 2016 - 1:08 am UTC
You dont need it in the tnsnames.ora. It can be managed by the service configuration