Chinaunix

标题: 求助 程序执行时出现" Transaction not available" 错误 [打印本页]

作者: 寒铃    时间: 2007-09-06 17:38
标题: 求助 程序执行时出现" Transaction not available" 错误
请教大家一个问题,我用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.
请问大家该如何修改数据库, 并不影响原有程序.
作者: ivhb    时间: 2007-09-06 18:25
你要连接的数据库没有事务,因此会有这个错误。
修改数据库为日志模式。
作者: zhangshebao    时间: 2007-09-06 21:27
ontape -s -U 数据库名
作者: 寒铃    时间: 2007-09-07 08:51
好的,问题解决了,谢谢了!!!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2