在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即可