Little and Mickle

All things are difficult before they are easy.

导航

ora-00054 , alter system kill session 'id,serial#'

连接oracle运行drop table遇到了ora-00054的错误,提示资源正忙,需要提交transaction, 或者杀掉session,
可以通过下面的命令找到活跃的session,
select saddr,sid,serial#,paddr,username,machine,status from v$session where username is not null;

然后kill掉未提交的进程, sid是sid值,serial#是serial#值:

alter system kill session 'sid,serial#' ;

或者可以通过toad的DBA => Session browser 来kill session

posted on 2005-09-13 15:11  davidullua  阅读(3657)  评论(0)    收藏  举报