Oracle RDA-Remote Diagnostic Agent

<>

RDA是Remote Diagnostic Agent

的简称,是Oracle用来收集、分析数据库的工具,运行该工具不会改变系统的任何参数,RDA收集的相关数据非常全面,可以简化我们日常监控、分析数据库的工作,Oracle

Support也建议我们在反馈相关问题时,提供RDA收集的数据,这样可以为快速解决问题提供一个有力的保证。

一、支持的操作系统

IBM AIXIntel Linux (RedHat and SuSE)HP-UX (10.* and 11.*)HP

Tru64Sequent Dynix/PtxSun Solaris (2.6 - 2.10)Windows XP

Professionalwindows 2000 Workstation and ServerWindows 2003

Server

二、支持的Oracle产品

Oracle RDBMS Server (Standard and Enterprise Editions)Oracle RAC

Cluster (Single Node Collection)Oracle Application Server (iAS

1.0.2.x/9.0.x/10.1.2.x, HTTP Server)Oracle Management Server and

Intelligent Agent (Grid Server, Agent Server, DB Control)OLAP

ProdUCts (Express Server, Financial Analyzer, and Demand Planning

Server)Oracle Developer (Forms and Reports)Oracle Collaboration

Suites (Email Server and Internet Directory)

三、主要用于诊断数据库的以下方面的问题

性能、安装、配置、升级、移植以及内部错误问题.

四、RDA的安装

工具下载:http://www.blogJava.net/Files/beauty_beast/rda.rar

在Unix操作系统的安装说明:1、工具下载完后不要在window操作系统下做解压缩,脚本的文件格式会破坏。2、FTP上传是采用二进制方式。3、执行解压缩命令example:gunzip

rda.tar.gztar xvf rda.tar4、在解压缩后的目录下执行 ./rda.sh -c 测试是否正常

五、RDA的使用

在Unix操作系统中,oracle推荐在数据库创建用户下执行(一般即为oracle用户)。第一次使用需要做一个采集的初始配置。执行命令:。/rda.sh

-S 执行命令后,会有个向导化的界面让你根据当前数据库的实际安装的产品完成初始配置。 完成配置后rda目录下会生成配置文件

setup.cfg、setup.bak, 假如需要重新调整配置参数,可以直接修改该文件。

初始配置完毕后要采集数据,执行命令:。/rda.sh假如要看到具体的采集过程,可以执行命令:。/rda.sh

-v在采集过程中有可能需要你输入数据库相关用户的密码。采集完成后,在rda目录下根据初始配置文件会生成格式为zip的报告文件以及采集日志,默认文件位置。/output/RDA.$machine_name.zip.解压缩该文件,访问

__start.htm,就可以看到这次采集的数据的具体信息。使用时的注重点:1、有时不能生成zip格式的报告文件,这跟客户端是否安装压缩工具有关,需要自行解压缩相关报告文件。2、假如需要安装已生成的配置再次采集,删除已生成的报告文件,然后执行命令:。/rda.sh

-Svf 重新设置后再执行采集命令 ./rda.sh -v

六。采集数据分析

报告文件主要包括数据库对应机器的操作系统软、硬件环境、用户设置以及数据库具体的信息(初始参数、运行事件、日常监控等)在日常的维护当中,我们主要

1、关注RDBMS下的几个统计信息。Database SPFile Parameters spfile中数据库相关初始参数的设置SGA

Information 查看系统全局区当前内存信息Sessions and Processes

采集时间内的数据库会话相关信息V$System_Event

数据库实例整个运行期间所有进程事件的等待统计视图V$Session_Wait 会话等待事件以及相关定位信息数据Latch

Information 竞争相关信息(翻译不是很准确)Tablespaces

数据库表空间信息(表空间类型、对应数据文件使用率、是否可扩展等等)Database Files

数据库对应数据文件信息(文件位置、使用率等)Invalid Objects

失效的数据库对象,日常监控假如发现有失效,需要维护人员手工重新编译all errors 日常执行的数据库错误在

V$System_Event、 V$Session_Wait 主要关注(buffer busy waits、db file

scattered read、db file sequential read、enqueue、free buffer

waits、latch free、log file sync、log file paralle write

这些事件。2、关注RDBMS Log/Trace Files 的信息alert.log 数据库系统级日志last errors

数据库最近的异常日志、根据trace文件位置,可以查看具体错误信息

<>

root@xxxxx # su - oracle

This is a private computer facility in MKL.

Access for any reason must be specifically authorized by the

owner.

$ ls

Apache bin dbs jar lib

……………

rda.tar

sqlplus ultrasearch

……………

$ ls -l *.tar

-rwxrwxrwx 1

k3402 dba 1269760 May 18 15:05 rda.tar

$ tar -xvpf rda.tar

x rda/rda.bat, 2918 bytes, 6 tape blocks

x rda/rda.pl, 26891 bytes, 53 tape blocks

x rda/rda.sh, 3017 bytes, 6 tape blocks

x rda/RDA, 0 bytes, 0 tape blocks

x rda/RDA/Macro, 0 bytes, 0 tape blocks

………..

x rda/modules/rdamtop.toc, 46 bytes, 1 tape blocks

x rda/modules/rdatop.toc, 43 bytes, 1 tape blocks

x rda/DISCLAIM.txt, 4087 bytes, 8 tape blocks

x rda/README_Unix.txt, 12662 bytes, 25 tape blocks

x rda/README_Windows.txt, 12546 bytes, 25 tape blocks

x rda/modules/rda.log, 3959 bytes, 8 tape blocks

$ ls

Apache classes dm jdk network

…………

rda sqlplus weboamlib

bin demo jdbc mgw oradata rda.tar srvm wwg

$ cd rda

$ ls

DISCLAIM.txt README_Unix.txt modules rda.pl

RDA README_Windows.txt rda.bat rda.sh

测试是否正常:

$ ./rda.sh –c

如果第一次使用需要做一个采集的初始配置:

$ ./rda.sh -S

At this point, it should be possible to collect the diagnostic

information.

sqlplus should connect to the database with the userid specified

during the

setup.

With the same command used so far, start the data

collection:

./rda.pl

[-v]

or

./rda.sh

[-v]

The -v option is optional. It allows to see the collection

progression.

Once it has completed, the results will be packaged for sending

it to Oracle

Support Services, if this file was generated to assist in

resolving a TAR.

Selective data collection is also possible. For more details,

the command

usage can be displayed by specifying the -h option, or complete

manual page

with the -M option.

如果不是第一次使用需要做一个采集的初始配置:

$ ./rda.sh -Svf

Setting up ...

- S000INI ...

-------------------------------------------------------------------------------

S000INI: Initializes the Data Collection

-------------------------------------------------------------------------------

The output file prefix is used to easily identify all files

belonging to the

same data collection. It must start with a letter and may only

contain

alphanumerical characters.

Enter the prefix for all the files generated

Hit 'Return' to accept the default (RDA):

Enter the directory used for all the files generated

Hit 'Return' to accept the default (output):

Do you want to keep report packages from previous runs

(Y/N)?

Hit 'Return' to accept the default (N):

Enter the Oracle Home to be analyzed

Hit 'Return' to accept the default (/home/oracle):

……………….

- S999END ...

-------------------------------------------------------------------------------

S999END: Finalizes the Data Collection

-------------------------------------------------------------------------------

At this point, it should be possible to collect the diagnostic

information.

sqlplus should connect to the database with the userid specified

during the

setup.

With the same command used so far, start the data

collection:

./rda.pl

[-v]

or

./rda.sh

[-v]

The -v option is optional. It allows to see the collection

progression.

Once it has completed, the results will be packaged for sending

it to Oracle

Support Services, if this file was generated to assist in

resolving a TAR.

Selective data collection is also possible. For more details,

the command

usage can be displayed by specifying the -h option, or complete

manual page

with the -M option.

Updating the setup file ...

$

$

初始配置完毕后要采集数据,执行命令:

$./rda.sh

假如要看到具体的采集过程,可以执行命令:

$ ./rda.sh -v

Collecting diagnostic data ...

-------------------------------------------------------------------------------

RDA Data Collection Started 18-May-2009 15:49:53

-------------------------------------------------------------------------------

Processing Initialization module ...

Enter the password for 'SYSTEM':

Please re-enter it to confirm:

Processing CFG module ...

Processing Sampling module ...

Processing OS module ...

Processing PROF module ...

Processing PERF module ...

Processing NET module ...

Processing networking information (network files, sql*net

files)...

Listener checks may take a few minutes. please be patient...

Processing listener status, services and log

for listener LISTENER

Processing Oracle installation module ...

Processing RDBMS module ...

Processing LOG module ...

Processing Web Server module ...

Processing Web Server (iAS 1.x) module ...

Processing HTTP Server ...

Processing End module ...

-------------------------------------------------------------------------------

RDA Data Collection Ended 18-May-2009 15:51:51

-------------------------------------------------------------------------------

Generating the reports ...

- RDA_CFG_database.txt ...

- RDA_OS_cpu_info.txt ...

- RDA_OS_memory_info.txt ...

- RDA_OS_ism_info.txt ...

- RDA_OS_disk_info.txt ...

- RDA_OS_kernel_info.txt ...

- RDA_OS_packages.txt ...

- RDA_OS_patches.txt ...

- RDA_OS_sysdef.txt ...

- RDA_OS_system_error_log.txt ...

- RDA_OS_nls_env.txt ...

- RDA_OS_java_version.txt ...

- RDA_OS_etc_conf.txt ...

- RDA_OS_tracing.txt ...

- RDA_PROF_env.txt ...

- RDA_PROF_ulimit.txt ...

- RDA_PROF_profiles.txt ...

- RDA_PROF_etc_profile.txt ...

- RDA_PROF_dot_profile.txt ...

- RDA_PROF_dot_dtprofile.txt ...

- RDA_PERF_perf_over.txt ...

- RDA_PERF_top_sql.txt ...

- RDA_NET_ifconfig.txt ...

-

RDA_NET_tcpip_settings.txt ...

- RDA_NET_udp_settings.txt ...

- RDA_NET_adapters.txt ...

- RDA_NET_lstatus.txt ...

- RDA_NET_sqlnet_sqlnet_ora.txt ...

- RDA_NET_sqlnet_tnsnames_ora.txt ...

- RDA_NET_sqlnet_listener_ora.txt ...

- RDA_NET_hs_inithsodbc_ora.txt ...

- RDA_NET_netenv.txt ...

- RDA_NET_netperf.txt ...

- RDA_NET_etc_files.txt ...

-

RDA_INST_oratab.txt ...

- RDA_INST_oracle_home.txt ...

- RDA_INST_orainst_loc.txt ...

- RDA_INST_orainventory_logdir.txt ...

- RDA_INST_installAction_logs.txt ...

- RDA_INST_oraInstall_err.txt

...

- RDA_INST_oraInstall_out.txt ...

- RDA_INST_make_report.txt ...

- RDA_INST_opatch_report.txt ...

- RDA_DBA_versions.txt ...

- RDA_DBA_init_ora.txt ...

- RDA_DBA_vparameters.txt ...

- RDA_DBA_vspparameters.txt ...

- RDA_DBA_voption.txt ...

- RDA_DBA_dba_registry.txt ...

- RDA_DBA_sga_info.txt ...

- RDA_DBA_ses_procs.txt ...

- RDA_DBA_vlicense.txt ...

- RDA_DBA_vcompatibility.txt ...

- RDA_DBA_nls_parms.txt ...

- RDA_DBA_jvm_info.txt ...

- RDA_DBA_vcontrolfile.txt ...

- RDA_DBA_log_info.txt ...

- RDA_DBA_undo_info.txt ...

- RDA_DBA_database_properties.txt ...

- RDA_DBA_vsystem_event.txt ...

- RDA_DBA_vresource_limit.txt ...

- RDA_DBA_vsession_wait.txt ...

- RDA_DBA_latch_info.txt ...

- RDA_DBA_tablespace.txt ...

- RDA_DBA_datafile.txt ...

- RDA_DBA_replication.txt ...

- RDA_DBA_security.txt ...

-

RDA_DBA_security_files.txt ...

- RDA_DBA_spatial.txt ...

- RDA_DBA_aq_data.txt ...

- RDA_DBA_partition_data.txt ...

- RDA_DBA_text.txt ...

- RDA_LOG_alert_log.txt ...

- RDA_LOG_last_errors.txt ...

- RDA_LOG_log_trace.txt ...

- RDA_IAS_web_env.txt ...

- RDA_IAS_cfg_files.txt ...

- RDA_IAS_apache_over.txt ...

- RDA_IAS_apache_logs.txt ...

- RDA_IAS_jserv_conf.txt ...

- RDA_IAS_signon.txt ...

- RDA_IAS_signonp.txt ...

- RDA_IAS_apache_bin.txt ...

- RDA_END_report.txt ...

- RDA_IAS_lc_Apache_Apache_conf_httpd_conf.txt ...

- RDA_IAS_lc_Apache_Apache_conf_oracle_apache_conf.txt ...

- RDA_IAS_lc_Apache_Jserv_etc_jserv_conf.txt ...

- RDA_IAS_lc_Apache_jsp_conf_ojsp_conf.txt ...

-

RDA_IAS_lc_Apache_modplsql_cfg_plsql_conf.txt ...

- RDA_IAS_lc_oem_webstage_oem_conf.txt ...

- RDA_IAS_lc_rdbms_demo_aqxml_conf.txt ...

- RDA_IAS_lc_sqlplus_admin_isqlplus_conf.txt ...

- RDA_IAS_lc_xdk_admin_xml_conf.txt ...

- RDA_IAS_jserv_javaversions.txt ...

- RDA_IAS_ss_Apache_Apache_bin_apachectl.txt ...

- RDA_IAS_pc_Apache_modplsql_cfg_wdbsvr_app.txt ...

- RDA_IAS_jc_Apache_Jserv_etc_jserv_properties.txt ...

- RDA_IAS_jc_Apache_Jserv_etc_zone_properties.txt ...

- RDA_IAS_jc_Apache_Jserv_etc_jservSoap_properties.txt ...

- RDA_IAS_jc_soap_webapps_soap_WEBINF_config_soap_properties.txt

...

- RDA_IAS_jl_Apache_Jserv_logs_mod_jserv_log.txt ...

- RDA_END_system.txt ...

- Report index ...

Packaging the reports ...

You can view your report by:

- Copying the output directory to a web shared directory and go

to:

http://machine:port/web_shared_directory/RDA__START.htm

or

- Trying your browser directly:

ftp://oracle@xxxxx./rda/output/RDA__START.htm

If this file was generated to assist in resolving a Service

Request,

please send output/RDA.RDA_xxxxx.zip

to Oracle Support by uploading the file via Metalink.

If ftp'ing the file, please be sure to ftp in BINARY format.

Updating the setup file ...

$

<>:

$ pwd

/home/oracle/rda/output

$

通过Xmanger连接到xxxxx,找到RDA_START.htm:

双击”RDA_start.htm”:

在此,可以查看刚才收集到结果。

<

RDA>>

删除已生成的报告文件,然后执行命令:

$cd /home/oracle/rda/output

$ rm -r *

$cd /home/oracle/rda

重新设置:

$./rda.sh -Svf

再执行采集命令:

$./rda.sh -v

oracle remote diagnostic agent,Oracle RDA-Remote Diagnostic Agent相关推荐

  1. Oracle RDA(Remote Diagnostic Agent) 工具说明

    Oracle RDA(Remote Diagnostic Agent) 工具说明 分类: Oracle 性能调优 Oracle 高级知识  一.RDA 说明 RDA(RemoteDiagnostic ...

  2. 快速部署RDA Remote Diagnostic Agent

    RDA Remote Diagnostic Agent远程诊断代理是Oracle Support售后服务使用的标准工具之一,当用户在Metalink上提交SR(TAR)时可能Oracle GCS(Gl ...

  3. Oracle 数据库自动诊断库 ADR(Automatic Diagnostic Repository)简介

    作者介绍 姚远:鼎甲科技高级技术顾问,墨天轮MVP.Oracle ACE,华为云MVP,专注于 Oracle.MySQL 数据库多年,拥有 Oracle 10g.12c OCM, MySQL 5.6. ...

  4. oracle tns远程投毒,Oracle TNS Listener Remote Poisoning 测试

    远程数据投毒漏洞(CVE-2012-1675) 允许***者在不提供用户名/密码的情况下,向远程"TNS Listener"组件处理的数据投毒的漏洞. COST 是class of ...

  5. Oracle 12c(12.1.0.5) oem agent silent install(静默安装agent)

    注释: 文章来自oracle support 文档 ID 1360083.1,静默安装agent采用的是把OMS服务端(即oem server端)的agent用压缩包download,远程传到agen ...

  6. oracle 11g rman catalog,Oracle 11g RMAN复制数据库的测试

    RMAN支持两种类型复制:活动数据库复制和基于备份的复制,主要用来建立测试库.分别进行测试 我们把要复制的数据库称为源数据库(SOURCE DB=orcl),复制后的数据库成为目标数据库(TARGET ...

  7. oracle 11g goldengate与oracle 11g数据同步

    1.下载,安装goldengate软件(两个节都需要安装) glodengate下载地址:http://pan.baidu.com/s/1pLtVTJt 密码:exob [oracle@oracleo ...

  8. oracle 强制 断开,ORA-01092: ORACLE 例程终止 强行断开连接

    今天测试部门的人叫我过去,说是数据库当了,起不来了. 我过去看了看情况,做了如下操作 SQL> shutdown immediate 数据库已经关闭. 已经卸载数据库. Oracle 例程已经关 ...

  9. oracle gets/exec 单位,ORACLE AWR使用基础

    ORACLE AWR使用基础 Oracle Database 10g 提供了一个显著改进的工具:自动工作负载信息库(AWR).Oracle 建议用户用这个取代Statspack.AWR 实质上是一个O ...

  10. oracle 11g rac 状态,Oracle 11g RAC 检查各部分运行状态

    检查RAC运行状况 [grid@rac1 ~]$ crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: C ...

最新文章

  1. Plugin with id 'com.novoda.bintray-release' not found.的解决方案
  2. mysql创建表关联_MySQL创建高级联表教程
  3. sql server :distinct 与order by 一起使用要注意
  4. python使用with无需显示关闭文件
  5. 未来计算机技术的发展趋势有哪些,计算机技术的未来发展趋势,以及其应用范围...
  6. Delphi Open Tools Api实例研究(一)
  7. English Resources
  8. Silverlight与WCF错误处理:Server Not Found(1)
  9. Foundation框架: 6.NSString的创建和导出
  10. vs2010使用教程c语言编程,VS2010的使用
  11. 《通信原理》复习笔记3----第三章随机过程相关例题(重点与难点)
  12. 我的家乡介绍网站设计与实现
  13. 苏东坡的起伏一生:就算人生不顺利,也要活的潇潇洒洒
  14. 揭秘抖音快手刷赞刷评论骗局,揭秘抖音刷赞兼职套路
  15. 安霸Ambarella_海思Hisilicon_AI芯片参数对比
  16. 一文了解生物识别技术
  17. 暑期训练day14 A. XXXXX
  18. android 电池电量广播,Android查看电池电量的方法(基于BroadcastReceiver)
  19. TeamViewer用户注意:请尽快将其更新为最新版本
  20. C++我的世界源代码

热门文章

  1. 华硕路由器虚拟服务器,路由器也能作虚拟主机?
  2. 使用触发器进行表数据备份
  3. 你不是不努力,但成功的为什么不是你?
  4. 考研英语语法---简单句和句子成分
  5. 使用Apache POI解析excel
  6. 数学传奇2——格林的风车
  7. 面试常见基础知识点及问题
  8. 已解决WARNING: Ignoring invalid distribution -addlepaddle (d:softpython36libsite-packages)
  9. 对称加密和非对称加密详解
  10. 前端使用插件导出表格数据到Excel