首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫

Oracle RDA 遠端診斷工具安裝與使用全攻略

     編輯:Oracle 資料庫相關知識

Remote Diagnostic Agent (RDA) 是 Oracle 官方提供的輕量級診斷工具,能全方位收集資料庫、作業系統、叢集、中介層等配置與效能資料,不異動任何系統參數。Oracle Support 強烈建議提交 SR 時附上 RDA 報告,大幅縮短排查週期。本文涵蓋支援平台、安裝步驟、採集流程、報告分析重點。

一、支援平台與產品

作業系統

  • IBM AIX、Intel Linux (RHEL/SuSE)、HP-UX、HP Tru64、Sun Solaris (2.6~2.10)
  • Windows XP/2000/2003

Oracle 產品

  • RDBMS (SE/EE)、RAC (單節點採集)
  • Application Server (iAS/HTTP Server)
  • OMS、Intelligent Agent、Grid/DB Control
  • OLAP、Developer、Collaboration Suite、Networking 等

二、核心診斷領域

效能、安裝、配置、升級、移植、內部錯誤 (ORA-600/7445 等)。

三、安裝步驟 (Unix/Linux,版本 4.12 為例)

  1. 從 Metalink (My Oracle Support) 下載 rda.tar.gz(需帳號)。
  2. 切勿在 Windows 解壓,會破壞 Shell 腳本格式。
  3. 以 二進位模式 FTP 上傳至目標主機。
  4. 解壓:gunzip rda.tar.gz && tar xvf rda.tar
  5. 進入目錄測試:cd 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,請確認主機已安裝 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 InformationLatch 爭用熱點
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。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved