Remote Diagnostic Agent (RDA) 是 Oracle 官方提供的輕量級診斷工具,能全方位收集資料庫、作業系統、叢集、中介層等配置與效能資料,不異動任何系統參數。Oracle Support 強烈建議提交 SR 時附上 RDA 報告,大幅縮短排查週期。本文涵蓋支援平台、安裝步驟、採集流程、報告分析重點。
效能、安裝、配置、升級、移植、內部錯誤 (ORA-600/7445 等)。
rda.tar.gz(需帳號)。gunzip rda.tar.gz && tar xvf rda.tarcd rda && ./rda.sh -c以 Oracle 軟體擁有者身分執行:
$ ./rda.sh -S
依嚮導提示輸入:資料庫 SID、ORACLE_HOME、監聽埠、是否為 RAC、是否採集 OS 資料等。關鍵提示:
Enter an Oracle User ID (userid only) to view DBA_ and V$ tables
If RDA will be run under the Oracle software owner's ID, enter a '/' here,
and select Y at the SYSDBA prompt...
Hit 'Return' to accept the default (system): /
Is '/' a sysdba user (will connect as sysdba) (Y/N)? > Y
完成後產生 setup.cfg、setup.bak,後續可直接修改檔案調整參數。
./rda.sh./rda.sh -v(會提示輸入 SYSMAN 等帳號密碼)採集完成於 output/RDA_<hostname>.zip。解壓後開啟 __start.htm 瀏覽完整報告。
zip 指令。rm output/*.zip && ./rda.sh -Svf && ./rda.sh -v| 報告區塊 | 關注指標 |
|---|---|
| Database SPFile Parameters | 初始參數設定是否合理 |
| SGA Information | 記憶體分配、元件大小 |
| Sessions and Processes | 連線數、Session 活躍度 |
| V$System_Event | 實例級等待事件統計 |
| V$Session_Wait | 當前 Session 等待定位 |
| Latch Information | Latch 爭用熱點 |
| Tablespaces / Database Files | 表空間使用率、自動擴展、檔案分佈 |
| Invalid Objects | 失效物件需重新編譯 |
| Alert Log / Last Errors | 系統級錯誤、Trace 檔定位 |
重點等待事件:buffer busy waits、db file scattered/sequential read、enqueue、free buffer waits、latch free、log file sync、log file parallel write。