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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -