我对新的TNS连接有异议。我已经将下面的代码添加到tnsnames.ora文件中。我可以使用SQL开发人员验证连接,它是完美的。
c0xlxx =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxxxxx)(PORT=xxxxxxxxx))
)
(CONNECT_DATA =
(SERVICE_NAME = xxxxxxx )
)
)我在BizTalk应用程序开发环境中做了同样的操作,当我在测试环境中使用BizTalk应用程序时,它正在工作,使用WCF-和URI oracledb://c0xlxx/它正在抛出错误The adapter failed to transmit message going to send port "WcfSendPort_LTMDBBindingtoAX_View_VW_JOB_DEPT_Custom" with URL "oracledb://c0xlxx/". It will be retransmitted after the retry interval specified for this Send Port. Details:"Microsoft.ServiceModel.Channels.Common.ConnectionException: ORA-12154: TNS:could not resolve the connect identifier specified ---> Oracle.DataAccess.Client.OracleException: ORA-12154: TNS:could not resolve the connect identifier specified帮助我。
发布于 2015-08-18 19:41:33
在TNS上有一些不同的字符串属性,您必须为您的情况示例寻找正确的字符串:
(CONNECT_DATA = (SERVER =专用) (SERVICE_NAME = xxxx) (SID = xxxx) )
您能否发送您输入的属性以在SQL中进行连接。是否确定是否通过SQL Oracle developer中的TNS协议进行连接?
在windows上尝试tnsping,命令您的是c0xlxx。此命令看起来像ping,但它用于oracle db服务器ping。
https://stackoverflow.com/questions/32072028
复制相似问题