Question : Oracle session ID

Hey guys how can i find the session id for any particular SQL is running with it. I appreciate your help and time in advance.

Answer : Oracle session ID

Can u try this:




    select
       sys_context('USERENV','SID')
    from dual;

    select
       sid
    from
       v$mystat
    where
       rownum <=1;

    select
       to_number(substr(dbms_session.unique_session_id,1,4),'XXXX') mysid
    from dual;

    select distinct
       sid
    from v$mystat;
Random Solutions  
 
programming4us programming4us