当前位置:Gxlcms > mysql > Oracle中tnsnames.ora配置

Oracle中tnsnames.ora配置

时间:2021-07-01 10:21:17 帮助过:187人阅读

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

人气教程排行