Question: I want to know what the
service_name parameter does in the tnsnames.ora
file.
Answer:
The the
service_name is used to register an
instance with the listener. In most all cases, Oracle
recommends that the value of the service_name be the same as
the ORACLE_SID. However, a
service_name can point to more
than one instance, and the DBA can gen-in additional ORACLE_SID
values
into a
service_name .
Also see these differences between
oracle_sid and service_name.
The service_name is in the tnsnames.ora
file to allow you to register an instance with the listener:
mysid=
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = myserver)
(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = mysid)
)
)