Add Oracle8i Net features to the tnsnames.ora file
Modify the tnsnames.ora file.
Add Oracle Network Features to tnsnames.ora File
Many database instances share a common database. A feature which was introduced in Oracle8i allowed a single service name to have several database instances defined. When connecting, Oracle will automatically fall back to the second host if the first host is not accepting connections. The connection attempts can be set to connect in the sequence of the addresses or randomly among the host names defined in the tnsnames.ora file.
Because a single service name can now define multiple database instances, the INSTANCE_NAME parameter is required to uniquely define the specified instance. This feature also requires you to implement client load balancing if you are setting up an OPS.
Be aware that client load balancing and connection load balancing are very different concepts. Client load balancing is the specification of multiple instances in an OPS service name. Connection load balancing refers to balancing incoming connections between MTS dispatchers on a single instance.
This lesson describes several of the new parameters you see in the tnsnames.ora file.
Look at the following MouseOver for a description of four new parameters. The image is a picture of the tnsnames.ora file, showing the placement of the four parameters.
The concept of adding multiple addresses to a TNS service entry originated with OPS, where multiple instances could service the same database. This concept has been extended for all Oracle8i database instances that have multiple listeners.
Warning! Manually editing the tnsnames.ora file may cause the Net Assistant to fail, especially in earlier releases of OEM. Oracle claims that they have fixed this issue, but be cautious! Most experienced DBA's do not use the GUI tool because they know the proper syntax.
As we know, Oracle8i has provided a new SERVICE_NAME parameter that allows the specification of multiple addresses for a single service. The address list might look like the following if the service were named MICKEY and there were listeners on port 152 and port 1526: