【翻譯自mos文章】在物理dg中對RFS進程進行trace的方法,mosrfs

來源:互聯網
上載者:User

【翻譯自mos文章】在物理dg中對RFS進程進行trace的方法,mosrfs

在物理dg中對RFS進程進行trace的方法

來源於:
How To Trace The Remote File Server (RFS) Process In Physical Standby Database (文檔 ID 1481125.1)

適用於:
Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.2.0 [Release 10.1 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 5-Aug-2014***

目標:
目標是對物理dg中的Remote File Server(RFS)進程進行trace
Remote File Server(RFS)進程寫redo data 到standby database中的standby redo log file中。
產生RFS進程的trace可能是有用的,比如為了診斷standby database上的disk io問題(Doc ID 1481124.1)

解決方案:
為了產生RFS中的trace file,我們需要做如下:

1. 在主庫的alert日誌中,我們需要找到最近啟動歸檔器心跳的歸檔進程,例如:

...Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST...ARC6 started with pid=42, OS id=415...Thu Jun 14 13:08:02 EST 2012ARC6: Becoming the heartbeat ARCH...

在本例子中,如上所示,心跳歸檔器進程是ARC6。

2.在備庫上,我們需要找到與主庫上ARC6進程通訊的RFS進程的ID,例如:

[yourmachine ~]$ ps -ef | grep arcoracle 5352 1 0 Jul25 ? 00:00:00 ora_arc0_dg112i1oracle 5356 1 0 Jul25 ? 00:00:00 ora_arc1_dg112i1oracle 5358 1 0 Jul25 ? 00:00:08 ora_arc2_dg112i1oracle 5360 1 0 Jul25 ? 00:00:00 ora_arc3_dg112i1oracle 5357 1 0 Jul25 ? 00:00:00 ora_arc4_dg112i1oracle 5359 1 0 Jul25 ? 00:00:08 ora_arc5_dg112i1oracle 415 1 0 Jul25 ? 00:00:00 ora_arc6_dg112i1

在本例子中,我們會發現arch6進程的作業系統進程ID是415。這也確認了在主庫alert日誌中我們所看到的(id=415)

3.在備庫上,以能查詢v$managed_standby資料字典視圖的user登陸sqlplus。我們會發現與歸檔器進程415相匹配的RFS進程id

SQL> select process,pid,client_pid from v$managed_standby;PROCESS PID CLIENT_PID--------- ---------- ----------------------------------------ARCH 10451 10451ARCH 10453 10453ARCH 10455 10455ARCH 10457 10457RFS 10627 5358RFS 10597 6201RFS 10601 23000RFS 10653 415 <---RFS 10529 1193RFS 10603 5360MRP0 10643 N/A11 rows selected.


4.使用oradebug命令attach 到RFS中,並設定10046以獲得sql/waits,internal queries和其他資訊。

SQL> oradebug setospid 10653Oracle pid: 25, Unix process pid: 10653, image: oracle@yourmachine.com (ARC6)SQL> oradebug unlimitStatement processed.SQL> oradebug event 10046 trace name context forever, level 12;Statement processed.SQL> -- Keep tracing for some time while the problem is occurringSQL> -- as required by Oracle Support.SQL> -- To stop tracing:SQL> oradebug event 10046 trace name context off;Statement processed.SQL>


5.最後一步是在診斷目錄下,找到新產生的trace file。檔案名稱由 database SID組成。舉例:MYDBASE_arc6_415.trc
請上傳該file給sr。If diagnosing defect defect 9695805 please refer to Doc ID 1481124.1.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.