“ORA-22990:LOB定位器无法扩展事务处理”是怎么会事,怎么解决

BS 2003-12-12 01:46:08
如题
...全文
253 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
BS 2003-12-12
  • 打赏
  • 举报
回复
谢谢帮忙
yujiabian 2003-12-12
  • 打赏
  • 举报
回复
ORA-22990 LOB locators cannot span transactions

Cause: A LOB locator selected in one transaction cannot be used in a different transaction.

Action: Reselect the LOB locator and retry the operation.

BS 2003-12-12
  • 打赏
  • 举报
回复
执行提交的时候出现的;
我有一个字段是Blob型的数据;
提交时候如果没有这个字段可以提交,有这个字段就会出错;
代码如下,是delphi的
var
Buf:TMemoryStream;
begin
Table1.Append;
table1.FieldByName('FldSortID').asinteger:=0;
table1.FieldByName('FldGBFlag').asinteger:=0;
table1.FieldByName('FldName').asString:='adsfsdf';
table1.FieldByName('FldFrmID').asinteger:=0;
Buf:=TMemoryStream.Create;
Image1.Picture.Bitmap.SaveToStream(buf);
Buf.Position:=0;
TBlobField(Table1.FieldByName('FldIcon')).LoadFromStream(Buf);
Table1.Post;
end;
iwantsay 2003-12-12
  • 打赏
  • 举报
回复
把问题写清楚一点啊?

执行什么程序时遇到的?
BS 2003-12-12
  • 打赏
  • 举报
回复
up

17,140

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧