'Error is -database link of same name has an open connection Error

del_db='drop database link my_db_link' 
cur.execute(del_db)

This is a simple query to drop the link database which is executed in SQL developer but it getting error in python -

database link of same name has an open connection. 

Can anyone please help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source