1.
18:54:26 SYS@ORA11GR2>SELECT SID FROM V$MYSTAT WHERE ROWNUM =1;
SID
----------
41
2.
18:58:28 SYS@ORA11GR2>SELECT USERENV('SID') FROM DUAL;
USERENV('SID')
--------------
41
1.
18:54:26 SYS@ORA11GR2>SELECT SID FROM V$MYSTAT WHERE ROWNUM =1;
SID
----------
41
2.
18:58:28 SYS@ORA11GR2>SELECT USERENV('SID') FROM DUAL;
USERENV('SID')
--------------
41