db2 - DROP DATABASE fails -
i have db2 database (let's call mydb
) delete. however, when db2 drop db mydb
back
sql1035n operation failed because specified database cannot connected in mode requested. sqlstate=57019
what doing wrong?
you should try following:
db2 quiesce db immediate db2 force application db2 drop database mydb
'quiesce' forces users off specified instance , database , puts quiesced mode. (https://www.ibm.com/support/knowledgecenter/ssepgg_10.5.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0008635.html)
'force application' forces local or remote users or applications off system allow maintenance on server. (https://www.ibm.com/support/knowledgecenter/ssepgg_10.5.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0001951.html)
if doesn't trick, 'db2stop' , 'db2start' after 'force application' , drop database
Comments
Post a Comment