ORA-12504:tns:监听程序在 CONNECT_DATA中未获得SERVICE_NAME
在VS2008中创建一个数据源时,提示以下错误
“ORA-12504:tns:监听程序在 CONNECT_DATA中未获得SERVICE_NAME”
本机安装ORACLE客户端,找出以下路径的文件D:\app\xuefen.lv\product\11.2.0\client_1\network\admin\tnsnames.ora
# tnsnames.ora Network Configuration File: D:\app\lv\product\11.2.0\client_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
SEINESCM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.1.116)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = SEINESCM)
)
)
解决方案:
将图中的IP修改为SEINESCM即可
ORA-12504:tns:监听程序在 CONNECT_DATA中未获得SERVICE_NAME,布布扣,bubuko.com
文章来自:http://www.cnblogs.com/Snowfun/p/3873181.html