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.
 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

Popular posts from this blog

ORA-16433: The database or pluggable database must be opened in read/write

Wait for unread message on broadcast channel - Blocking Sessions

ORA-14126 - While splitting max value partition