Oracle7 Administrator's Reference for UNIX
Oracle NIS Native Naming Adapter
Configuring Clients
The NIS Native Naming Adapter must be installed on all clients and servers that will use NIS for name resolution.
Resolve Oracle Service Names
Add the following entries to the sqlnet.ora file:
native_names.use_native=true
native_names.directory_path=(nis)
The client's name requests will be resolved in CDS instead of a local tnsnames.ora file.
Configuring NIS Servers to Support the NIS Adapter
Before you configure servers to support the NIS Native Naming Adapter, verify that NIS is configured and running on the NIS servers that resolve Oracle database service names.
Add the tnsnames Map to the NIS Maps
Perform the following steps to add the tnsnames map to the NIS maps:
1. Use the network manager to configure the Oracle database service names and addresses in your network. Select the NIS naming adapter on the Native Naming page in the "Client Profile in Network Manager" section of the "Entering Component Information" chapter in the Oracle Network Manager Administrator's Guide.
A native.ora file is created when you generate configuration files from the network manager. This file is used as input to tns2nis when you load Oracle service names into the native naming service. Do not alter this file.
Note: Keep a copy of the native.ora file in your $TNS_ADMIN or $ORACLE_HOME/network/admin directory. You may use this file again to load Oracle service names into the NIS map.
2. Use the tns2nis program supplied with the NIS adapter on the Oracle Installer tape or disk to convert the native.ora file to tnsnames. For example, if native.ora is in the current directory, enter the following on the command line:
% tns2nis native.ora
If native.ora is not in the current directory, use a full pathname to specify its location. For example, use /etc/native.ora or $ORACLE_HOME/network/admin/native.ora.
The tnsnames map is written in the current directory.
3. Copy tnsnames map to the NIS server, if it is not already there.
4. Have the person responsible for NIS install the tnsnames map using the makedbm NIS program.
The makedbm program converts tnsnames to two files that the NIS server can read. The location of these files depends on your operating system.
Verify the tnsnames Map Installation
To verify that the server is installed properly, enter:
% ypmatch global_database_name tnsnames
For example:
% ypmatch payroll.world tnsnames
A message similar to the following is displayed, giving the length, followed by the address:
99 (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)
(HOST = garlic)(PORT = 1999)))
(CONNECT_DATA=(SID=DIRPROD)))