根据sqlid查看执行客户端

  Database

根据sqlid查看执行客户端

SELECT
    SAMPLE_TIME,
    session_id,
    session_serial #,
    sql_id,
    client_id,
    machine 
FROM
    V$ACTIVE_SESSION_HISTORY 
WHERE
    sql_id = 'b4279k8pcjpcd' 
    AND IS_AWR_SAMPLE = 'Y' 
ORDER BY
    SAMPLE_TIME DESC;