SQL1015N The database is in an inconsistent state. SQLSTATE=55025

连接DB2数据库报错:SQL1015N The database is in an inconsistent state. SQLSTATE=55025
数据库处于不一致状态,这是由于数据库异常终止(inconsistent)引起的,重启数据库 restart database会做crash recovery ,做完Crash recovery之后会连接到数据库。
在这里插入图片描述
默认情况下,数据库crash之后,autorestart默认设置为ON,连库时会自动做restart db操作(即会自动做crash recovery);如果设置为OFF的话,连库操作不会做crash recovery
一般也可执行db2_kill 然后重启数据库。
db2_kill执行报/bin/ksh: bad interpreter解决

发布了52 篇原创文章 · 获赞 7 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/hyfstyle/article/details/99456944