Killing a stuck Oracle RDS Session

Sometimes you might have a session running over a link to another system and something happens on the source, the session carries on but is never released. All resources used by the session are locked - packages, table rows, etc....



On a physical machine the DBA might have to physically kill the underlying session at an OS level, but with Oracle RDS as a service there is no machine / OS.



Fortunately (and recently) there is now a way. It involves finding the session details and passing them into the rdsadmin_util package.

select SID, SERIAL#, STATUS from V$SESSION where USERNAME = '****';

begin
    rdsadmin.rdsadmin_util.disconnect(
        sid    => 3847,
        serial => 365);
end;
/


Good luck.

Comments

Popular posts from this blog

Recursively Delete files of the Same Name in S3

Python - datetime Formatting

ORACLE RDS granting select privileges to users.