To ensure proper connection to Oracle DBMS server for each computer with Oracle DBMS client, you must specify connection options. Choose one of the two options described below.Option 1. Configure 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.
| Информация | titleExample 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. |
Option 2. Specify TNS string representation from tnsnames.ora file as a database server. | Информация |
|---|
| title | Example of string representation |
|---|
| (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=iwdm.infowatch.ru)(PORT=1521))(CONNECT_DATA=(SERVER=dedicated)(SERVICE_NAME=iwtm))) |
|