MINI MINI MANI MO
#!/bin/sh
ORACLE_HOME=/opt/oracle/product/18c/dbhomeXE
CHOWN=/bin/chown
CHMOD=/bin/chmod
RM=/bin/rm
MV=/bin/mv
AWK=/bin/awk
ECHO=/bin/echo
MKDIR=/bin/mkdir
#
# check for zero UID
#
RUID=`/usr/bin/id|$AWK -F\( '{print $1}'|$AWK -F= '{print $2}'`
if [ $RUID -ne 0 ];then
$ECHO "You must be logged in as user with UID as zero (e.g. root user) to run root.sh."
$ECHO "Log in as user with UID as zero (e.g. root user) and restart root.sh execution."
exit 1
fi
# jssu must be setuid and owned by root
if [ -f $ORACLE_HOME/bin/jssu ]; then
$CHOWN root $ORACLE_HOME/bin/jssu
$CHMOD 4750 $ORACLE_HOME/bin/jssu
fi
# remove backup copy of jssu if it exists
if [ -f $ORACLE_HOME/bin/jssu.old ]; then
$RM -f $ORACLE_HOME/bin/jssu.old
fi
# create a protected directory to store the wallet in
$CHMOD 0700 $ORACLE_HOME/data/wallet
OHA YOOOO