简体   繁体   English

使用DOA在繁重的DB负载下进行Delphi-7 Oracle-11g通信

[英]Delphi-7 Oracle-11g communication under heavy DB load using DOA

I have a problem that tough it might be found in other environments I would describe in the one I'm working on. 我有一个问题,那就是在我正在研究的其他环境中可能很难找到它。 Delphi 7 App running over Windows 7 64 DOA 4.7 Direct Oracle Access Component Oracle 11g 在Windows 7 64 DOA 4.7上运行的Delphi 7应用程序直接Oracle Access组件Oracle 11g

The application has a main window with a menu that opens a variety of forms. 该应用程序有一个带有菜单的主窗口,该菜单可打开多种形式。 When opened, these forms usually retrieve some data from the Oracle DB. 打开后,这些表单通常会从Oracle DB中检索一些数据。 Under normal DB server load, the response is adequate. 在正常的数据库服务器负载下,响应足够。

The problem arises when there's a heavy load on the server and the response takes more time. 当服务器上的负载很重并且响应需要更多时间时,就会出现问题。

In this case the following happens: 在这种情况下,将发生以下情况:

  • When the Form is launched, if it takes over a few seconds to retrieve the data, the form shows a "not responding" message on top, then the forms with the data goes behind the main form. 启动表单时,如果花费几秒钟的时间来检索数据,则表单顶部会显示一条“无响应”消息,然后包含数据的表单就会落后于主表单。

  • After the retrieve operation is completed the form works as intended, but has that annoying behavior of “going behind”. 检索操作完成后,表单将按预期工作,但具有“落后”的烦人行为。

Any Ideas? 有任何想法吗? I have the Delphi sources. 我有Delphi资源。

I finally arrived at a solution accepted by the customer. 我终于找到了客户认可的解决方案。 In HKEY_CURRENT_USER > Control Panel > Desktop I added a registry entry type string (REG_SZ) named “HungAppTimeout” and value 50000 As the app runs in Citrix over Windows 2012 the new key was added to each user. 在“ HKEY_CURRENT_USER”>“控制面板”>“桌面”中,我添加了一个名为“ HungAppTimeout”的注册表项类型字符串(REG_SZ),值为50000。该应用程序在Citrix over Windows 2012上运行时,新密钥已添加到每个用户。 What this does is simply extend the time that windows takes before "ghosting" the app window and show a "not responding" caption. 这样做只是延长了Windows对“重影”应用程序窗口并显示“无响应”标题之前所花费的时间。 Now its 50 sec. 现在是50秒。 compared to the 5 sec. 相比5秒 default. 默认。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM