To ensure proper connection to Oracle DBMS server for each computer with Oracle DBMS client, you must configure tnsnames.ora file located in[ORACLE_HOME]\network\admin directory. Configuring tnsnames.ora Specify Oracle DBMS server connection settings. To do this, add the following entry to tnsnames.ora file:
tns_name =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host_name)(PORT = port_number))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = service_name)
)
) Specify true values for the following parameters:
tns_name – Oracle DBMS server alias;host_name – Oracle DBMS domain name or IP address;port_number – server port for listening to client connections;service_name – database service name.
Example of tnsnames.ora file:
IWDM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = iwdm.example.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
) | Предупреждение |
|---|
| The tnsnames.ora file is format sensitive. If you copy an example to edit a file, make sure that the copied selection does not contain any blank strings. |
|