I tried to duplicate a DEV database. But it returns the following error. However, I can do a backup and a restore and it would work. Would appreciate any help.
OperationalError: source database "DEV" is being accessed by other users DETAIL: There are 16 other sessions using the database.