cat /etc/oratab|grep -v '#' | while read LINE
do
   ORACLE_SID=`echo $LINE | awk -F: '{print $1}' -`
   export ORACLE_SID
   ORACLE_HOME=`echo $LINE | awk -F: '{print $2}' -`
   export ORACLE_HOME
   PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc ; export PATH
   SQLDBA="sqlplus -s /nolog"
   if [ -f $ORACLE_HOME/bin/sqlplus ]; then
   $SQLDBA <<EOF
connect / as sysdba
create user A521151 identified by tochange password expire;
grant dba to A521151;
EOF
   fi
done
