MENU FOR ORACLE DATABASE ON IBM AIX

When you have several databases in the same server using also the same user, it is common human errors because wrong Oracle environmental variables configuration. Then below has a script that you can put in .profile file of the user own of Oracle Database files on IBM AIX: EDITOR=vi export EDITOR clear echo “Please choose the instance number” echo ” ” cont=0 awk -F: ‘ ! /^#|^$|^*/ {print $1,$2}’ /etc/oratab | while read par1 par2 do cont=`expr $cont + 1` inst[$cont]=$par1 orahome[$cont]=$par2 echo ”  [  $cont ]   ${inst[$cont]} ( ${orahome[$cont]}…