我对新的 TNS 连接有疑问。我已将以下代码添加到 tnsnames.ora 文件中。我可以使用 SQL Oracle developer 验证连接,非常完美。
c0xlxx =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxxxxx)(PORT=xxxxxxxxx))
)
(CONNECT_DATA =
(SERVICE_NAME = xxxxxxx )
)
)
我在 BizTalk 应用程序开发环境中做了同样的事情,它工作得很好。但是当我在测试环境中使用 WCF-Custom 适配器的 OracleDBBinding 和 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
帮助我。