您的当前位置:首页oracle查看机器ip
oracle查看机器ip
来源:锐游网
查看历史会话信息
select remote_instance#,user_id,machine from v$active_session_history where machine like '%主机名称%';
select remote_instance#,user_id,machine from v$active_session_history where user_id=用户id;
查看用户名
select username from dba_users where user_id=&user_id;
查看机器(实时)
select username,sql_id,machine from gv$session where username='用户名';
select username,sql_id,machine,program,module from gv$session where username='用户名';
因篇幅问题不能全部显示,请点此查看更多更全内容