db2执行创建数据库命令的时候,报错:SQL1047N The application is already connected to another database.详细信息如下:
[db2opt1@node112 bin]$ db2 create db ftz; SQL1047N The application is already connected to another database.
原因是我已经通过"db2 connect to "命令连接到一个数据库了,因此这个时候执行一下“db2 connect reset”释放掉当前连接就可以了。如下所示:
[db2opt1@node112 bin]$ db2 connect reset DB20000I The SQL command completed successfully. [db2opt1@node112 bin]$ db2 create db themis; DB20000I The CREATE DATABASE command completed successfully.