Write sqlplus output

Use spool to write output to console:  SPOOL and turn off with  SPOOL OFF

Print to a file with:
SPOOL <output file path>
link 1, 2