1.sqlplus test/test123@publicdb
2.spool on
3.set heading off
4.spool $HOME/testspool.txt
5.select sysdate from dual;
6.spool off
1.sqlplus test/test123@publicdb
2.spool on
3.set heading off
4.spool $HOME/testspool.txt
5.select sysdate from dual;
6.spool off