2012-12-08 67 views

回答

1

可以使用sys_context函數來獲取這方面的信息:

SQL> select sys_context('userenv', 'session_user') as curr_user 
    2  , sys_context('userenv', 'ip_address') as ip_address 
    3  , sys_context('userenv', 'os_user')  as os_user 
    4 from dual 
    5 ;