AWS Oracle RDS Kill session - ORA-01031
Apparently alter system kill session is failing with ORA-01031: insufficient privileges. In Oracle RDS even if you are using privileged account (rdsadmin) you still cannot use the default syntax.
Instead we need to execute rdsadmin.rdsadmin_util.kill procedure. Example below.
Instead we need to execute rdsadmin.rdsadmin_util.kill procedure. Example below.
SQL> alter system kill session '1261,5589' immediate;
alter system kill session '1261,5589' immediate
*
ERROR at line 1:
ORA-01031: insufficient privileges
SQL>
-------------------------------
SQL> begin
2 rdsadmin.rdsadmin_util.kill(
3 sid => 1261,
4 serial => 5589,
5 method => 'IMMEDIATE');
6 end;
7 /
PL/SQL procedure successfully completed.
SQL>
Comments
Post a Comment