Script to find the sid and serial # of the session holding specific object table/trigger with status
Hi all
Good day
Background of my issue - I'm getting blocking session when I run rebuild index online on my database. During that time there are no jobs running on the database(basically sunday night , quite time).
When investigated further I see that the blocking is happening on a specific table/object when rebuilding is happening on a specific index related to that table and the session is inactive .
Need the following
1. How can I proactively get the sid ,serial# of the session which is holding this object before the rebuild index starts so that I can kill that session .