revoke execute for advanced queueing packages hangs
Recently I have tried dropping some users and the drop would hang for as long as I would allow it and sometimes have some sessions blocking it or the drop itself blocking other sessions. The wait event seems to always be a library cache pin.
With some trial and error I have narrowed this down to when the user had execute privileges on a package that happened to be for Advanced Queueing. The user being dropped has no sessions and thus is clearly not using the package at the time, though other processes might be.
I've never seen this behavior going back to Oracle 6, so maybe it's some issue with 19c which we recently upgraded to. Though I can't find any bugs or other documents on this.