打开 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();
有人有同样的问题吗?或者一个解决方案?
此致