杀掉用户连接oracle进程的脚本

ps -ef | grep oracle | grep LOCAL=NO | grep -v grep | wc -l

ps -ef | grep oracle | grep LOCAL=NO | grep -v grep | awk ‘{print $2}’ | xargs kill -9

参考资料:

alter index rebuild online引发的血案

Comments are closed.