在VS2008中创建一个数据源时,提示以下错误
“ORA-12504:tns:监听程序在 CONNECT_DATA中未获得SERVICE_NAME”
本机安装ORACLE客户端,找出以下路径的文件D:appxuefen.lvproduct11.2.0client_1 etworkadmin nsnames.ora
# tnsnames.ora Network Configuration File: D:applvproduct11.2.0client_1
etworkadmin nsnames.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即可