【翻译自mos文章】使用Process Monitor 来跟踪windows下的系统调用(system calls)

参考自:

Tracing windows system calls via Process Monitor - truss equivalent for Windows (Doc ID 1447085.1)

适用于:

Oracle Database - Enterprise Edition - Version 8.1.7.0 to 11.2.0.3 [Release 8.1.7 to 11.2]

Information in this document applies to any platform.

解决方案:

1. Process Monitor 介绍:

Process Monitor 是windows下的一个高级监控工具,该工具可以显示实时文件系统,注册表,进程和线程活动。

Process Monitor的特征是:广泛的事件属性,比如session ids 、user  name,可信的进程信息,全部的线程stacks with integrated symbol support for each operation,同步的写入日志到文件等等。

2. Process Monitor的下载:

http://technet.microsoft.com/en-us/sysinternals/bb896645

3. Process Monitor的工作:

当你启动Process Monitor后,Process Monitor会启动对  来自所有 running application 的system calls 的跟踪。

下面是被监控的event classes 的列表(list)

- File System

- Network

- Process

- Profiling

- Registry

对于每个event,Process Monitor显示了如下信息:

操作:正在被执行的操作。

路径:操作所在位置,比如file的path,或者注册表键值(registry key)。

结果:操作的结果。

细节:操作的更一步的细节。

4. 跟踪单个application的方法

Process Monitor 提供非常丰富的过滤功能,这些功能允许用户来缩小跟踪到一个指定的标准。

使用如下之一的方法来建立一个filter:

- Open Filter menu > Select filter.

- Click Ctrl+L

- Click the filter icon (cone) from the toolbar.

当开启一个filter windows后,遵守下面的steps:

a. 从first drop down list中,选择Process name,或者 选择PID

b. 从second drop down list中,选择操作符(operator)

c. 填入process name or  PID

d. 点击add 按钮

5.快速应用程序tracing

为了快速trace 一个application(区别于writing down the filter manually),点击sniper 图标,然后drag 到应用窗口。

6.跟踪一个单独的thread

Each oracle process is represented as a windows Thread, invoked by a single windows process.

To trace a single thread, select TID, then write down the thread id and click apply.

To get oracle session thread id, Join v$session and v$process to get SPID, which maps to windows thread ID:

select a.username, a.osuser, b.spid

from v$session a, v$process b

where a.paddr = b.addr

and a.username is not null;

7. Resetting the filter.

To reset the filter and return to application default, do any of the following:

1. From filter menu, select Reset Filter.

2. Press Ctrl+R

8. Further reading.

For more information about Process Monitor utility, Please check utility‘s help, by clicking the help menu.

时间: 2024-11-07 14:57:36

【翻译自mos文章】使用Process Monitor 来跟踪windows下的系统调用(system calls)的相关文章

【翻译自mos文章】oracle支持在RDBMS HOME 下的 符号链接( Symbolic Links)吗?

oracle支持在RDBMS HOME 下的 符号链接( Symbolic Links)吗? 參考原文: Does Oracle support Symbolic Links in the RDBMS home? (Doc ID 813116.1) 适用于: Oracle Server - Enterprise Edition - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2] Oracle Server - Standard Edition

【翻译自mos文章】注意: ASMB process exiting due to lack of ASM file activity

注意: ASMB process exiting due to lack of ASM file activity 参考原文: NOTE: ASMB process exiting due to lack of ASM file activity (Doc ID 754110.1) 适用于: Oracle Server - Enterprise Edition - Version 10.1.0.2 to 11.2.0.4 [Release 10.1 to 11.2] Information in

【翻译自mos文章】11gR2中的asm后台进程

11gR2中的asm后台进程 参考原文: ASM Background Processes in 11.2 (Doc ID 1641678.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.4 [Release 11.2] Information in this document applies to any platform. 1 ASMB - ASM Background Process 与as

【翻译自mos文章】升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息

注:与本文有关的文章为:http://blog.csdn.net/msdnchina/article/details/43763927 升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息 翻译自mos文章:NUMA warning message appear after upgrade to 11.2.0.4 (文档 ID 1600824.1)1 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.4 and

【翻译自mos文章】在win2003 sp1下,遇到无法解释的数据库性能下降

翻译自mos文章:在win2003 sp1下,遇到无法解释的数据库性能下降 Unexplained Database Slowdown Seen on Windows 2003 Service Pack 1 (Doc ID 464683.1) Applies to: Oracle Server - Enterprise Edition - Version 9.2.0.1 to 11.1.0.6 [Release 9.2 to 11.1] z*OBSOLETE: Microsoft Windows

【翻译自mos文章】怎么样kill 一个被挂起的自动物化视图刷新job?

怎么样kill 一个被挂起的自动物化视图刷新job? 参考原文:How to kill a hung automated materialized view refresh job (文档 ID 341842.1) 适用于: Oracle Server - Enterprise Edition - Version 8.1.5.0 to 10.2.0.5 [Release 8.1.5 to 10.2] Information in this document applies to any plat

【翻译自mos文章】控制OGG Director 中Repository Table 保留几天记录的参数

控制OGG Director 中Repository Table  保留几天记录的参数 翻译自mos文章: Can I Purge The Director "STATSENTRYB" Repository Table? (Doc ID 971709.1) QUESTION My Director Repository Table "STATSENTRYB" has grown to more than 100,000 rows. Is there a way to

【翻译自mos文章】得到正在运行job的 session id

得到正在运行job的 session id 参考原文: How to get the session Id of the Running Job (Doc ID 1604966.1) 适用于: Oracle Database - Enterprise Edition - Version 9.2.0.8 and later Information in this document applies to any platform. 目标: 怎么得到正在运行job的session id --->注意:

【翻译自mos文章】从远程机器连接到windows上的db时报错ora-12170

从远程机器连接到windows上的db时报错ora-12170 参考原文: Windows: ORA-12170 Attempting to Connect from Remote Client (Doc ID 748461.1) 适用于: Oracle Net Services - Version 9.2.0.1 to 11.2.0.3 [Release 9.2 to 11.2] z*OBSOLETE: Microsoft Windows Generic Windows Microsoft W