Testing RAC Check audit tool

August 8th, 2011 | Posted in 11gR2, Blog, RAC | 3 Comments

   

Introduction:

RACcheck is a tool developed by Oracle to audit your RAC and clusterware configurations.
It gives suggestions and advices to modify your RAC Configuration to fit the Oracle best practices.
This tool checks the settings of the following configurations;

– OS kernel parameters, OS packages and OS settings
– CRS/Grid Infrastructure
– RDBMS ; memory and database parameters
– ASM parameters and statistics.

Test:

I have tested the tool on my RAC 11.2.0.1 , 2 nodes on Oracle Enterprise Linux. It is a RAC system installed on VirtualBox so it is not optimal. It is just my test system.

This tool can also be run from RAC 10.2.0.1.

First of all download the tool from MOS ID: 1268927.1

Unzip the file and give it the following rights;

[oracle@orac1 raccheck]$ ls
RACcheck.zip
[oracle@orac1 raccheck]$ unzip RACcheck.zip
Archive:  RACcheck.zip
  inflating: raccheck
  inflating: readme.txt
  inflating: UserGuide.txt
  inflating: collections.dat
  inflating: rules.dat
   creating: .cgrep/
  inflating: .cgrep/lcgrep5
  inflating: .cgrep/lcgrep4
  inflating: .cgrep/lcgrep6
  inflating: .cgrep/lcgreps9
  inflating: .cgrep/lcgreps10
  inflating: .cgrep/acgrep
  inflating: .cgrep/scgrep
  inflating: .cgrep/scgrepx86
[oracle@orac1 raccheck]$ 

[oracle@orac1 raccheck]$ chmod 755 raccheck
[oracle@orac1 raccheck]$

Run the tool;


[oracle@orac1 raccheck]$ ./raccheck -a

CRS stack is running and CRS_HOME is not set. Do you want to set CRS_HOME to /u01/app/11.2.0/grid?[y/n][y]y
Node orac2 is configured for ssh user equivalency for oracle user

Searching for running databases . . . . .

. . . 

raccheck found database RAC registered in OCR. Is this the database to check best practices for?[y/n][y]y
Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-------------------------------------------------------------------------------------------------------
                                                 Oracle Stack Status
-------------------------------------------------------------------------------------------------------
Host Name  CRS Installed  ASM HOME       RDBMS Installed  CRS UP    ASM UP    RDBMS UP  DB Instance Name
-------------------------------------------------------------------------------------------------------
orac1       Yes             Yes             Yes             Yes        Yes      Yes      RAC1
orac2       Yes             Yes             Yes             Yes        Yes      Yes      RAC2
-------------------------------------------------------------------------------------------------------

140 of the included audit checks require root privileged data collection . If sudo is not configured or the root password is not available, audit checks which  require root privileged data collection can be skipped.

1. Enter 1 if you will enter root password for each  host when prompted

2. Enter 2 if you have sudo configured for oracle user to execute root_raccheck.sh script 

3. Enter 3 to skip the root privileged collections 

4. Enter 4 to exit and work with the SA to configure sudo  or to arrange for root access and run the tool later.
Please indicate your selection from one of the above options[1-4][1]:- 1

*** Checking RAC Best Practice Recommendations (PASS/WARNING/FAIL) ***

Performing SQL collections for use with audit checks on RAC...please stand by.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 

Log file for collections and audit checks are at
/home/oracle/raccheck/raccheck_080311_124252/raccheck.log

=============================================================
                    Node name - orac1
=============================================================
Collecting - ASM DIsk I/O stats
Collecting - ASM Disk Groups
Collecting - ASM disk partnership imbalance
Collecting - ASM diskgroup attributes
Collecting - ASM initialization parameters
Collecting - Active sessions load balance for RAC database
Collecting - Archived Destination Status for RAC database
Collecting - CONNECT Role Grantees for RAC database
Collecting - Cluster Interconnect Config for RAC database
Collecting - Data Files In Backup Mode for RAC database
Collecting - Database Archive Destinations for RAC database
Collecting - Database Component Status for RAC database
Collecting - Database Files for RAC database
Collecting - Database Instance Settings for RAC database
Collecting - Database Parameters for RAC database
Collecting - Database Properties for RAC database
Collecting - Database Registry for RAC database
Collecting - Database Sequences for RAC database
Collecting - Database Undocumented Parameters for RAC database
Collecting - Database Workload Services for RAC database
Collecting - Dataguard Status for RAC database
Collecting - Files Needing Media Recovery for RAC database
Collecting - Files not opened by ASM
Collecting - INVALID SYS and SYSTEM objects for RAC database
Collecting - INVALID application objects for RAC database
Collecting - Invalid Java Objects for RAC database
Collecting - Invalid Registry Components for RAC database
Collecting - JVM Roles for RAC database
Collecting - Log Sequence Numbers for RAC database
Collecting - Objects Duplicated in SYS and SYSTEM Schema for RAC database
Collecting - Percentage of asm disk  Imbalance
Collecting - Process for shipping Redo to standby for RAC database
Collecting - Redo Log information for RAC database
Collecting - Standby redo log creation status before switchover for RAC database
Collecting - CPU Information
Collecting - CRS active version
Collecting - CRS oifcfg
Collecting - CRS software version
Collecting - CSS Reboot time
Collecting - CSS diagwait
Collecting - CSS disktimout
Collecting - CSS miscount
Collecting - Cluster interconnect (clusterware)
Collecting - Clusterware OCR healthcheck
Collecting - Clusterware Resource Status
Collecting - Huge pages configuration
Collecting - Kernel parameters
Collecting - Linux module config.
Collecting - Maximum number of semaphore sets on system
Collecting - Maximum number of semaphores on system
Collecting - Maximum number of semaphores per semaphore set
Collecting - Memory Information
Collecting - OS Packages
Collecting - Oracle Executable Attributes
Collecting - Shared memory segments
Collecting - Table of file system defaults
Collecting - Voting disks (clusterware)
Collecting - number of semaphore operations per semop system call

Preparing to run root privileged commands  orac1.  Please enter root password when prompted.
root@orac1's password:
Collecting - CRS user limits configuration
Collecting - CRS user time zone check
Collecting - Custom rc init scripts (rc.local)
Collecting - Interconnect interface config
Collecting - Network interface stats
Collecting - OCFS2 disks
/tmp/root_raccheck.sh: line 30: /sbin/mounted.ocfs2: No such file or directory
Collecting - Root Open File Limit
Collecting - ocsf status
/tmp/root_raccheck.sh: line 39: /etc/init.d/o2cb: No such file or directory
Collecting - root time zone check 

Data collections completed. Checking best practices on orac1.
--------------------------------------------------------------------------------------

 INFO =>    $CRS_HOME/log/hostname/client directory has too many older log files.
 INFO =>    user_dump_dest has trace files older than 30 days for RAC
 INFO =>    ORA-00600 errors found in alert log for RAC
 INFO =>    background_dump_dest has files older than 30 days for RAC
 WARNING => fast_start_mttr_target has NOT been changed from default on RAC1 instance
 INFO =>    audit_file_dest has audit files older than 30 days for RAC
 WARNING => Controlfile is NOT multiplexed for RAC
 WARNING => One or more redo log groups are NOT multiplexed for RAC
 INFO =>    oracleasm (asmlib) module is NOT loaded
 WARNING => kernel.shmmax parameter is NOT configured according to recommendation
 WARNING => Open file limit for root user (ulimit -n) is NOT >= 65536 or unlimited
 INFO =>    Number of SCAN listeners is NOT equal to the recommended number of 3.
 WARNING => NIC bonding is  not configured for interconnect
 WARNING => NIC bonding is NOT configured for public network (VIP)
 WARNING => crsd Log Ownership is NOT Correct (should be root root)
 WARNING => crsd/orarootagent_root Log Ownership is NOT Correct (should be root root)
 WARNING => ohasd/orarootagent_root Log Ownership is NOT Correct (should be root root)
 WARNING => ohasd Log Ownership is NOT Correct (should be root root)
 WARNING => OSWatcher is not running as is recommended.
 INFO =>    Jumbo frames (MTU 9000) are not configured for interconnect
 WARNING => kernel parameter rp_filter is set to 1.

Best Practice checking completed.Checking recommended patches on orac1.
---------------------------------------------------------------------------------

Collecting patch inventory on  CRS HOME /u01/app/11.2.0/grid
Collecting patch inventory on ORACLE_HOME /u01/app/oracle/product/11.2.0/dbhome_1
---------------------------------------------------------------------------------
1 Recommended CRS patches for 112010 from /u01/app/11.2.0/grid on orac1
---------------------------------------------------------------------------------
Patch#   CRS  ASM    RDBMS RDBMS_HOME                              Patch-Description
---------------------------------------------------------------------------------
9655006   no          no  /u01/app/oracle/product/11.2.0/dbhome_1GI PSU 11.2.0.1.2 (INCLUDES DATABASE PS
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
1 Recommended RDBMS patches for 112010 from /u01/app/oracle/product/11.2.0/dbhome_1 on orac1
---------------------------------------------------------------------------------
Patch#   RDBMS    ASM     type                Patch-Description
---------------------------------------------------------------------------------
11724930  no             merge               DATABASE PSU 11.2.0.1.5 (INCLUDES CPUAPR
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
              Clusterware patches summmary report
---------------------------------------------------------------------------------
Total patches  Applied on CRS Applied on RDBMS Applied on ASM
---------------------------------------------------------------------------------
1              0              0                0
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
              RDBMS homes patches summmary report
---------------------------------------------------------------------------------
Total patches  Applied on RDBMS Applied on ASM ORACLE_HOME
---------------------------------------------------------------------------------
 1              0              0                /u01/app/oracle/product/11.2.0/dbhome_1
---------------------------------------------------------------------------------

=============================================================
                    Node name - orac2
=============================================================
Collecting - CPU Information
Collecting - CRS active version
Collecting - CRS oifcfg
Collecting - CRS software version
Collecting - Cluster interconnect (clusterware)
Collecting - Huge pages configuration
Collecting - Kernel parameters
Collecting - Linux module config.
Collecting - Maximum number of semaphore sets on system
Collecting - Maximum number of semaphores on system
Collecting - Maximum number of semaphores per semaphore set
Collecting - Memory Information
Collecting - OS Packages
Collecting - Oracle Executable Attributes
Collecting - Shared memory segments
Collecting - Table of file system defaults
Collecting - number of semaphore operations per semop system call
Preparing to run root privileged commands  orac2.  Please enter root password when prompted.
root@orac2's password: 

Data collections completed. Checking best practices on orac2.
--------------------------------------------------------------------------------------

 INFO =>    $CRS_HOME/log/hostname/client directory has too many older log files.
 INFO =>    user_dump_dest has trace files older than 30 days for RAC
 INFO =>    background_dump_dest has files older than 30 days for RAC
 WARNING => Open files limit (ulimit -n) for current user is NOT set to recommended value >= 65536 or unlimited

From the output above, you can see the tool suggested to modify many parameters including kernel values, purge log files, network configuration, recommended patches and security options.
More details about the tool can be found on MOS ID: 1268927.1

Introduction:

RACcheck est un outil développé par Oracle pour vérifier les configurations du cluster et du RAC.
L’outil offre des conseils pour modifier votre configuration RAC afin de répondre aux paramètres optimaux conseillés par Oracle.
L’outil vérifie les configurations suivantes:

– Les paramètre du kernel, les paquets du système opératif.
– CRS/ l’ Infrastructure Grid.
– SGBD ; mémoire et paramètres de bases de données.
– Les paramètres ASM et statistiques..

Teste:

J’ai mi testé l’outil dans mon environnement de teste RAC 11.2.0.1, un RAC à 2 nodes sous Oracle Enterprise Linux. Ce système est installé sous des machines virtuelles. Ce n’est pas un système optimal mais il donnera une idée ce qui est l’outil.

Cet outil peut être utilisé aussi pour des BD à partir de 10.2.0.1

Tout d’abord, téléchargez l’outil de MOS ID: 1268927.1

Décompressez le fichier et changez les permissions;

[oracle@orac1 raccheck]$ ls
RACcheck.zip
[oracle@orac1 raccheck]$ unzip RACcheck.zip
Archive:  RACcheck.zip
  inflating: raccheck
  inflating: readme.txt
  inflating: UserGuide.txt
  inflating: collections.dat
  inflating: rules.dat
   creating: .cgrep/
  inflating: .cgrep/lcgrep5
  inflating: .cgrep/lcgrep4
  inflating: .cgrep/lcgrep6
  inflating: .cgrep/lcgreps9
  inflating: .cgrep/lcgreps10
  inflating: .cgrep/acgrep
  inflating: .cgrep/scgrep
  inflating: .cgrep/scgrepx86
[oracle@orac1 raccheck]$ 

[oracle@orac1 raccheck]$ chmod 755 raccheck
[oracle@orac1 raccheck]$

Excécutez l’outil;


[oracle@orac1 raccheck]$ ./raccheck -a

CRS stack is running and CRS_HOME is not set. Do you want to set CRS_HOME to /u01/app/11.2.0/grid?[y/n][y]y
Node orac2 is configured for ssh user equivalency for oracle user

Searching for running databases . . . . .

. . . 

raccheck found database RAC registered in OCR. Is this the database to check best practices for?[y/n][y]y
Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-------------------------------------------------------------------------------------------------------
                                                 Oracle Stack Status
-------------------------------------------------------------------------------------------------------
Host Name  CRS Installed  ASM HOME       RDBMS Installed  CRS UP    ASM UP    RDBMS UP  DB Instance Name
-------------------------------------------------------------------------------------------------------
orac1       Yes             Yes             Yes             Yes        Yes      Yes      RAC1
orac2       Yes             Yes             Yes             Yes        Yes      Yes      RAC2
-------------------------------------------------------------------------------------------------------

140 of the included audit checks require root privileged data collection . If sudo is not configured or the root password is not available, audit checks which  require root privileged data collection can be skipped.

1. Enter 1 if you will enter root password for each  host when prompted

2. Enter 2 if you have sudo configured for oracle user to execute root_raccheck.sh script 

3. Enter 3 to skip the root privileged collections 

4. Enter 4 to exit and work with the SA to configure sudo  or to arrange for root access and run the tool later.
Please indicate your selection from one of the above options[1-4][1]:- 1

*** Checking RAC Best Practice Recommendations (PASS/WARNING/FAIL) ***

Performing SQL collections for use with audit checks on RAC...please stand by.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 

Log file for collections and audit checks are at
/home/oracle/raccheck/raccheck_080311_124252/raccheck.log

=============================================================
                    Node name - orac1
=============================================================
Collecting - ASM DIsk I/O stats
Collecting - ASM Disk Groups
Collecting - ASM disk partnership imbalance
Collecting - ASM diskgroup attributes
Collecting - ASM initialization parameters
Collecting - Active sessions load balance for RAC database
Collecting - Archived Destination Status for RAC database
Collecting - CONNECT Role Grantees for RAC database
Collecting - Cluster Interconnect Config for RAC database
Collecting - Data Files In Backup Mode for RAC database
Collecting - Database Archive Destinations for RAC database
Collecting - Database Component Status for RAC database
Collecting - Database Files for RAC database
Collecting - Database Instance Settings for RAC database
Collecting - Database Parameters for RAC database
Collecting - Database Properties for RAC database
Collecting - Database Registry for RAC database
Collecting - Database Sequences for RAC database
Collecting - Database Undocumented Parameters for RAC database
Collecting - Database Workload Services for RAC database
Collecting - Dataguard Status for RAC database
Collecting - Files Needing Media Recovery for RAC database
Collecting - Files not opened by ASM
Collecting - INVALID SYS and SYSTEM objects for RAC database
Collecting - INVALID application objects for RAC database
Collecting - Invalid Java Objects for RAC database
Collecting - Invalid Registry Components for RAC database
Collecting - JVM Roles for RAC database
Collecting - Log Sequence Numbers for RAC database
Collecting - Objects Duplicated in SYS and SYSTEM Schema for RAC database
Collecting - Percentage of asm disk  Imbalance
Collecting - Process for shipping Redo to standby for RAC database
Collecting - Redo Log information for RAC database
Collecting - Standby redo log creation status before switchover for RAC database
Collecting - CPU Information
Collecting - CRS active version
Collecting - CRS oifcfg
Collecting - CRS software version
Collecting - CSS Reboot time
Collecting - CSS diagwait
Collecting - CSS disktimout
Collecting - CSS miscount
Collecting - Cluster interconnect (clusterware)
Collecting - Clusterware OCR healthcheck
Collecting - Clusterware Resource Status
Collecting - Huge pages configuration
Collecting - Kernel parameters
Collecting - Linux module config.
Collecting - Maximum number of semaphore sets on system
Collecting - Maximum number of semaphores on system
Collecting - Maximum number of semaphores per semaphore set
Collecting - Memory Information
Collecting - OS Packages
Collecting - Oracle Executable Attributes
Collecting - Shared memory segments
Collecting - Table of file system defaults
Collecting - Voting disks (clusterware)
Collecting - number of semaphore operations per semop system call

Preparing to run root privileged commands  orac1.  Please enter root password when prompted.
root@orac1's password:
Collecting - CRS user limits configuration
Collecting - CRS user time zone check
Collecting - Custom rc init scripts (rc.local)
Collecting - Interconnect interface config
Collecting - Network interface stats
Collecting - OCFS2 disks
/tmp/root_raccheck.sh: line 30: /sbin/mounted.ocfs2: No such file or directory
Collecting - Root Open File Limit
Collecting - ocsf status
/tmp/root_raccheck.sh: line 39: /etc/init.d/o2cb: No such file or directory
Collecting - root time zone check 

Data collections completed. Checking best practices on orac1.
--------------------------------------------------------------------------------------

 INFO =>    $CRS_HOME/log/hostname/client directory has too many older log files.
 INFO =>    user_dump_dest has trace files older than 30 days for RAC
 INFO =>    ORA-00600 errors found in alert log for RAC
 INFO =>    background_dump_dest has files older than 30 days for RAC
 WARNING => fast_start_mttr_target has NOT been changed from default on RAC1 instance
 INFO =>    audit_file_dest has audit files older than 30 days for RAC
 WARNING => Controlfile is NOT multiplexed for RAC
 WARNING => One or more redo log groups are NOT multiplexed for RAC
 INFO =>    oracleasm (asmlib) module is NOT loaded
 WARNING => kernel.shmmax parameter is NOT configured according to recommendation
 WARNING => Open file limit for root user (ulimit -n) is NOT >= 65536 or unlimited
 INFO =>    Number of SCAN listeners is NOT equal to the recommended number of 3.
 WARNING => NIC bonding is  not configured for interconnect
 WARNING => NIC bonding is NOT configured for public network (VIP)
 WARNING => crsd Log Ownership is NOT Correct (should be root root)
 WARNING => crsd/orarootagent_root Log Ownership is NOT Correct (should be root root)
 WARNING => ohasd/orarootagent_root Log Ownership is NOT Correct (should be root root)
 WARNING => ohasd Log Ownership is NOT Correct (should be root root)
 WARNING => OSWatcher is not running as is recommended.
 INFO =>    Jumbo frames (MTU 9000) are not configured for interconnect
 WARNING => kernel parameter rp_filter is set to 1.

Best Practice checking completed.Checking recommended patches on orac1.
---------------------------------------------------------------------------------

Collecting patch inventory on  CRS HOME /u01/app/11.2.0/grid
Collecting patch inventory on ORACLE_HOME /u01/app/oracle/product/11.2.0/dbhome_1
---------------------------------------------------------------------------------
1 Recommended CRS patches for 112010 from /u01/app/11.2.0/grid on orac1
---------------------------------------------------------------------------------
Patch#   CRS  ASM    RDBMS RDBMS_HOME                              Patch-Description
---------------------------------------------------------------------------------
9655006   no          no  /u01/app/oracle/product/11.2.0/dbhome_1GI PSU 11.2.0.1.2 (INCLUDES DATABASE PS
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
1 Recommended RDBMS patches for 112010 from /u01/app/oracle/product/11.2.0/dbhome_1 on orac1
---------------------------------------------------------------------------------
Patch#   RDBMS    ASM     type                Patch-Description
---------------------------------------------------------------------------------
11724930  no             merge               DATABASE PSU 11.2.0.1.5 (INCLUDES CPUAPR
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
              Clusterware patches summmary report
---------------------------------------------------------------------------------
Total patches  Applied on CRS Applied on RDBMS Applied on ASM
---------------------------------------------------------------------------------
1              0              0                0
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
              RDBMS homes patches summmary report
---------------------------------------------------------------------------------
Total patches  Applied on RDBMS Applied on ASM ORACLE_HOME
---------------------------------------------------------------------------------
 1              0              0                /u01/app/oracle/product/11.2.0/dbhome_1
---------------------------------------------------------------------------------

=============================================================
                    Node name - orac2
=============================================================
Collecting - CPU Information
Collecting - CRS active version
Collecting - CRS oifcfg
Collecting - CRS software version
Collecting - Cluster interconnect (clusterware)
Collecting - Huge pages configuration
Collecting - Kernel parameters
Collecting - Linux module config.
Collecting - Maximum number of semaphore sets on system
Collecting - Maximum number of semaphores on system
Collecting - Maximum number of semaphores per semaphore set
Collecting - Memory Information
Collecting - OS Packages
Collecting - Oracle Executable Attributes
Collecting - Shared memory segments
Collecting - Table of file system defaults
Collecting - number of semaphore operations per semop system call
Preparing to run root privileged commands  orac2.  Please enter root password when prompted.
root@orac2's password: 

Data collections completed. Checking best practices on orac2.
--------------------------------------------------------------------------------------

 INFO =>    $CRS_HOME/log/hostname/client directory has too many older log files.
 INFO =>    user_dump_dest has trace files older than 30 days for RAC
 INFO =>    background_dump_dest has files older than 30 days for RAC
 WARNING => Open files limit (ulimit -n) for current user is NOT set to recommended value >= 65536 or unlimited

Comme vous pouvez voir ci-dessus, l’outil propose de modifier de nombreux paramètres dont les valeurs du kernel, purger les fichiers journaux, Configurer le réseau, appliquer des patchs recommandés et ajuster quelques options de sécurité.

Pour plus de détails, merci de lire le document MOS ID: 1268927.1

Introducción:

RACcheck es una herramienta desarrollada por Oracle para verificar sus configuraciones RAC y Clusterware.
La herramienta propone sugerencias y consejos para modificar su configuración RAC con el fin de seguir las recomendaciones Oracle.

La herramienta verifica las siguientes configuraciones;

– Parámetros del kernel, Los paquetes de sistemas…
– CRS/ La infraestructura Grid
– SGBD ; memorias y parámetros de bases de datos.
– parámetros ASM y sus estadísticas.

Test:

He comprobado la herramienta en mi RAC 11.2.0.1, 2 nodos en Oracle Enterprise Linux. Se trata de un sistema de RAC instalado en VirtualBox, así que no es del todo óptimo. Es sólo mi sistema de prueba.

Esta herramienta también se puede ejecutar desde las versiones de RAC 10.2.0.1.

En primer lugar descargar la herramienta desde My Oracle Support (MOS);
: 1268927.1

Descomprimir el archivo y darle los siguientes derechos;

[oracle@orac1 raccheck]$ ls
RACcheck.zip
[oracle@orac1 raccheck]$ unzip RACcheck.zip
Archive:  RACcheck.zip
  inflating: raccheck
  inflating: readme.txt
  inflating: UserGuide.txt
  inflating: collections.dat
  inflating: rules.dat
   creating: .cgrep/
  inflating: .cgrep/lcgrep5
  inflating: .cgrep/lcgrep4
  inflating: .cgrep/lcgrep6
  inflating: .cgrep/lcgreps9
  inflating: .cgrep/lcgreps10
  inflating: .cgrep/acgrep
  inflating: .cgrep/scgrep
  inflating: .cgrep/scgrepx86
[oracle@orac1 raccheck]$ 

[oracle@orac1 raccheck]$ chmod 755 raccheck
[oracle@orac1 raccheck]$

Ejecutar la herramienta;


[oracle@orac1 raccheck]$ ./raccheck -a

CRS stack is running and CRS_HOME is not set. Do you want to set CRS_HOME to /u01/app/11.2.0/grid?[y/n][y]y
Node orac2 is configured for ssh user equivalency for oracle user

Searching for running databases . . . . .

. . . 

raccheck found database RAC registered in OCR. Is this the database to check best practices for?[y/n][y]y
Checking Status of Oracle Software Stack - Clusterware, ASM, RDBMS

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
-------------------------------------------------------------------------------------------------------
                                                 Oracle Stack Status
-------------------------------------------------------------------------------------------------------
Host Name  CRS Installed  ASM HOME       RDBMS Installed  CRS UP    ASM UP    RDBMS UP  DB Instance Name
-------------------------------------------------------------------------------------------------------
orac1       Yes             Yes             Yes             Yes        Yes      Yes      RAC1
orac2       Yes             Yes             Yes             Yes        Yes      Yes      RAC2
-------------------------------------------------------------------------------------------------------

140 of the included audit checks require root privileged data collection . If sudo is not configured or the root password is not available, audit checks which  require root privileged data collection can be skipped.

1. Enter 1 if you will enter root password for each  host when prompted

2. Enter 2 if you have sudo configured for oracle user to execute root_raccheck.sh script 

3. Enter 3 to skip the root privileged collections 

4. Enter 4 to exit and work with the SA to configure sudo  or to arrange for root access and run the tool later.
Please indicate your selection from one of the above options[1-4][1]:- 1

*** Checking RAC Best Practice Recommendations (PASS/WARNING/FAIL) ***

Performing SQL collections for use with audit checks on RAC...please stand by.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 

Log file for collections and audit checks are at
/home/oracle/raccheck/raccheck_080311_124252/raccheck.log

=============================================================
                    Node name - orac1
=============================================================
Collecting - ASM DIsk I/O stats
Collecting - ASM Disk Groups
Collecting - ASM disk partnership imbalance
Collecting - ASM diskgroup attributes
Collecting - ASM initialization parameters
Collecting - Active sessions load balance for RAC database
Collecting - Archived Destination Status for RAC database
Collecting - CONNECT Role Grantees for RAC database
Collecting - Cluster Interconnect Config for RAC database
Collecting - Data Files In Backup Mode for RAC database
Collecting - Database Archive Destinations for RAC database
Collecting - Database Component Status for RAC database
Collecting - Database Files for RAC database
Collecting - Database Instance Settings for RAC database
Collecting - Database Parameters for RAC database
Collecting - Database Properties for RAC database
Collecting - Database Registry for RAC database
Collecting - Database Sequences for RAC database
Collecting - Database Undocumented Parameters for RAC database
Collecting - Database Workload Services for RAC database
Collecting - Dataguard Status for RAC database
Collecting - Files Needing Media Recovery for RAC database
Collecting - Files not opened by ASM
Collecting - INVALID SYS and SYSTEM objects for RAC database
Collecting - INVALID application objects for RAC database
Collecting - Invalid Java Objects for RAC database
Collecting - Invalid Registry Components for RAC database
Collecting - JVM Roles for RAC database
Collecting - Log Sequence Numbers for RAC database
Collecting - Objects Duplicated in SYS and SYSTEM Schema for RAC database
Collecting - Percentage of asm disk  Imbalance
Collecting - Process for shipping Redo to standby for RAC database
Collecting - Redo Log information for RAC database
Collecting - Standby redo log creation status before switchover for RAC database
Collecting - CPU Information
Collecting - CRS active version
Collecting - CRS oifcfg
Collecting - CRS software version
Collecting - CSS Reboot time
Collecting - CSS diagwait
Collecting - CSS disktimout
Collecting - CSS miscount
Collecting - Cluster interconnect (clusterware)
Collecting - Clusterware OCR healthcheck
Collecting - Clusterware Resource Status
Collecting - Huge pages configuration
Collecting - Kernel parameters
Collecting - Linux module config.
Collecting - Maximum number of semaphore sets on system
Collecting - Maximum number of semaphores on system
Collecting - Maximum number of semaphores per semaphore set
Collecting - Memory Information
Collecting - OS Packages
Collecting - Oracle Executable Attributes
Collecting - Shared memory segments
Collecting - Table of file system defaults
Collecting - Voting disks (clusterware)
Collecting - number of semaphore operations per semop system call

Preparing to run root privileged commands  orac1.  Please enter root password when prompted.
root@orac1's password:
Collecting - CRS user limits configuration
Collecting - CRS user time zone check
Collecting - Custom rc init scripts (rc.local)
Collecting - Interconnect interface config
Collecting - Network interface stats
Collecting - OCFS2 disks
/tmp/root_raccheck.sh: line 30: /sbin/mounted.ocfs2: No such file or directory
Collecting - Root Open File Limit
Collecting - ocsf status
/tmp/root_raccheck.sh: line 39: /etc/init.d/o2cb: No such file or directory
Collecting - root time zone check 

Data collections completed. Checking best practices on orac1.
--------------------------------------------------------------------------------------

 INFO =>    $CRS_HOME/log/hostname/client directory has too many older log files.
 INFO =>    user_dump_dest has trace files older than 30 days for RAC
 INFO =>    ORA-00600 errors found in alert log for RAC
 INFO =>    background_dump_dest has files older than 30 days for RAC
 WARNING => fast_start_mttr_target has NOT been changed from default on RAC1 instance
 INFO =>    audit_file_dest has audit files older than 30 days for RAC
 WARNING => Controlfile is NOT multiplexed for RAC
 WARNING => One or more redo log groups are NOT multiplexed for RAC
 INFO =>    oracleasm (asmlib) module is NOT loaded
 WARNING => kernel.shmmax parameter is NOT configured according to recommendation
 WARNING => Open file limit for root user (ulimit -n) is NOT >= 65536 or unlimited
 INFO =>    Number of SCAN listeners is NOT equal to the recommended number of 3.
 WARNING => NIC bonding is  not configured for interconnect
 WARNING => NIC bonding is NOT configured for public network (VIP)
 WARNING => crsd Log Ownership is NOT Correct (should be root root)
 WARNING => crsd/orarootagent_root Log Ownership is NOT Correct (should be root root)
 WARNING => ohasd/orarootagent_root Log Ownership is NOT Correct (should be root root)
 WARNING => ohasd Log Ownership is NOT Correct (should be root root)
 WARNING => OSWatcher is not running as is recommended.
 INFO =>    Jumbo frames (MTU 9000) are not configured for interconnect
 WARNING => kernel parameter rp_filter is set to 1.

Best Practice checking completed.Checking recommended patches on orac1.
---------------------------------------------------------------------------------

Collecting patch inventory on  CRS HOME /u01/app/11.2.0/grid
Collecting patch inventory on ORACLE_HOME /u01/app/oracle/product/11.2.0/dbhome_1
---------------------------------------------------------------------------------
1 Recommended CRS patches for 112010 from /u01/app/11.2.0/grid on orac1
---------------------------------------------------------------------------------
Patch#   CRS  ASM    RDBMS RDBMS_HOME                              Patch-Description
---------------------------------------------------------------------------------
9655006   no          no  /u01/app/oracle/product/11.2.0/dbhome_1GI PSU 11.2.0.1.2 (INCLUDES DATABASE PS
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
1 Recommended RDBMS patches for 112010 from /u01/app/oracle/product/11.2.0/dbhome_1 on orac1
---------------------------------------------------------------------------------
Patch#   RDBMS    ASM     type                Patch-Description
---------------------------------------------------------------------------------
11724930  no             merge               DATABASE PSU 11.2.0.1.5 (INCLUDES CPUAPR
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
              Clusterware patches summmary report
---------------------------------------------------------------------------------
Total patches  Applied on CRS Applied on RDBMS Applied on ASM
---------------------------------------------------------------------------------
1              0              0                0
---------------------------------------------------------------------------------

---------------------------------------------------------------------------------
              RDBMS homes patches summmary report
---------------------------------------------------------------------------------
Total patches  Applied on RDBMS Applied on ASM ORACLE_HOME
---------------------------------------------------------------------------------
 1              0              0                /u01/app/oracle/product/11.2.0/dbhome_1
---------------------------------------------------------------------------------

=============================================================
                    Node name - orac2
=============================================================
Collecting - CPU Information
Collecting - CRS active version
Collecting - CRS oifcfg
Collecting - CRS software version
Collecting - Cluster interconnect (clusterware)
Collecting - Huge pages configuration
Collecting - Kernel parameters
Collecting - Linux module config.
Collecting - Maximum number of semaphore sets on system
Collecting - Maximum number of semaphores on system
Collecting - Maximum number of semaphores per semaphore set
Collecting - Memory Information
Collecting - OS Packages
Collecting - Oracle Executable Attributes
Collecting - Shared memory segments
Collecting - Table of file system defaults
Collecting - number of semaphore operations per semop system call
Preparing to run root privileged commands  orac2.  Please enter root password when prompted.
root@orac2's password: 

Data collections completed. Checking best practices on orac2.
--------------------------------------------------------------------------------------

 INFO =>    $CRS_HOME/log/hostname/client directory has too many older log files.
 INFO =>    user_dump_dest has trace files older than 30 days for RAC
 INFO =>    background_dump_dest has files older than 30 days for RAC
 WARNING => Open files limit (ulimit -n) for current user is NOT set to recommended value >= 65536 or unlimited

A partir del log anterior, se puede ver que la herramienta sugiere modificar algunos parámetros, como por ejemplo; los valores del kernel, suprimir los antiguos archivos , configuración del red, los parches recomendados y algunos opciones de seguridad.

Más detalles acerca de la herramienta se puede encontrar en MOS ID: 1268927.1

Scridb filter


3 Comments to “Testing RAC Check audit tool”

  1. Nitin Kashiv says:

    Nice one we try to use in our Test environments

    ————

    To view the new comment, visit:
    http://www.oraclecommunity.net/profiles/blogs/testing-rac-check-audit-tool?commentId=1988559%3AComment%3A101891&xg_source=msg_com_blogpost

  2. mubeen says:

    thanks.

  3. Hitesh says:

    Hi,

    Can we use this RACcheck tool on oracle SE version ?

    Thanks


Leave a Comment





Subscribe


Polls

which oracle topic interests you most?

View Results

Loading ... Loading ...


Oracle Class Tweets


Recent Posts


Recent Comments

  • Jaspreet: Brilliant explanation.
  • Yousuf: Very Nice… Just wanted to check you have done all patching at Node 1 only.. is there any thing need to...
  • Yousuf: Very Nice.. Thanks for sharing.. Once question.. You have executed all commands on Node 1 only.. Is there any...
  • Emir: Thanks… Great article
  • borse firmate: Thank you for another informative blog. The place else may just I am getting that kind of information...
  • leandro: why this parameter is systemwide? could you read from a asm instance from one failure group and from the...
  • Mohammad: paul, we create pfile from target database to source database and later we change database name, and...
  • Muhammad Ikram: Thanks Brother for sharing pearls of knowledge. May ALLAH reward you for this both here and...
  • rgrover: Thanks for the POST. I recently encounter similar issue. Your POST helped.
  • gopalredy: really its very use full to dbas
  • Vivian: This is awesome! Thank you so much!
  • henry zhong: CDB=DB, and PDB=SCHEMA but in a sub dictionary?
  • Dehbashee: Salam Brother, Thanx for sharing, however, i would be interested in chaging the password for the grid user...
  • wissem: No we don’t need that :) Just the scripts I posted above
  • Md. Tanweer: Thanks for posting the material. I really appreciate if you can send me, if you have tutorial for 11g...
  • christiaan: Thanks!! This has been bugging the hell out of me for so long.
  • Rajasekhar: Thank you
  • Samarjit Panigrahy: Very Nice and Simple Demo… Cool :)
  • cq: Any reason not to use auto patch for both CRS and RAC homes with one command? Or use opatch auto for RAC home as...
  • Hitesh: Hi, Can we use this RACcheck tool on oracle SE version ? Thanks