set pagesize 1000;
ALTER SESSION SET NLS_DATE_FORMAT = 'yyyy-mm-dd HH24:mi:ss';
set line 1000;

spool lastAnalyzed.csv;

SELECT ut.table_name ||','||
       ut.last_analyzed ||','||
       ut.num_rows ||','||
       ut.blocks ||','||
       us.bytes
FROM user_tables ut
     INNER JOIN user_segments us ON ut.table_name = us.segment_name
ORDER BY table_name;

spool off;