# # Script used to startup the lt1 database # To be used only the oracle Account # # Ensure that the running user is oracle oracle_user=`/usr/ucb/whoami|grep oracle|grep -v grep|wc -l`; oracle_num=`expr $oracle_user` if [ $oracle_num -lt 1 ] then echo " Current User is not oracle. Please su to oracle and retry." sleep 5 exit else # Set Oracle Environment variables # ORACLE_SID=lt1 ORACLE_HOME=`/u01/app/oracle/product/9.2.0.1.0/bin/dbhome lt1` PATH=/u01/app/oracle/product/9.2.0.1.0/bin:/export/home/oracle/bin:/usr/local/bin:/bin:/usr/bin:/usr/openwin/bin:/sbin:/usr/sbin:/usr/ccs/bin:/usr/ucb:/usr/bin:/usr/ucb:/etc:. export ORACLE_SID export ORACLE_HOME export PATH # # # Connect to SQLPLUS with a privileged account sqlplus "/ as sysdba" 1> $1 <