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

本文介绍如何在Windows环境中使用ProcessMonitor工具跟踪ocssd.exe进程,以诊断Oracle CSS服务遇到的问题,例如服务卡在启动状态或CSS创建问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


翻译自:
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"之后,会出现相关信息,下图是举例:



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值