oracle中tnslsnr进程,查找处理oracle数据库中僵死进程

查找数据库中僵死进程

Col terminal format a20

select pid, spid, username, terminal, program

from v$process

where addr not in (select paddr from v$session);

杀进程:

Shutdown abort之前应该杀掉的一些进程:

ps -ef | grep ora | grep LOCAL=NO |cut -c 9-15 |xargs kill -9

杀掉全部LOCAL=No的Oracle进程:

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

杀指定一台机器过来的连接

select 'kill -9 ' || spid  from v$process where addr in (select paddr from v$session where machine LIKE 'ACCT_APP%');

查看是否有僵死进程

select spid from v$process where addr not in (select paddr from v$session);

杀僵死进程

select 'kill -9 ' || spid  from v$process where addr  not in (select paddr from v$session );

察看操作系统级的制定相关进程

rzyzdb2:/oracle/app/oracle/product/9.2.0/network/admin>ps -ef |grep lsnr

oracle 192870 168578   0 12:16:13  pts/9  0:00 grep lsnr

oracle 254244 274714   0 11:06:44  pts/0  0:00 lsnrctl

oracle 242390      1   0 11:06:57  pts/0  0:00 /oracle/app/oracle/product/9.2.0/bin/tnslsnr LISTENER -inherit

杀掉不正常的进程

kill -9 242390

杀会话

ALTER SYSTEM KILL SESSION ', ';

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值