Linux下查找并关闭进程
--有一个执行1000次的循环脚本,因为编辑错误导致无休止(1000次)的执行
rhels5532-> ./loadbalance.sh devdb 1000 ERROR: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER ERROR: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
--查找此进程
[root@rhels5532 ~]# ps aux | grep load | grep -v grep oracle 31854 0.0 0.0 4732 1036 pts/0 S+ 07:35 0:00 /bin/bash ./loadbalance.sh devdb 1000
--杀死指定进程
[root@rhels5532 ~]# kill 31854
--再次查看循环,已经被kill掉
rhels5532-> ./loadbalance.sh devdb 1000 ERROR: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER ERROR: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER Terminated rhels5532->