免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6364 | 回复: 3
打印 上一主题 下一主题

求助 程序执行时出现" Transaction not available" 错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-06 17:38 |只看该作者 |倒序浏览
请教大家一个问题,我用4GL写了一个程序,在编写程序的微机上运行正常,但是在有一台微机上运行时,出现
Transaction not available 错误,错误代码-256,该微机原来就装有informix online 7.23数据库,并运行
有其他程序, 通过查看源程序,出错的地方均执行了 begin 语句, 我在dbaccess下执行begin也出现同样
的错误.  查看提示如下:
-256 Transaction not available.
You cannot begin a transaction in this database because it does not
have a transaction log. In order to support transactions, you must
start a transaction log. With the INFORMIX-OnLine Dynamic Server, the
OnLine administrator uses the Databases screen of the Logical Logs menu
of DB-Monitor or ON-Monitor to start a transaction log. With other
database servers, use the START DATABASE statement.
请问大家该如何修改数据库, 并不影响原有程序.

论坛徽章:
0
2 [报告]
发表于 2007-09-06 18:25 |只看该作者
你要连接的数据库没有事务,因此会有这个错误。
修改数据库为日志模式。

论坛徽章:
0
3 [报告]
发表于 2007-09-06 21:27 |只看该作者
ontape -s -U 数据库名

论坛徽章:
0
4 [报告]
发表于 2007-09-07 08:51 |只看该作者
好的,问题解决了,谢谢了!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP