select /*+ordered */ sql_text, spid, v$session.program, machine, process, sid, v$session.SERIAL# from v$process, v$session, v$sql where v$sql.address = v$session.sql_address and v$sql.hash_value = v$session.sql_hash_value and v$session.paddr = v$process.addr and v$process.spid = &spid