好象可以限制数据库的Cache Size.
后面知道的跟上...
后面知道的跟上...
解决方案 »
- 庆祝Delphi2009发布,放分100,啥时候发,啥时候揭帖,不发布的话,烦请斑竹删此帖。
- 排序问题
- 如愿以偿,新年散分来了!!!!!
- 关于DBDEMOS的困惑
- 怎么样显示树形结构?
- 怎样使label控件的文字上下左右均置中
- 大家帮个忙,我朋友被木马困扰,有了解知道怎么摆脱的都进来聊聊。。我会再开一个贴
- Stream.WaitForData(60000)里执行时获得的流为什么为空?
- 为什么此程序会让我每次都必须关掉delphi,才可以从死循环中解脱:(错在哪?
- 求:idudpserver打开ThreadedEvent后出现"尚未调用CoInitialize"
- 真的需要帮助:这个问题已有上十天了.但一直没有满意的解答:怎样实现当窗口最大化时,其上控件与窗体的比例不变?
- 给表纪录定位的属性是什么?
数据控件用完后要CLOSE
Server:win2K Server+Com+/Mts+oracle816
Client:95/98/2K,
只要自己作的应用服务器一直开着,时间长了就出现这个问题
后来的解决办法是不一直开着服务器端,只要所有用户都退出后
服务器端自动退出,第一个进入的人稍微多等待一会会。这是不得已而为之
你的系统难道24小时都要提供服务?
2 Cached updates are written to the database (Phase 1).If the database write is successful:1 Database changes are committed, ending the transaction.
2 Cached updates are committed, clearing the internal cache buffer(Phase 2).If the database write fails database changes are rolled back, ending the transaction.The two-phased approach allows for effective error recovery, especially when updating multiple and interrelated datasets (for example, the datasets associated with a master/detail form).
with ZOraSqlQuery3 do
begin
close;
sql.clear;
sql.add('delete from tab_message where message_state=27 and senderer like '''+senderer+'''');
execsql;
end;
但不是最佳,我猜想这可能是你的问题所在!
把所有的数据更新代码放进事务里,提交时不
要用ExeSql,不要怕代码长,用一个好的提交模式:
with CustomerQuery do
begin
Database1.StartTransaction;
try
ApplyUpdates; {try to write the updates to the database};
Database1.Commit; {on success, commit the changes};
except
Database1.Rollback; {on failure, undo the changes};
raise; {raise the exception to prevent a call to CommitUpdates!}
end;
CommitUpdates; {on success, clear the cache}
end;
你可以试一下,看问题能不能得到解决,我以前写代码的时候都是
这样提交的,不过没注意过有没有此类问题,希望对你有帮助!!!
to tonylover:你的方法不能治本啊!
try .....
finally.....
语句
比如:
query1:=query.create;
query1.close;
query1.add(insert into table1 values('aa','bb');
query1.execsql;
query1.free;