DBA Scripts & knowledge....!
....there is no such thing as failure, only learning experiences.
Tuesday, February 5, 2019
Get SessionID
SELECT sid FROM v$mystat WHERE rownum = 1;
SELECT sid FROM V$SESSION WHERE audsid = userenv('sessionid');
SELECT sid FROM V$SESSION WHERE audsid = SYS_CONTEXT('userenv','sessionid');
select sys_context('USERENV','SID') from dual;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment