Db2 – How to stop a db2 instance properly

db2db2-luw

I have a db2 instance, and I need to stop it properly, clean, without any db2stop force. I need this in order to restart it fast in a batch process.

I am completly sure there are not connections or active databases; however, the instance does not stop. Attached, there is an image that shows this behaviour.

enter image description here

What can I do? what is using the instance that produces the SQL1025 error?

Best Answer

You need to deactivate all active databases first, in your case

db2 deactivate db ???????

before stopping the instance. db2stop force does that for you, so I'm not sure what's wrong with simply using the force option.