2 de septiembre de 2021

Ejecutar RDA (Remote Diagnostic Agent) para validar un ORACLE RAC

 

Buenas!!, hace rato no escribo. En esta oportunidad les quiero mostrar como utilizar RDA, si bien es una herramienta que existe hace tiempo, no todos la conocen ni saben para que la podrían utilizar.

RDA es “Remote Diagnostic Agent”, es una tool de Oracle gratuita (Cuando nos referimos a gratuita que se necesita una cuenta de support con cualquier licencia, no se abona nada extra).

Nota de referencia de RDA: Oracle Support Document 314422.1 (Remote Diagnostic Agent (RDA) - Getting Started) can be found at: https://support.oracle.com/epmos/faces/DocumentDisplay?id=314422.1

Poque usar RDA?

Por lo gral el RDA lo pide support para tener un panorama general del ambiente frente un issue en algún ticket de support, pero también lo podemos usar nosotros para validar nuesto ambiente ya que recompila info de todos los servicios y productos de la instalación.  

Productos Soportados

Esta es la lista de productos soportados en la última versión de RDA que existe a la fecha:

  • OLAP Products (Express Server, Financial Analyzer, and Demand Planning Server)
  • Oracle Application Server (iAS 1.0.2.x/9.0.x/10.1.2.x/10.1.3.x,10.1.4.x,WebLogic Server (WLS) Release 9.x, 10.x, 11g and 12c (WLS), HTTP Server,WebCache,J2EE/OC4J)
  • Oracle Billing and Revenue Management products
  • Oracle BPEL Process Manager
  • Oracle Collaboration Suite (Email Server,Calendar,Discussions,Content Services,Workspaces,WebClient,and Wireless)
  • Oracle Data Integrator
  • Oracle Developer (Forms and Reports)
  • Oracle Ebusiness Suite 11i and 12
  • Oracle Enterprise Content
  • Oracle Enterprise Single Sign-on
  • Oracle Enterprise performance management (Hyperion) products
  • Oracle Guardian
  • Oracle Identity Management products
  • Oracle JDBC/PRO *C/ODBC and other development client related information
  • Oracle Management Server and Intelligent Agent (Grid Server, Agent Server, DB Control)
  • Oracle Networking products
  • Oracle RAC Cluster (Single/Multiple Nodes, Automatic Storage Management, Oracle Cluster File System, Data Guard)
  • Oracle RDBMS Server (Standard and Enterprise Editions)
  • Oracle Retail (Retek)
  • Oracle SQL*Plus/iSQL*Plus
  • Oracle TimesTen In-Memory Database
  • Oracle Universal Archive (11g)
  • PeopleSoft
  • Siebel

 En este caso voy a mostrarles como utilizarla para validar una Instalación de RAC que acabo de realizar hace poco, si bien funciona todo, no viene de más ejecutar el RDA para que valide todos los parámetros, variables y best practice para una instalación Estándar de Oracle RAC.

Y para este caso en particular tenemos justo una nota:

Oracle Support Document 359395.1 (Remote Diagnostic Agent (RDA) - RAC Cluster Guide) can be found at: https://support.oracle.com/epmos/faces/DocumentDisplay?id=359395.1

1.       Descargar RDA según plataforma: (en mi caso Oracle Linux 7)




Verán que es compatible con muchas plataformas!

Cuando lo descarguen, presten atención a la versión y año, ya que no lo muestra ordenado.


2.       Próximo paso lo descargo y lo pego por lo gral en el home del usuario grid.


sftp> put p21769913_204201020_LINUX.zip

     Uploading p21769913_204201020_LINUX.zip to       

     /home/oracle/p21769913_204201020_LINUX.zip

  100% 20637KB    322KB/s 00:01:04 

 [grid@]$ unzip p21769913_204201020_LINUX.zip


  Validación de RDA.

Hay que tomar en cuenta que como vamos a validar un RAC, el script lo debemos ejecutar como grid. No viene de más validar que el .zip que descargamos no tenga ningún problema, para eso se realiza una rápida validación:

[grid@]$ ./rda.sh -cv

Loading the file list ...



Checking the directory [D_RDA] . ...
Checking the directory [D_RDA] engine ...
Checking the directory [D_RDA_ADM] model ...
Checking the directory [D_RDA_CHK] APPS ...
Checking the directory [D_RDA_CHK] BI ...
Checking the directory [D_RDA_CHK] CGBU ...
Checking the directory [D_RDA_CHK] DB ...
Checking the directory [D_RDA_CHK] EM ...
Checking the directory [D_RDA_CHK] OFM ...
Checking the directory [D_RDA_CHK] TEST ...
Checking the directory [D_RDA_COL] APPS ...
Checking the directory [D_RDA_COL] BI ...
Checking the directory [D_RDA_COL] CGBU ...
Checking the directory [D_RDA_COL] CLOUD ...
Checking the directory [D_RDA_COL] DA ...
Checking the directory [D_RDA_COL] DB ...
Checking the directory [D_RDA_COL] EM ...
Checking the directory [D_RDA_COL] EXPLORER ...
Checking the directory [D_RDA_COL] OFM ...
Checking the directory [D_RDA_COL] OS ...
Checking the directory [D_RDA_COL] PGBU ...
Checking the directory [D_RDA_COL] RDA ...
Checking the directory [D_RDA_COL] SAMPLE ...
Checking the directory [D_RDA_COL] TOOL ...
Checking the directory [D_RDA_CSS] . ...
Checking the directory [D_RDA_DAT] . ...
Checking the directory [D_RDA_DFW] cv0200 ...
Checking the directory [D_RDA_INC] Convert/Common ...
Checking the directory [D_RDA_INC] Convert/DB/LOG ...
Checking the directory [D_RDA_INC] Convert/OFM/OIM ...
Checking the directory [D_RDA_INC] Convert/OS/INST ...
Checking the directory [D_RDA_INC] Convert/OS/OS ...
Checking the directory [D_RDA_INC] Convert/RDA/CONFIG ...
Checking the directory [D_RDA_INC] Convert/TOOL/ALERT ...
Checking the directory [D_RDA_INC] Convert/TOOL/COMPLY ...
Checking the directory [D_RDA_INC] IRDA ...
Checking the directory [D_RDA_INC] IRDA/CV0200 ...
Checking the directory [D_RDA_INC] RDA ...
Checking the directory [D_RDA_INC] RDA/Agent ...
Checking the directory [D_RDA_INC] RDA/Driver ...
Checking the directory [D_RDA_INC] RDA/Handle ...
Checking the directory [D_RDA_INC] RDA/Library ...
Checking the directory [D_RDA_INC] RDA/Limit ...
Checking the directory [D_RDA_INC] RDA/Local ...
Checking the directory [D_RDA_INC] RDA/Object ...
Checking the directory [D_RDA_INC] RDA/Operator ...
Checking the directory [D_RDA_INC] RDA/Request ...
Checking the directory [D_RDA_INC] RDA/SDCL ...
Checking the directory [D_RDA_INC] RDA/SDSL ...
Checking the directory [D_RDA_INC] RDA/Target ...
Checking the directory [D_RDA_INC] RDA/Token ...
Checking the directory [D_RDA_INC] RDA/UI ...
Checking the directory [D_RDA_INC] RDA/Value ...
Checking the directory [D_RDA_INC] RDA/Web ...
Checking the directory [D_RDA_MSG] charset ...
Checking the directory [D_RDA_MSG] desc ...
Checking the directory [D_RDA_MSG] en ...
Checking the directory [D_RDA_MSG] fr ...
Checking the directory [D_RDA_POD] en ...

No issues found

 

4.       Chequear Nodos y conectividad:

[grid@nodo01 rda]$ olsnodes

nodo01

nodo01

[grid@nodo01 rda]$ ssh nodo01

Last login: Sat Aug 21 16:08:38 2021

[grid@nodo02 ~]$ exit

 

5.       Para poder iniciar una recolección de información sobre el RAC, RDA necesita realizar una configuración inicial. Voy a mostrar el comando para la última versión RDA 8.X.

Recomiendo tener las variables de ambiente seteadas previamente, para que el RDA las reconozca automáticamente.

[grid@nodo1rda]$ ./rda.sh -vXRda start CLOUD -p Rac_Assessment

Creating collection "output" ...

        - Trying to identify the domain ... (can take time)

 Inside DFT scenario, define the input and profile targets

 Inside DFT scenario, check Oracle home or Middleware presence

        - RDA:DCbegin ...

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

RDA.BEGIN: Initializes the Data Collection

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

Enter the Oracle home to be used for data analysis

Press Return to accept the default (/u01/app/grid/18c)

> [ENTER]

 

        - RDA:DCconfig ...

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

RDA.CONFIG: Collects Key Configuration Information

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

        - RDA:DCocm ...

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

RDA.OCM: Set up the Configuration Manager Interface

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

        - RDA:DCstatus ...

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

RDA.STATUS: Produces the Remote Data Collection Reports

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

        - RDA:DCload ...

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

RDA.LOAD: Produces the External Collection Reports

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

        - RDA:DCfilter ...

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

RDA.FILTER: Controls Report Content Filtering

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

        - RDA:DCend ...

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

RDA.END: Finalizes the Data Collection

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

In CRS start scenario, getting nodes using /u01/app/grid/18c/bin/olsnodes

2>/dev/null

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

Requesting common cluster information

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

Enter the absolute path of the directory where RDA will be installed on the

remote nodes.

Press Return to accept the default (/home/grid/rda)

>[ENTER]

Do you want RDA to use an alternative login to execute remote requests (Y/N)?

Press Return to accept the default (N)

> [ENTER]

 

 

In CRS start scenario, getting local node information

In CRS start scenario, pinging node prorasf02

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

Requesting information for node prorasf01

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

Enter the Oracle home to be analyzed on the node prorasf01

Press Return to accept the default (/u01/app/grid/18c)

> [ENTER]

 

Enter the Oracle SID to be analyzed on the node prorasf01

> +ASM1

 

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

Requesting information for node prorasf02

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

Enter the Oracle home to be analyzed on the node prorasf02

Press Return to accept the default (/u01/app/grid/18c)

> [ENTER]

 

Enter the Oracle SID to be analyzed on the node prorasf02

> +ASM2 

 

        - RDA:DCremote ...

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

RAC Setup Summary

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

Nodes:

. NOD001  host01/+ASM1

. NOD002  host02/+ASM2

2 nodes found

[grid@ rda]$

 

6.       Ejecución Validar conectividad de los nodos configurados en el RDA (este comando también recolecta información) (Este paso demora según los recursos del servidor unos 20 a 30m)

[grid@host1]$ ./rda.sh -vC RDA.REMOTE list

Collecting diagnostic data ...

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

RDA Data Collection Started 21-Aug-2021 16:47:32

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

Processing RDA.BEGIN module ...

 Inside BEGIN module, testing the RDA engine code build

 Inside BEGIN module, testing the report directory

 Inside BEGIN module, testing the module targets

 Inside BEGIN module, launching parallel executions

Processing RDA.CONFIG module ...

 Inside CONFIG module, listing Oracle homes

 Inside CONFIG module, getting Oracle home inventory (can take time)

Processing RDA.REMOTE module ...

NOD001: Detecting storage type

NOD001: Running RDA command

NOD002: Detecting storage type

NOD002: Installing RDA software

NOD002: Running RDA command

 

NOD001: Transfering report package

NOD002: Transfering report package

Processing RDA.END module ...

 Inside END module, gathering system information

 Inside END module, getting CPU information (linux)

 Inside END module, getting memory information (linux)

 Inside END module, producing the file catalog

 Inside END module, producing target overview

 Inside END module, waiting for parallel execution completion

 Inside END module, producing setting overview

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

RDA Data Collection Ended 21-Aug-2021 16:57:05

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

 

7.       Ver Reporte

El RDa, genera 2 .zip con la información de cada nodo que nos deberíamos descargar y visualidar en un explorador.

Tomar en cuenta el espacio al descomprimirlos que pueden ser pesados. (1G por nodo)              

[grid@host1rda]$ ll output/remote/*

-rw-r-----. 1 grid oinstall 135000000 ago 21 16:55 output/remote/RDA_nod001_output.zip

-rw-r--r--. 1 grid oinstall 141063911 ago 21 16:56 output/remote/RDA_nod002_output.zip

 

Una vez que lo descomprimimos para visualizar el reporte abrimos el htm RDA_start.htm

 

Opción B.

También es posible ejecutar los paquetes disponibles aunque no del todo actualizados en el mismo RDA

[grid@host1  rda]$ ./rda.sh -T hcve

Processing HCVE tests ...

Available Pre-Installation Rule Sets:

1.Oracle Database 10g R1 (10.1.0) Preinstall (Linux)
2. Oracle Database 10g R2 (10.2.0) Preinstall (Linux)
3. Oracle Database 11g R1 (11.1) Preinstall (Linux)
4. Oracle Database 11g R2 (11.2.0) Preinstall (Linux)
5. Oracle Database 12c R1 (12.1.0) Preinstallation (Linux)
6. Oracle Database 12c R2 (12.2.0) Preinstallation (Linux)
7. Oracle Database 18c Preinstallation (Linux)
8. Oracle Database 19c Preinstallation (Linux)
9. Oracle Identity and Access Management PreInstall Check: Oracle Identity
and Access Management 11g Release 2 (11.1.2) Linux
10. Oracle JDeveloper PreInstall Check: Oracle JDeveloper 11g Release 2 (11.1.2.4) Linux
11. Oracle JDeveloper PreInstall Check: Oracle JDeveloper 12c (12.1.3)Linux
12. OAS PreInstall Check: Application Server 10g R2 (10.1.2) Linux
13. OAS PreInstall Check: Application Server 10g R3 (10.1.3) Linux
14. OFM PreInstall Check: Oracle Fusion Middleware 11g R1 (11.1.1) Linux
15. OFM PreInstall Check: Oracle Fusion Middleware 12c (12.1.3) Linux
16. OFM PreInstall Check: Oracle Fusion Middleware 12c (12.2.1.3.0) Linux
17. Oracle Forms and Reports PreInstall Check: Oracle Forms and Reports 11g Release 2 (11.1.2) Linux
18. Portal PreInstall Check: Oracle Portal Generic
19. IDM PreInstall Check: Identity Management 10g (10.1.4) Linux
20. BIEE PreInstall Check: Business Intelligence Enterprise Edition 11g (11.1.1) Linux
21. EPM PreInstall Check: Enterprise Performance Management Server (11.1.2) Generic
22. Oracle Enterprise Manager Cloud Control PreInstall Check: Oracle
Enterprise Manager Cloud Control 12c Release 4 (12.1.0.4) Linux
23. Oracle E-Business Suite Release 11i (11.5.10) Preinstall (Linux x86 and x86_64)
24. Oracle E-Business Suite Release 12 (12.1.1) Preinstall (Linux x86 and x86_64)
25. Oracle E-Business Suite Release 12 (12.2.0) Preinstall (Linux x86_64)

Available Post-Installation Rule Sets:
26. RAC 10G DB and OS Best Practices (Linux)
27. Data Guard Postinstall (Generic)
28. WLS PostInstall Check: WebLogic Server 11g (10.3.x) Generic
29. WLS PostInstall Check: WebLogic Server 12c (12.x) Generic
30. Portal PostInstall Check: Oracle Portal Generic
31. OC4J PostInstall Check: Oracle Containers for J2EE 10g (10.1.x) Generic
32. SOA PostInstall Check: Service-Oriented Architecture 11g and Later Generic
33. OSB PostInstall Check: Service Bus 11g and Later Generic
34. Oracle Forms 11g Post Installation (Generic)
35. Oracle Enterprise Manager Agent 12c Post Installation (Generic)
36. Oracle Management Server 12c Post Installation (Generic)
37. Network Charging and Control Database Post Installation (Generic)

Enter the HCVE rule set number or 0 to cancel the test

Press Return to accept the default (0)

> 26

 

Performing HCVE checks ...

 

Test "RAC 10G DB and OS Best Practices (Linux)" executed at 21-Aug-2021 17:36:22

 

Test Results

~~~~~~~~~~~~

 

ID     NAME                 RESULT  VALUE

====== ==================== ======= ==========================================

P00010 ORA_CRS_HOME         RECORD 

P00100 Database Name        RECORD 

P00102 Database Version     RECORD 

P00104 Interconnect Network RECORD 

P00106 DB Block Size        RECORD 

P00108 DB File Multiblock R RECORD 

P00120 Max Commit Propagati FAILED 

P00130 SYS.AUDSES$ Cache Si FAILED 

P00132 SYS.IDGEN1$ Cache Si FAILED 

P00140 Parallel Execution M FAILED 

P00150 Min Parallel Servers RECORD  0

P00152 parallel_min_servers FAILED 

P00200 $ORA_CRS_HOME Define FAILED  Missing

P00210 RemoteNodeInfo       PASSED  All loaded

P00220 _USR_ORA_DEBUG / CRS FAILED  host01:Unknown host01:Unknown

P00230 _USR_ORA_DEBUG / ORA FAILED  hosts02:? hosts02:?

P00240 rmem_max             PASSED  OK

P00250 UDP Buffer Size      PASSED  OK

P00260 wmem_max             PASSED  OK

P00270 rmem_default         PASSED  OK

P00280 wmem_default         PASSED  OK

P00290 SysRq Magic Keys     FAILED  host01:16 host02:16

P00300 Oracle Executable Li PASSED  linked

P00310 hangcheck-timer      FAILED  host01:Unknown host02:Unknown

P00320 aio-max-size Setting FAILED  hosts01:Unknown host02:Unknown

P00330 Memory (32-bit)      PASSED  OK

P00340 Swap (32-bit)        PASSED  OK

P00350 Swap (64-bit)        PASSED  OK

P00360 Patch List           PASSED  Complete

Result file: output/collect/DB_HCVE_P_RAC_lin_res.htm


 Espero que les sriva!!