sqlplus -s << EOF >/dev/null
tutorial_user/tutorial_password@'"(description=(address=(host=dbmstutorials)(protocol=tcp)(port=1242))(connect_data=(sid=orcl)))"'
SET FEEDBACK OFF
SET HEADING OFF
SET COLSEP '*|*'
SET TERMOUT OFF

spool /Users/user_name/tutorials/oracle_exporter.xls

SELECT * FROM employee;

spool off
SET TERMOUT ON
EXIT;
EOF;