RDA数据库巡检工具


专家介绍:http://blog.itpub.net/519536/viewspace-628759/

也可以参考blog,很详细!  http://blog.csdn.net/dba_waterbin/article/details/8708382

简介
      RDA是Remote Diagnostic Agent 的简称,它用来收集Oracle的信息、分析数据库的一个免费的插件,RDA收集的相关数据非常全面,可以简化我们日常监控、分析数据库的工作、提供用户要求的性能报告文档,提供RDA收集的数据,便于快速的查询问题,定位问题,下边我就介绍一下这个工具的安装和使用。
      安装RDA安装起来非常方便,一个压缩包解压后可以运行在各种平台上,不需要其它的安装过程,下载可以到Oracle的官网上去找,免费下载,我这里的例子是在linux下做的。

下载
   免费下载地址在 http://linux.linuxidc.com/
   用户名与密码都是www.linuxidc.com
   具体下载目录在 /2013年资料/3月/23日/Oracle 巡检工具:RDA 使用简介

[oracle@s158 ~]$ ls -alrt rda.zip
-rw-r--r-- 1 oracle dba 1494824 08-13 11:01 rda.zip
[oracle@s158 ~]$unzip rda.zip

我们使用oracle用户解压后生成一个rda的目录,内容如下

[oracle@s158 rda]$ ls -alrt
总计 260
-rw-r--r--  1 oracle dba  4123 2008-02-15 DISCLAIM.txt
-rw-r--r--  1 oracle dba  3544 2008-02-26 rda.sh
-rw-r--r--  1 oracle dba  7056 2008-02-26 rda.com
-rw-r--r--  1 oracle dba  4458 2008-10-04 rda.cmd
-rw-r--r--  1 oracle dba 13111 2008-10-11 README_Windows.txt
-rw-r--r--  1 oracle dba 15023 2008-10-11 README_VMS.txt
-rw-r--r--  1 oracle dba 13127 2008-10-11 README_Unix.txt
-rw-r--r--  1 oracle dba 44937 2008-11-04 rda.pl
drwx------ 29 oracle dba  4096 08-13 11:01 ..
-rw-r--r--  1 oracle dba 44452 08-13 11:05 setup.bak
-rw-r--r--  1 oracle dba 49449 08-13 11:08 setup.cfg
drwxr-x---  3 oracle dba 12288 08-13 11:08 output
drwxr-xr-x  5 oracle dba  4096 08-13 11:26 RDA
drwxr-xr-x  2 oracle dba 12288 08-13 11:26 modules
drwxr-xr-x  2 oracle dba  4096 08-13 11:26 hcve
drwxr-xr-x  6 oracle dba  4096 08-13 11:26 .
[oracle@s158 rda]$
修改rda.sh的权限,使之具备可执行权限
[oracle@s158 rda]$ $ chmod +x rda.sh rda.pl

验证RDA工具安装是否成功
$ perl rda.pl -cv

$ ./rda.sh -L modules   查看收集信息种类

安装完之后配置一些RDA需要的信息,执行
[oracle@s158 rda]$ rda.sh –S
值得注意的是如果你的数据库是多实例的,要填写好sid

统计数据库的信息
[oracle@s158 rda]$ rda.sh -v
        Collecting diagnostic data ...
-------------------------------------------------------------------------------
RDA Data Collection Started 13- 8月-2009 11时32分42秒
-------------------------------------------------------------------------------
Processing Initialization module ...
Enter the password for 'SYSTEM': 
Please re-enter it to confirm:
Processing CFG module ...
Processing Sampling module ...
Processing OCM module ...
Processing OS module ...
Processing PROF module ...
Processing PERF module ...
Processing NET module ...
Processing Oracle installation module ...
Processing RDBMS module ...
Processing LOG module ...
Processing RDSP module ...
Processing LOAD module ...
Processing End module ...
-------------------------------------------------------------------------------
RDA Data Collection Ended 13- 8月-2009 11时34分29秒
-------------------------------------------------------------------------------
        Generating the reports ...
                - RDA_OS_tracing.txt ...
                - RDA_LOG_alert_log.txt ...
                - RDA_INST_inventory_xml.txt ...
                - RDA_INST_orainventory_logdir.txt ...
                - RDA_INST_make_report.txt ...
                - RDA_DBA_datafile.txt ...
                - RDA_DBA_vfeatureinfo.txt ...
                - RDA_DBA_dba_registry.txt ...
                - RDA_PERF_autostats.txt ...
                - RDA_PROF_profiles.txt ...
                - RDA_DBA_vsession_wait.txt ...
                - RDA_DBA_vsystem_event.txt ...
                - RDA_NET_netperf.txt ...
                - RDA_PROF_dot_bash_profile.txt ...
                - RDA_INST_oracle_home.txt ...
                - RDA_NET_tcpip_settings.txt ...
                - RDA_PERF_ash_report.txt ...
                - RDA_NET_udp_settings.txt ...
                - RDA_LOG_last_errors.txt ...
                - RDA_NET_ifconfig.txt ...
                - RDA_DBA_versions.txt ...
                - RDA_END_report.txt ...
                - RDA_LOG_error1_orcl_ora_18757_trc.dat ...
                - RDA_OS_disk_info.txt ...
                - RDA_OS_java_version.txt ...
                - RDA_INST__link_homes.txt ...
                - RDA_CFG_homes.txt ...
                - RDA_DBA_aq_data.txt ...
                - RDA_DBA_ses_procs.txt ...
                - RDA_OS_etc_conf.txt ...
                - RDA_OS_sysdef.txt ...
                - RDA_DBA_text.txt ...
                - RDA_DBA_vlicense.txt ...
                - RDA_NET_etc_files.txt ...
                - RDA_DBA_vresource_limit.txt ...
                - RDA_OS_cpu_info.txt ...
                - RDA_DBA_database_properties.txt ...
                - RDA_INST_comps_xml.txt ...
                - RDA_INST__link_oh_inv.txt ...
                - RDA_OS_services.txt ...
                - RDA_OS_system_error_log.txt ...
                - RDA_DBA_vHWM_Statistic.txt ...
                - RDA_DBA_mts.txt ...
                - RDA_OS_packages.txt ...
                - RDA_OS_kernel_info.txt ...
                - RDA_DBA_replication.txt ...
                - RDA_DBA_security_files.txt ...
                - RDA_PROF_etc_profile.txt ...
                - RDA_DBA_CPU_Statistic.txt ...
                - RDA_END_system.txt ...
                - RDA_DBA_vfeatureusage.txt ...
                - RDA_PERF_lock_data.txt ...
                - RDA_LOG_error3_orcl_ora_17475_trc.dat ...
                - RDA_PROF_dot_bashrc.txt ...
                - RDA_DBA_log_info.txt ...
                - RDA_OS_misc_linux_info.txt ...
                - RDA_PERF_awr_report.txt ...
                - RDA_DBA_init_ora.txt ...
                - RDA_DBA_spatial.txt ...
                - RDA_DBA_latch_info.txt ...
                - RDA_LOG_error2_orcl_ora_17597_trc.dat ...
                - RDA_INST_orainst_loc.txt ...
                - RDA_CFG_database.txt ...
                - RDA_LOG_log_trace.txt ...
                - RDA_DBA_undo_info.txt ...
                - RDA_OS_libc.txt ...
                - RDA_DBA_vcontrolfile.txt ...
                - RDA_INST_oratab.txt ...
                - RDA_OS_linux_release.txt ...
                - RDA_PROF_env.txt ...
                - RDA_INST_orainventory_files.txt ...
                - RDA_DBA_vparameters.txt ...
                - RDA_PERF_overview.txt ...
                - RDA_OS_nls_env.txt ...
                - RDA_DBA_partition_data.txt ...
                - RDA_PROF_umask.txt ...
                - RDA_OS_memory_info.txt ...
                - RDA_DBA_security.txt ...
                - RDA_DBA_invalids.txt ...
                - RDA_DBA_nls_parms.txt ...
                - RDA_INST_installActions20081120_013530AM_log.dat ...
                - RDA_DBA_jvm_info.txt ...
                - RDA_DBA_voption.txt ...
                - RDA_DBA_sga_info.txt ...
                - RDA_DBA_tablespace.txt ...
                - RDA_PERF_addm_report.txt ...
                - RDA_PERF_latch_data.txt ...
                - RDA_DBA_vcompatibility.txt ...
                - RDA_DBA_all_errors.txt ...
                - RDA_PERF_top_sql.txt ...
                - RDA_DBA_vspparameters.txt ...
                - RDA_CFG_oh_inv.txt ...
                - RDA_PROF_ulimit.txt ...
                - Report index ...
        Packaging the reports ...

You can review the reports by transferring the contents of the
/home/oracle/rda/output directory to a location where you have web-browser
access. Then, point your browser at this file to display the reports:
   RDA__start.htm

Based on your server configuration, some possible alternative approaches are:
- If your client computer with a browser has access to a web shared
   directory, copy the /home/oracle/rda/output directory to the web shared
   directory and visit this URL:
    http://machineort/web_shared_directory/RDA__start.htm 
 or
- If your client computer with a browser has FTP access to the server
   computer with the /home/oracle/rda/output directory, visit this URL:
    ftp://oracle@s158./rda/output/RDA__start.htm


If this file was generated to assist in resolving a Service Request, please
send /home/oracle/rda/output/RDA.RDA_s158.zip to Oracle Support by uploading
the file via My Oracle Support. If ftp'ing the file, please be sure to ftp in
BINARY format.

     Updating the setup file ...

信息查看
信息统计完之后会生成到你配置的output目录里,我这里是用的默认的,rda/output里,你会找到一个文件名为:RDA.RDA_.zip的文件:
[oracle@s158 output]$ ls -alrt *.zip
-rw-r--r-- 1 oracle dba 944990 08-13 11:34 RDA.RDA_s158.zip
[oracle@s158 output]$

ftp到本地之后,解压找到RDA__index.html的文件,用IE浏览器你就可以很方便的查看你收集到的信息了。

请使用浏览器的分享功能分享到微信等