When a row gets locked I querying the SID & Serial# from v$session and issuing the command ALTER SYSTEM KILL SESSION 'SID,SERIAL#' from system user.But the session most often does not get killed.Most of the times database needs to be shut down . Suggest alternative ways to get rid of the locks.