How to determine sessions with invalid package states

All,

Is it possible to write a query to identify sessions that are holding
invalidated package states?  We are looking at issues around code
migrations.  The goal is to only recycle sessions that we know will have
problems.  Any ideas?

-- 
Rumpi Gravenstein

Other related posts: