set linesize 200
set pagesize 500
spool /tmp/Oct29.html
set markup html on
set numwidth 40
select * from emp;
set long 100000
select sql_id,sql_text from DBA_HIST_SQLTEXT where sql_id in (select sql_id from v$session);
spool off
Note: Please test scripts in Non Prod before trying in Production.
Gayatri
Nice article