Table of Contents
RACCheck Overview
- Verify that Oracle user is using bash SHELL ( RACCHECK is written for bash SHELL )
- If needed change SHELL to /bin/bash in /etc/passwd just for running RACCHECK
- Configure and test sudo access for user Oracle
- Run RACCHECK as oracle user
RACCheck and CSH
If using csh you may get the following error running ssh commands: Ambiguous output redirect. raccheck: line 11913: [: -le: unary operator expected Note most of the remote scripts are setting the env by running /tmp/set_orcl_env.sh to set the env /usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -q grac42 ' . /tmp/set_orcl_env.sh; interconnect_net=$($CRS_HOME/bin/oifcfg getif|grep cluster_interconnect|awk '\''{ print $1}'\''|perl -pe '\''s/\n$/ /'\'');echo$interconnect_net' set_orcl_env.sh SHELL script #!/bin/env bash if [ -e /home/oracle/.bash_profile ]; then . /home/oracle/.bash_profile>/dev/null 2>&1;fi export CRS_HOME=/u01/app/11204/grid export OUTPUTDIR=/home/oracle/RACCHECK/V2232/r1_022214_092903 if [[ "${LD_LIBRARY_PATH:-unset}" = "unset" ]] ; then LD_LIBRARY_PATH=""; fi LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/u01/app/oracle/product/11204/racdb/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u01/app/oracle/product/11204/racdb/lib:/u01/app/11204/grid/lib export ORACLE_HOME=/u01/app/oracle/product/11204/racdb export ORACLE_SID=grac42
Print RACCheck version
$ raccheck -v
RACCHECK VERSION: 2.2.3.2_20131213
Configure sudo for RACCheck
Run RACcheck on Oracle Database servers as the Oracle Database software owner (oracle). 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_orachk.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]:- Note: If you chose option 1, to provide root password when prompted, you will be prompted once for each node during the data collection phase for the nodes (unless expect is installed). If you do not enter the root password in a timely way (within RACCHECK_TIMEOUT) then the root privileged collections and audit checks for that node will be skipped. For functionality of parallel execution of ORAchk on all cluster nodes, the expect utility MUST be installed. For this reason it is highly recommended that the expect utility be installed on the systems.