[翻译自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.
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"之后,会出现相关信息,下图是举例:
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"之后,会出现相关信息,下图是举例:
相关文章推荐
- 【翻译自mos文章】 在错误的从os级别remove掉 trace file 之后,怎么找到该trace file的内容?
- 【翻译自mos文章】 在错误的从os级别remove掉 trace file 之后,怎么找到该trace file的内容?
- 【翻译自mos文章】Windows Service Oracleremexecservice 是干什么的
- 【翻译自mos文章】Oracle GoldenGate 对IBM大型机 z/OS 2.1 和DB2 v11的支持
- 【翻译自mos文章】How to Set or Switch Oracle Homes on Windows (Doc ID 969581.1)
- 【翻译自mos文章】在windows平台上怎么启用Oracle database 企业版的partition?
- 【翻译自mos文章】怎么检查Oracle GoldenGate(OGG)的checkpoint file 是否被locked?
- 【翻译自mos文章】在Oracle 11.2 GI环境中,怎么备份与恢复OLR?
- 【翻译自mos文章】开启dblink的 oracle net trace/tracing --对dblink进行跟踪的方法
- 【翻译自mos文章】在Oracle单机数据库中定义database service
- [转自MOS文章]Windows 网络映射驱动器存放Oracle file的问题
- 【翻译自mos文章】怎么检查、启用、禁用 Oracle binary的option?
- 【翻译自mos文章】怎么检查Oracle Advanced Security Option 是否被安装上?
- 【翻译自mos文章】使用Process Monitor 来跟踪windows下的系统调用(system calls)
- 【翻译自mos文章】在Oracle单机数据库中定义database service
- 【翻译自mos文章】Oracle GoldenGate 怎么在源头的传输进程和目的端的server/collector进程之间分配 端口?
- 【翻译自mos文章】Oracle GoldenGate 怎么在源头的传输进程和目的端的server/collector进程之间分配 port?
- 【翻译自mos文章】怎么获得datafile备份的 增长信息
- 【翻译自mos文章】当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误
- 【翻译自mos文章】当控制文件的备份丢失时,怎么restore database