Oracle RDA工具使用.doc_第1页
Oracle RDA工具使用.doc_第2页
Oracle RDA工具使用.doc_第3页
Oracle RDA工具使用.doc_第4页
Oracle RDA工具使用.doc_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

使用RDA(Remote Diagnostic Agent)工具对数据库进行健康检查RDA英文全称叫做“Oracle Remote Diagnostic Agent”。这个Oracle诊断工具是用perl编写的,包含非常丰富的诊断脚本,使用它可以非常便利的采集到Oracle数据库服务器系统配置和数据库的详细信息。如果您在向Oracle支持人员寻求帮助时能够提供一份RDA报告,将会大大的缩短问题处理的周期,避免信息的反复采集。RDA不会更改数据库服务器的任何配置,仅仅是采集信息,了解系统。大家可以放心使用RDA工具。这篇文章给大家介绍一下这个RDA工具的使用方法,供参考。1.下载RDA安装包参考MOS(Metalink Note):314422.1“Remote Diagnostic Agent (RDA) 4 - Getting Started ID 314422.1”文章中提供了不同操作系统版本的介质下载。这里选择“Linux x86 (64-bit)”版本进行演示操作。该工具支持以下操作系统:Apple Mac OS XHP OpenVMSHP Tru64HP-UX ItaniumHP-UX PA-RISC (32-bit)HP-UX PA-RISC (64-bit)IBM AIX on POWER Systems (32-bit)IBM AIX on POWER Systems (64-bit)IBM Dynix/PtxIBM Linux on POWERIBM zSeries Based LinuxLinux ItaniumLinux x86 (32-bit)Linux x86 (64-bit)Microsoft Windows (32-bit)Microsoft Windows (64-bit)Sun Solaris Intel (32-bit)Sun Solaris Intel (64-bit)Sun Solaris SPARC (32-bit)Sun Solaris SPARC (64-bit)2.在数据库服务器上创建一个RDA目录创建的RDA目录需要保证有足够的空间可用。ora10gsecDB /home/oracle$ mkdir RDA3.将下载到的安装文件上传到服务器上$ scp p9079828_418_LINUX.zip oracle11:/home/oracle/RDAoracle11s password:p9079828_418_LINUX.zip 100% 26MB 8.8MB/s 00:034.解压文件1)解压ora10gsecDB /home/oracle/RDA$ unzip p9079828_418_LINUX.zipArchive: p9079828_418_LINUX.zip inflating: readme.txt creating: rda/ creating: rda/RDA/. 此处省略大量解压信息 . inflating: rda/rda_linux56 creating: rda/ccr/ inflating: rda/ccr/ccr-Production-.0-Linux-i386.zip2)解压后,当前目录下将会创建一个rda目录和一个readme.txt文件ora10gsecDB /home/oracle/RDA$ ls -ltrtotal 27M-r-r-r- 1 oracle oinstall 48 Dec 4 14:45 readme.txtdrwxr-xr-x 6 oracle oinstall 4.0K Dec 4 14:45 rda/-rwx- 1 oracle oinstall 27M Mar 5 02:07 p9079828_418_LINUX.zip*3)readme.txt文件记录了RDA软件的版本信息ora10gsecDB /home/oracle/RDA$ vi readme.txtRDA/OCM bundle for RDA 4.18-091204 for linux_x865.验证RDA工具安装是否成功1)第一种方法ora10gsecDB /home/oracle/RDA/rda$ perl rda.pl -cvLoading the file list .Checking the directory . .Checking the directory RDA .Checking the directory RDA/Handle .Checking the directory RDA/Library .Checking the directory RDA/Library/Remote .Checking the directory RDA/Local .Checking the directory RDA/Object .Checking the directory RDA/Operator .Checking the directory RDA/Value .Checking the directory hcve .Checking the directory modules .No issues found2)第二种方法ora10gsecDB /home/oracle/RDA/rda$ rda.sh -cvLoading the file list .Checking the directory . .Checking the directory RDA .Checking the directory RDA/Handle .Checking the directory RDA/Library .Checking the directory RDA/Library/Remote .Checking the directory RDA/Local .Checking the directory RDA/Object .Checking the directory RDA/Operator .Checking the directory RDA/Value .Checking the directory hcve .Checking the directory modules .No issues found经检查,RDA工具安装没有问题。6.配置并运行RDA1)验证perl是否可用ora10gsecDB /home/oracle/RDA/rda$ perl -V2)保证rda.sh和rda.pl两个文件具有执行权限ora10gsecDB /home/oracle/RDA/rda$ ls -l rda.sh rda.pl-r-xr-xr-x 1 oracle oinstall 47K Nov 30 16:02 rda.pl*-r-xr-xr-x 1 oracle oinstall 3.5K Jan 14 2009 rda.sh*如果不具有执行权限,可以使用下面的命令进行调整。ora10gsecDB /home/oracle/RDA/rda$ chmod +x rda.sh rda.pl3)使用“-L modules”选项列出所有可供采集的模块通过下面的这个列表体现出了RDA在数据库采集方面的强大优势。ora10gsecDB /home/oracle/RDA/rda$ ./rda.sh -L modulesAvailable data collection modules are: ACFS Collects ASM Cluster File System Information ACT Collects Oracle E-Business Suite Application Information ADBA Collects ACS Oracle Database Assessment ADX Collects AutoConfig and Rapid Clone Information AGT Collects Enterprise Manager Agent Information APEX Collects APEX Information ASAP Collects Oracle Communications ASAP Information ASBR Collects Application Server Backup and Recovery Information ASG Collects Application Server Guard Information ASIT Collects Oracle Application Server Installation Information ASM Collects Automatic Storage Management Information B2B Collects Oracle Business to Business Information BAM Collects Business Activity Monitoring Information BEE Collects Beehive Information BI Collects Oracle Business Intelligence Enterprise Edition Info. BPEL Collects Oracle BPEL Process Manager Information BR Collects Database Backup and Recovery Information BRM Collects Oracle Communications BRM Information CCR Collects OCM Diagnostic Information CFG Collects Key Configuration Information COHR Collects Oracle Coherence Information CONT Collects Oracle Content Services Information CRID Collects Oracle Access Manager (COREid) Information D2PC Collects Distributed Transaction Information DB Controls RDBMS Data Collection DBA Collects RDBMS Information DBC Collects Database Control Information DBM Collects RDBMS Memory Information DEV Collects Oracle Developer Information DG Collects Data Guard Information DNFS Collects Direct NFS Information DSCS Collects Discussions Information DSCV Collects Oracle Discoverer Information ECM Controls Oracle Enterprise Content Management 11g Data Collection EM Collects Enterprise Manager OMS and Repository Info (Obsolete) END Finalizes the Data Collection EPMA Collects Enterprise Performance Management Architect Information ESB Collects Enterprise Service Bus Information ESS Collects Oracle Essbase Information ESSO Collects Oracle Enterprise Single Sign-On Information EXA Collects Exadata Information FLTR Controls Report Content Filtering GRDN Collects Oracle Guardian Information GRID Controls Grid Control Data Collection GTW Collects Transparent/Procedural Gateway Information HFM Collects Oracle Hyperion Financial Management information HPL Collects Oracle Hyperion Planning Information IA Collects Intelligent Agent Information IAS Collects Web Server Information IFS Collects iFS (iFS, CMSDK, Files) Information INI Initializes the Data Collection INST Collects the Oracle Installation Information IPSA Collects Oracle Communications IP Service Activator Information J2EE Collects J2EE/OC4J Information JDBC Collects Oracle Java DB Connectivity (JDBC) Information JDEV Collects Oracle JDeveloper Information JIVE Collects Jive Information LANG Collects Oracle Language Information LOAD Produces the External Collection Reports LOG Collects Database Trace and Log Files MAIL Collects Oracle Collaboration Suite Mail Information MSLG Collects Microsoft Languages Information ND Collects Oracle Communications Network Discovery Information NET Collects Network Information NM Collects Oracle Communications Network Mediation Information NPRF Samples Performance Information (root not required) OCAL Collects Oracle Calendar Information OCFS Collects Oracle Cluster File System Information OCM Setting up Configuration Manager Interface OCS Controls Oracle Collaboration Suite Data Collection ODI Collects Oracle Data Integrator Information ODM Collects Oracle Data Mining Information OES Collects Oracle Express Server Information OID Collects Oracle Internet Directory Information OIM Collects Oracle Identity Manager Information OLAP Collects OLAP Information OMM Collects Oracle Multimedia or Oracle interMedia Information OMS Collects Oracle Management Server Information (obsolete) ONET Collects Oracle Net Information OS Collects the Operating System Information OVD Collects Oracle Virtual Directory Information OVMM Collects Oracle VM Manager Information OVMS Collects Oracle VM Server Information OWB Collects Oracle Warehouse Builder Information OWSM Collects Oracle Web Services Manager Information PDA Collects Oracle Portal Information PDBA Collects PeopleSoft Information from an Oracle Database PERF Collects Performance Information PLNC Collects Oracle PL/SQL Native Compilation Information PROF Collects the User Profile PS Collects Oracle Communications Policy Services Information PWEB Collects PeopleSoft Information from Web Application Server RAC Collects Cluster Information RACD Performs a Database Hang Analysis RDSP Produces the Remote Data Collection Reports RET Collects Oracle Retail Information REXE Performs the Remote Data Collections RPRF Samples Performance Information (root privileges required) RSRC Collects Database Resource Manager Information RTC Collects Real Time Communication Information SEBL Collects Siebel Information SES Collects Oracle Secure Enterprise Search Information SMPL Controls Sampling SOA Collects Oracle SOA Suite Information SP Collects SQL*Plus/iSQL*Plus Information SSO Collects Single Sign-On Information STC Collects Streams Configuration Information STM Collects Streams Monitoring Information TOPL Collects Oracle TopLink Information TTEN Collects Oracle TimesTen In-Memory Database Information UCM Collects Oracle Universal Content Management Information UOA Collects Oracle Universal Online Archive 11g Information WAC Collects Web Access Client Information WCI Collects Oracle WebCenter Information WEBC Collects Oracle Web Cache Information WKSP Collects Workspaces Information WLS Collects Oracle WebLogic Server Information WMC Collects Webmail Client Information WRLS Collects Wireless Information XDB Collects XDB Information XSMP Samples User Defined Data XTRA Collects User Defined Data4)我们选择四个模块(OS DB DBA INST)配置一下只要按照提示的信息进行配置即可,基本上都可以使用默认设置的内容。需要注意的是最后两步我们这里输入“/”和“Y”,目的是在运行RDA采集信息的过程中不需要输入密码,避免交互操作。ora10gsecDB /home/oracle/RDA/rda$ ./rda.sh -S OS DB DBA INST-S000INI: Initializes the Data Collection-RDA uses the output file prefix to identify all files belonging to the samedata collection. The prefix must start with a letter and must contain onlyalphanumeric characters.Enter the prefix to be used for all the generated filesHit Return to accept the default (RDA)Enter the directory used for all the files to be generatedHit Return to accept the default (/home/oracle/RDA/rda/output)Do you want to keep report packages from previous runs (Y/N)?Hit Return to accept the default (N)Is a fresh collection performed as the default action (Y/N)?Hit Return to accept the default (Y)Enter the Oracle home to be used for data analysisHit Return to accept the default (/oracle/app/oracle/product/10.2.0/db_1)Enter the domain name for this server localhost.localdomain-S010CFG: Collects Key Configuration Information-S090OCM: Set up the Configuration Manager Interface-RDA benefits from Oracle Configuration Manager by improving its datacollection. Oracle Configuration Manager (OCM) collects the configurationinformation and uploads it to the OCM Repository in connected mode. When OCMis configured in disconnected mode, it adds the OCM payload to the RDA reportpackages in future RDA runs.Select the mode that you want to install Oracle Configuration Manager in/oracle/app/oracle/product/10.2.0/db_1 C Connected Mode D Disconnected ModeEnter the letter corresponding to your choiceHit Return to accept the default (C)Do you want to install OCM Database collection scripts (Y/N)?Hit Return to accept the default (Y)Enter a SYSDBA user for installing the OCM Database collection scriptsHit Return to accept the default (sys)Is /oracle/app/oracle/product/10.2.0/db_1 an Oracle E-Business Suite DatabaseOracle home (Y/N)?Hit Return to accept the default (N)-S909RDSP: Produces the Remote Data Collection Reports-S919LOAD: Produces the External Collection Reports-S990FLTR: Controls Report Content Filtering-S999END: Finalizes the Data Collection-S100OS: Collects the Operating System Information-S130INST: Collects the Oracle Installation Information-S200DB: Controls RDBMS Data Collection-Is there a database for RDA to analyze (Y/N)?Hit Return to accept the default (Y)Is the database associated to the current Oracle home (Y/N)?Hit Return to accept the default (Y)Enter the Oracle SID to be analyzedHit Return to accept the default (ora10g)Is the INIT.ORA for the database to be analyzed located on this system? (Y/N)Hit Return to accept the default (Y)Enter the location of the spfile or the INIT.ORA (including the directory andfile name)Hit Return to accept the default(/oracle/app/oracle/product/10.2.0/db_1/dbs/spfileora10g.ora)Enter an Oracle User ID (userid only) to view DBA_ and V$ tables. If RDA willbe run under the Oracle software owners ID, enter a forward slash (/) here,and enter Y at the SYSDBA prompt to avoid a prompt for the database passwordat runtime.Hit Return to accept the default (system) /Is / a SYSDBA user (will connect as SYSDBA) (Y/N)?Hit Return to accept the default (N) Y-S201DBA: Collects RDBMS Information-配置完成后,会在当前目录下生成output目录和配置文件setup.cfg(如果再次执行配置过程,会生成备份文件setup.bak,只保存一份备份文件。)。配置文件setup.cfg是可编辑的,可以直接对其进行调整。5)此时再使用“-L modules”选项查看,如果模块名前有“*”号表示已经配置过。这里为显示清晰,省略一部分输出信息。最后一行有关于“*”号的解释ora10gsecDB /home/oracle/RDA/rda$ ./rda.sh -L modulesAvailable data collection modules are: ACFS Collects ASM Cluster File System Information. .*DB Controls RDBMS Data Collection*DBA Collects RDBMS Information DBC Collects Database Control Information. .*FLTR Controls Report Content Filtering. .*INST Collects the Oracle Installation Information. .*OS Collects the Operating System Information. . XTRA Collects User Defined DataA * before a module name indicates that its setup has been done.6)我们使用“-vCRP OS DB DBA INST”选项运行RDA对系统进行信息采集ora10gsecDB /home/oracle/RDA/rda$ ./rda.sh -vCRP OS DB DBA INST Collecting diagnostic data .-RDA Data Collection Started 05-Mar-2010 07:21:40-Processing Initialization module .Processing OCM module .Processing CFG module .Processing OS module .Processing Oracle installation module .Processing RDBMS module .Processing RDSP module .Processing LOAD module .Processing End module .-RDA Data Collection Ended 05-Mar-2010 07:22:11- Generating the reports . - RDA_OS_numactl.txt . - RDA_DBA_partition_data.txt . - RDA_INST_inventory_xml.txt . - RDA_DBA_vHWM_Statistic.txt . - RDA_DBA

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论