# Append modifications to the end of the existing /etc/rc.d/rc.local script # # ============================================================================= # Oracle 9.0.1 RAC mods # sbourgeo 07/26/2002 # ============================================================================= # # Load Watchdog timer module # ----------------------------------------------------------------------------- /sbin/insmod softdog soft_margin=60 # ----------------------------------------------------------------------------- # # Set max shared memory segment size to 2 GB # ----------------------------------------------------------------------------- /bin/echo 2147483648 > /proc/sys/kernel/shmmax # # ----------------------------------------------------------------------------- # Bind RAC disk partitions to raw devices # ----------------------------------------------------------------------------- # Bind /dev/hdf5 - /dev/hdf22 to /dev/raw1 - /dev/raw18 raw_devno=1 blk_devno=5 dev_to_bind=19 dev_bound_cnt=0 while [ $dev_bound_cnt -lt $dev_to_bind ] do # Bind the partition /usr/bin/raw /dev/raw/raw$raw_devno /dev/hdf$blk_devno # Set permissions /bin/chmod 600 /dev/raw/raw$raw_devno /bin/chown oracle.dba /dev/raw/raw$raw_devno raw_devno=`expr $raw_devno + 1` blk_devno=`expr $blk_devno + 1` dev_bound_cnt=`expr $dev_bound_cnt + 1` done # ----------------------------------------------------------------------------- # # ----------------------------------------------------------------------------- # Start the Oracle Cluster Manager (OCM) and node monitor # ----------------------------------------------------------------------------- ORACLE_HOME=/d01/app/oracle/product/9.0.1 export ORACLE_HOME /bin/rm -f $ORACLE_HOME/oracm/log/ocmstart.ts $ORACLE_HOME/oracm/bin/ocmstart.sh # # ----------------------------------------------------------------------------- # Start the Oracle global services daemon (GSD) # ----------------------------------------------------------------------------- # # /bin/su - oracle -c "/d01/app/oracle/product/9.0.1/bin/gsd" # ----------------------------------------------------------------------------- # # =============================================================================