Oracle TNS is a communication protocol that facilitates communication between Oracle databases and applications via networks. Oracle TNS is often used with other Oracle services such as Oracle DBSNMP, Oracle Databases, Oracle Application Server, Oracle Enterprise Manager, Oracle Fusion Middleware, Web servers, and many others. It provides security through the application of different levels of encryption and error reporting and logging capability.
In Oracle RDBMS, a System Identifier (SID) is a unique name that identifies a particular database instance. In fact, a database can have multiple instances, each with its own System ID. Ex. In an Oracle RAC environment, a single physical database is accessible from multiple Oracle instances, spread across different nodes in a cluster. Each instance has its own unique SID, but all instances share the same set of database files. This configuration is used to provide scalability and high availability. SIDs are an essential part of the connection process, as they identify the specific database instance to which the client wishes to connect.
Port
1521 TCP
Oracle TNS
Config File
In $ORACLE_HOME/network/admin/:
tnsnames.ora : Each database or service has a unique entry in the tnsnames.ora file, containing the information necessary for clients to connect to the service. The entry consists of a name for the service, the network location of the service, and the name of the database or service that clients must use when connecting to the service. In other words, it resolves service names into network addresses, telling clients how to find the databases.
listener.ora: Is a server-side configuration file that defines the properties and parameters of the listening process, which is responsible for receiving incoming client requests and forwarding them to the appropriate Oracle database instance. In other words, it configures the listener, which is the program that sits on the server and listens for connection requests from clients, telling the server how to listen for client requests.