While executing a shell script involving database connection, my script showed me an Error :sqlplus not found :
sqlplus -s username/paswd@DB_name > /home/user/sql.out << EOF
But when i included the following statement, it started to work:
source ~oracle/.bash_profile
What is the purpose of this above line ?