Oracle中tnsnames.ora配置
程序员文章站
2024-04-03 22:49:04
...
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