由于使用改变数据库日志模式(ondblog test_db buf / ontape -s -B),导致数据库被锁。出现329 ,178错误。我一开始尝试重启数据库,也解决不了该问题。下面说明如何解决该问题。
一、错误信息:
dbaccess test_db
329: Database not found or no system permission.
178: ISAM error: Database is locked; pending change to logging mode.
二、解决步骤
1、ondblog test_db unbuf log
ondblog complete, returning 0 (0x00)
2、ontape -s -L 0
Archive to tape device '/dev/null' is complete.
Program over.
3、ondblog test_db buf
ondblog complete, returning 0 (0x00)
4、dbaccess test_db
ok