OSWatcher analysis Solaris/Oracle Linux for DataBases

ORACLE DATABASE 10 or greater

ORACLE SOLARIS SPARC




1.  As "root" use create  OSWatcher startup/stop script (startOSWbb.sh)


# uname -a
SunOS solaristest  5.10 Generic_150-400

# pwd
/etc/init.d
# cat OSW_init.sh
 OSW_SRC_DIR= <<<<----- Modify this to reflect your OS Watcher source directory
echo $OSW_SRC_DIR
echo "******************************************************" >> $OSW_SRC_DIR/init_osw.log


case $1 in
'start')
echo "...Starting OSWBB from init at `date` " >> $OSWBB_SRC_DIR/init_osw.log
cd $OSWBB_SRC_DIR;
./startOSWbb.sh
;;
'stop')
echo "...Stopping OSWBB from init at `date` " >> $OSWBB_SRC_DIR/init_osw.log
cd $OSW_SRC_DIR;
./stopOSWbb.sh
;;
*)
echo "Usage: $0 start|stop" >&2
exit 1
;;
esac
exit 0
 

2.  Add "execute" permissions on this script:

#chmod +x OSW_init.sh
3.  Create a soft link to this script from /etc/rc3.d:

ln -s /etc/init.d/OSW_init.sh /etc/rc3.d/S90StartOSW_init
The wrapper script (OSW_init.sh) would be called with "start" option/parameter on each startup.

4.  Similarly, create another soft link to the same script from /etc/rc0.d:

ln -s /etc/init.d/OSW_init.sh /etc/rc0.d/K30StopOSWBB_init
ln -s /etc/init.d/OSW_init.sh /etc/rc3.d/K30StopOSWBB_init

 The wrapper script (OSW_init.sh) would be called with "stop" option/parameter on each shutdown.

5. A log file will be created/appended to in your OSWbb Source directory with information similar to the following on each reboot:

$ tail -f init_osw.log

...Starting OSW from init at Tue Sep 19 10:00:04 CDT 2016
******************************************************
...Stopping OSW from init at Tue Sep 19 09:16:17 CDT 2016

ORACLE LINUX AND ORACLE DATA BASE







1.-Install the followings RPMs

oswbb-service-7.2.0-1.noarch.rpm
oswbb-service-7.2.0-1.src.rpm

2.-Validate the information in the /etc/oswbb.conf

# Set OSW_HOME to the directory where your OSWatcher tools are installed
OSW_HOME='/opt/osw'
# Set OSW_INTERVAL to the number of seconds between collections
OSW_INTERVAL='60'
# Set OSW_RETENTION to the number of hours logs are to be retained
OSW_RETENTION='48'
# Set OSW_USER to the owner of the OSWHOME directory
OSW_USER='root'
# Set OSW_COMPRESSION to the desired compression scheme
OSW_COMPRESSION='bzip2'
# Set OSW_ARCHIVE to the location to generate the logs
OSW_ARCHIVE='archive'

Start/Stop Services

# /sbin/chkconfig oswbb on
# /sbin/service oswbb start 

Comments