今天应用报错,尝试重启db2服务,报错了:
[db2inst1@localhost db2dump]$ db2stop
03/16/2012 14:13:04 0 0 SQL1025N The database manager was not stopped because databases are still active.
SQL1025N The database manager was not stopped because databases are still active.
之后执行强制关闭:
[db2inst1@localhost db2dump]$ db2stop force
03/16/2012 14:14:52 0 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
关闭成功了
再次启动数据库:
[db2inst1@localhost db2dump]$ db2start
03/16/2012 14:15:00 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
然后连接数据库报错了:
[db2inst1@localhost db2dump]$ db2
(c) Copyright IBM Corporation 1993,2007
Command Line Processor for DB2 Client 9.7.5
You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd
For general help, type: ?. </