sys_context 獲取環境上下文的函式

laoma8888發表於2019-03-30

select SYS_CONTEXT('USERENV','IP_ADDRESS') from dual;
--------------------------------------------------------------------------------
192.168.0.136

SQL> select sys_context('userenv','sid') from dual;

SYS_CONTEXT('USERENV','SID')
--------------------------------------------------------------------------------
129

SQL> select sys_context('userenv','terminal') from dual;

SYS_CONTEXT('USERENV','TERMINAL')
--------------------------------------------------------------------------------
TIMRAN-222C75E5

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31496956/viewspace-2639868/,如需轉載,請註明出處,否則將追究法律責任。

相關文章