‘Who am I’ in Oracle

Reports information about your current database context

select ‘User: ‘|| user || ‘ on database ‘ || global_name,
       ‘  (term=’||USERENV(‘TERMINAL’)||
       ‘, audsid=’||USERENV(‘SESSIONID’)||’)’ as MYCONTEXT
from   global_name;

Reports information about your current database context select ‘User: ‘|| user || ‘ on database ‘ || global_name,        ‘  (term=’||USERENV(‘TERMINAL’)||        ‘, audsid=’||USERENV(‘SESSIONID’)||’)’ as MYCONTEXT from   global_name;

Leave a Reply

Your email address will not be published. Required fields are marked *