您的位置:首页 > 数据库 > Oracle

[翻译自MOS文章]在windows上怎么在os级别跟踪CSS以便诊断OracleCSService的问题?

2017-11-30 18:03 501 查看
翻译自:

How to trace CSS at OS level in Windows to diagnose OracleCSService issues (文档 ID 833811.1)

---译者注:本文提到了localconfig命令,

---请注意,localconfig仅仅适用于单机环境,不适用于rac环境.

---因此,严禁在rac环境中执行localconfig命令.

目标:

在Windows环境中,由于一些CSS问题,比如说:CSS服务卡在"Starting"状态或者CSS建立问题,

我们可以在OS层面跟踪ocssd.exe以便诊断该问题.

解决方案:

1.第一,通过Service 或命令行"net stop OracleCSService" 来stop掉挂起的css进程

对于CSS建立的问题,运行"%ASM_HOME%/bin/localconfig delete"命令来删除掉CSS

2.为了trace CSS/ocssd.exe进程,我们使用Microsoft提供的"Process Monitor"工具.

该工具的网址为http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx

译者注:如上网址现在已经访问不了,

请访问https://docs.microsoft.com/zh-cn/sysinternals/downloads/procmon获得该工具.

3.运行procmon.exe以启动"Process Monitor"工具

4.在"Process Monitor"工具中,在菜单栏中,点击"Filter"菜单下的"Filter"子菜单,

"Process Monitor Filter"窗口会弹出来.

5.在Filter窗口中,

  set "Process Name" is "ocssd.exe" then "Include". 

  Click "Add" and "Apply". 

  For CSS creation issue, create an additional filter with "Process Name" is "localconfig" then "Include". Click "Add" 

 and "Apply".

然后Remove the other unneeded filters. 

6.在Process Monitor运行之后,启动CSS服务

  For CSS creation issue, recreate CSS by "%ASM_HOME%/bin/localconfig add" command. 

7.当CSS卡住或者localconfig 失败的时候,检查Process Monitor中的输出.

  下拉到输出的最后,并检查哪些不是"SUCCESS"的Result列.比如"PATH NOT FOUND"

8. 
Check the whole entry to get the details of the errors,
and verify/correct the corresponding configurations.
For example: CSS may be using wrong binaries due to OS environment variable ORACLE_HOME was set to a wrong/invalid home.
In this case, the results would show "PATH NOT FOUND" and/or "FILE NOT FOUND".
Thus, correcting/removing the OS environment variable setting would fix the issue


9.If Oracle Support assistance is needed for reviewing the Process Monitor output, 

please save the output to a CSV file by selecting Menu -> File -> Save 

and selecting the CSV format. Upload the output file to the SR.

译者注:在过滤出来的结果中右击,会弹出菜单,第二个子菜单就是"Stack",点开"Stack"之后,会出现相关信息,下图是举例:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐