Home >Database >Mysql Tutorial >Oracle中tnsnames.ora配置

Oracle中tnsnames.ora配置

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 14:57:551739browse

D:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN的tnsnames.ora中增加如下配置 DEMO= (DESCRIPTION= (ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=218.17.160.22)(PORT=1521)) ) (CONNECT_DATA= (SERVICE_NAME=demo) ) ) cmd中查看是否连接成功

D:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN的tnsnames.ora中增加如下配置

DEMO =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 218.17.160.22)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = demo)
    )
)

cmd中查看是否连接成功的方法
sqlplus njkf/njkf@218.17.160.22/demo

用 tnsping 连接名  次数       更方便
plsql
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn