ITPub博客

首页 > 数据库 > Oracle > WINDOWS ORACLE 后台进程

WINDOWS ORACLE 后台进程

原创 Oracle 作者:wmlm 时间:2009-01-12 17:19:42 0 删除 编辑
windows 平台下,查询ORACLE的线程[@more@]

1 下载并使用pslist工具,查看oracle.exe 所包含的线程
D:softPsTools2>pslist -d oracle

pslist v1.28 - Sysinternals PsList
Copyright ? 2000-2004 Mark Russinovich
Sysinternals

Thread detail for WW-HTJS:


oracle 2284:
Tid Pri Cswtch State User Time Kernel Time Elapsed Time
2640 9 927 Wait:Executive 0:00:00.015 0:00:00.125 0:01:08.265
860 8 1203 Wait:UserReq 0:00:00.015 0:00:00.046 0:01:07.609
1972 9 6 Wait:UserReq 0:00:00.000 0:00:00.000 0:01:07.375
1412 8 716 Wait:UserReq 0:00:00.000 0:00:00.046 0:01:02.078
3356 8 500 Wait:UserReq 0:00:00.000 0:00:00.015 0:01:01.765
556 8 583 Wait:UserReq 0:00:00.000 0:00:00.062 0:01:01.453
1920 9 263 Wait:UserReq 0:00:00.000 0:00:00.000 0:01:01.140
2552 8 534 Wait:UserReq 0:00:00.015 0:00:00.000 0:01:00.828
1400 9 7 Wait:UserReq 0:00:00.000 0:00:00.000 0:01:00.515
644 8 78 Wait:UserReq 0:00:00.015 0:00:00.015 0:01:00.203
2104 8 636 Wait:UserReq 0:00:00.000 0:00:00.000 0:00:59.859
2424 8 101 Wait:UserReq 0:00:00.000 0:00:00.015 0:00:59.546
584 10 7 Wait:Queue 0:00:00.000 0:00:00.000 0:00:58.593

2 登录数据库,查看线程ID所对应的后台进程名称
select p.PID, p.SPID, b.name
from v$process p, v$bgprocess b
where p.ADDR = b.PADDR;

1 2 1412 PMON
2 3 3356 DBW0
3 4 556 LGWR
4 5 1920 CKPT
5 6 2552 SMON
6 7 1400 RECO
7 8 644 CJQ0
8 9 2104 ARC0
9 10 2424 ARC1

3 如果查询客户端连接所对应的线程,比如某个连接占用过多资源
使用操作系统的 thread,关联v$process.spid进行查找。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/271063/viewspace-1016038/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: RMAN-06004 RMAN-20003
请登录后发表评论 登录
全部评论

注册时间:2008-04-08

  • 博文量
    398
  • 访问量
    3716787