java - The requested operation cannot be performed on a file with a user-mapped section open -


i writing batch file command db2cmd/c /w /i db2 drop database xyz db2 , windows 7 through java. db2cmd unable delete database , returns error:

the requested operation cannot performed on file user-mapped section open

how fix this?

and there no open connections present while executing command command creating problem in windows 7.

it's possible there open connections database blocking operation. try issuing these commands first:

db2 connect xyz db2 quiesce db immediate force connections 

here details on quiesce command.


Comments