Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle
If you want exclusive lock on any table, you need to make sure that no other session is accessing it. This happens when you want to run DDL or any ALTER statements, that internally needs exclusive lock. Following script will to find the blocker session and provide killing statement for clearing locks. col owner format…
