如何避免使用“内存分配失败”失败后必须重新启动Delphi 32位应用程序。在数据库故障转移上?

发布于 2025-02-07 06:17:42 字数 370 浏览 2 评论 0原文

Delphi 32位应用程序失败,错误随机“错误:丢失了数据库连接。 “ 数据库故障转移。需要重新启动应用程序。如何避免重新开始?

我们对连接字符串进行了更改:MultiSubnetFailover = true,提供商= MSOLEDB.1在灾难恢复时始终支持可用性。我们配置了一个侦听器,并使用此侦听器名称连接到DB。理想情况下,DEPLHI应用程序应连接到辅助副本,并继续工作而无需重新启动。但是由于上述错误,它无法正常工作。每次进行手动故障转移时,都需要重新启动应用程序。

  • 32位Delphi App,Delphi版本5,OLEDB驱动程序18.3,SQL Server 2019年

还需要其他更改才能使这项工作?

A Delphi 32-bit application fails with errors randomly "Error: the database connection was lost.An existing connection was forcibly closed by the remote host " or "Error Code: -2147024882 memory allocation failure" on Database failover. Application restart is required. How to avoid the restart?

We made changes to the connection string: multisubnetfailover = true, provider = msoledb.1 to support Always on availability in case Disaster recovery. We configured a listener and Application connects to DB with this listener name. Ideally upon DB failover, deplhi app should connect to secondary replica and keep working without any restart. But it is not working because of above error. Application restart is required every time when we do manual failover.

  • 32 bit delphi app ,delphi version 5, oledb driver 18.3, sql server
    2019

Any other changes needed to make this work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文