OUTput
OUTput [filename]
This command redirects all output that normally is displayed on the screen, to a specific file.If a filename is supplied, all subsequent output goes to that file and is not displayed on screen.If no filename is supplied, output is once more redirected to the screen.
SQL> output test.log; SQL> show tables; SQL> output; SQL> shell; $ cat test.log COUNTRY CUSTOMER DEPARTMENT EMPLOYEE EMPLOYEE_PROJECT FRED JOB PROJECT PROJ_DEPT_BUDGET SALARY_HISTORY SALES