select sesion.sid,
sesion.serial#,sesion.username,sesion.sql_id,sesion.sql_child_number,optimizer_mode,hash_value,address,sql_textfrom v$sqlarea sqlarea, v$session sesionwhere sesion.sql_hash_value = sqlarea.hash_valueand sesion.sql_address = sqlarea.addressand sesion.username is not null;
打印sql html
set linesize 1000
set trimspool onset term off verify off feedback off pagesize 999set markup html on entmap on spool onset echo offspool /tmp/html1.html replaceselect * from table;spool offset markup html offset echo on
-------------------
AVAST:C63088777H1200A0413-AZHFEZ79