문제

em new to oracle and wanted to know that how can i save the username in table from which he is logged on, when i use OS based authentication in oracle.... any guide would be helpful

Thanks in Advance

도움이 되었습니까?

해결책

to get the name of OS user name (like logged user in windows for example) write the following:

select  sys_context('USERENV','OS_USER')  from dual

다른 팁

next query will return to you the name of the user that is logged in:

select user from dual

Now, all you need is to use "user" as a value in your insert statement.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top