在打开Oracle连接时,我在输出窗口中看到了一些异常。
Exception occurred: "OracleInternal.NotificationServices.ONSException" in Oracle.ManagedDataAccess.dll我将Oracle管理驱动程序更新为最新版本,但仍然得到了它。
我没有在机器上配置任何负载平衡或ONS服务。跟踪显示了以下例外情况:
2019-09-10 10:47:12.500352 TID:5 (PRI) (SVC) (ERR) OracleONSNotificationManager.RegisterForNotification() (txnid=n/a) OracleInternal.NotificationServices.ONSException: ONS: No node lists were configured
bei OracleInternal.NotificationServices.ONS..ctor(String config)
bei OracleInternal.ServiceObjects.OracleONSNotificationManager.RegisterForNotification(String serviceName, String databaseName, Int32 timeout, String eventTypeFromDb, String onsConfigFromDb)当我像这样打开连接时,会引发错误:
Connection = new OracleConnection(cnString + $";Password={passwordDecryptedSecureString.SecureStringToString()}");
Connection.OpenAsync();有人也有同样的问题吗?或者一个解决方案?
诚挚的问候
发布于 2022-08-26 18:09:18
为了消除异常,您需要显式地关闭HA和负载平衡。将;HA EVENTS=false;LOAD BALANCING=false添加到连接字符串中。
https://stackoverflow.com/questions/57870036
复制相似问题