oracle 数据库网络连接 配置文件Tnsnames.ora
TNSNAMES.ORA is a SQL*Net configuration file that defines databases addresses for establishing connections to them. This file normally resides in the ORACLE HOME \NETWORK\ADMIN directory. Configuring TNSNAMES.ora Add the following entry in your TNSNAMES.ORA file and change the values shown in brackets to suit your environment: <addressname> = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(Host = <hostname>)(Port = <port>)) ) (CONNECT_DATA = (SERVICE_NAME = <service_name>) ) ) Here is a completed example: ORA11 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127