【发布时间】:2019-04-03 06:32:37
【问题描述】:
我有一个 Windows 服务应用程序,每分钟连接一次数据库。有时我会收到此错误:
ORA-20110: ORA-06508: PL/SQL: 找不到被调用的程序单元
解决方案已关闭并在 plsql 中重新连接数据库,但我想在应用程序端执行此操作。
所以我需要禁用所有连接池并尝试重新连接数据库。 我如何使用 devart 做到这一点?
这是我的连接
this.ConnectMode = OracleConnectMode.Default;
this.Direct = true;
this.Close();
this.Server = ConfigurationManager.AppSettings["db_hostname"];
this.Port = Convert.ToInt32(ConfigurationManager.AppSettings["db_port"]);
if (db_connection_type == "SID")
this.Sid = ConfigurationManager.AppSettings["db_sid"];
else
this.ServiceName = ConfigurationManager.AppSettings["db_sid"];
this.UserId = db_username;
this.Password = db_password;
this.Open();
【问题讨论】:
标签: c# oracle database-connection connection-pooling devart