Check Shell Limits for Oracle Installation on Solaris ( SPARC )
Reading time: 2 - 2 minutes
Oracle has provided one script to check whether OS is meeting pre-requirements or not.Here is script.
========================================
TIMEOK=false
TIME=`/usr/bin/ulimit -t`
if /usr/bin/test -z "$TIME"
then
/usr/bin/echo TimeNotDef
elif [ $TIME != "unlimited" ]
then
/usr/bin/echo TimeTooSmall
else
TIMEOK=true
fi
FILEOK=false
FILE=`/usr/bin/ulimit -f`
if /usr/bin/test -z "$FILE"
then
/usr/bin/echo FileNotDefined
elif [ $FILE != "unlimited" ]
then
/usr/bin/echo FileTooSmall
else
FILEOK=true
fi
DATAOK=false
DATA=`/usr/bin/ulimit -d`
if /usr/bin/test -z "$DATA"
then
/usr/bin/echo DataNotDefined
elif [ $DATA = "unlimited" ]
then
DATAOK=true
elif [ $DATA -ge 1048576 ]
then
DATAOK=true
else
/usr/bin/echo DataTooSmall
fi
STACKOK=false
STACK=`/usr/bin/ulimit -s`
if /usr/bin/test -z "$STACK"
then
/usr/bin/echo StackNotDefined
elif [ $STACK = "unlimited" ]
then
STACKOK=true
elif [ $STACK -ge 32768 ]
then
STACKOK=true
else
/usr/bin/echo StackTooSmall
fi
NOFILESOK=false
NOFILES=`/usr/bin/ulimit -n`
if /usr/bin/test -z "$NOFILES"
then
/usr/bin/echo NoFilesNotDefined
elif [ $NOFILES = "unlimited" ]
then
NOFILESOK=true
elif [ $NOFILES -ge 4096 ]
then
NOFILESOK=true
else
/usr/bin/echo NoFilesTooSmall
fi
VMEMORYOK=false
VMEMORY=`/usr/bin/ulimit -v`
if /usr/bin/test -z "$VMEMORY"
then
/usr/bin/echo VmemoryNotDefined
elif [ $VMEMORY = "unlimited" ]
then
VMEMORYOK=true
elif [ $VMEMORY -ge 4194304 ]
then
VMEMORYOK=true
else
/usr/bin/echo VmemoryTooSmall
fi
if [ $TIMEOK = trueA -a $FILEOK = true -a $DATAOK = true -a $STACKOK = true -a $NOFILESOK = true -a $VMEMORYOK = true ]
then
/usr/bin/echo ulimitOK
fi
====================================
For more scripts Note:334567.1
Thanks for the script.
Why does Oracle want unlimited everything?
Stack, for instance, why is 1/2 memory too small?
Or, 80%.
I’m a sysadmin and I don’t want the problems I have.