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

Oracle中tnsnames.ora配置

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 14:57:55
Original
1741 people have browsed it

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
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template