break on username on sid_ser
column username for a12 heading 'User Name'
column sid_ser for a12 heading 'SID+SER'
column sql_text for a50 heading 'SQL Statement'
set pages 100
set verify off
set lines 110
select b.username username, b.sid||','||b.serial# sid_ser, sql_text 
from v$sqltext a, v$session b
where process = '&foreground_PID'
and b.sql_address=a.address
and b.sql_hash_value=a.hash_value
order by piece
/
