I am new to writing shell scripts. I want to connect
to database
and execute a simple query. Here is what i am trying
. /home/oracle/db_env.sh
sqlplus system/*****
select * from dual;
but when i execute this script i get nothing. when i exit out of sqlplus
i get
bash: db.sh: line 3: syntax error near unexpected token `from'
bash: db.sh: line 3: `select * from dual;'
Kindly guide me how to.