思路1
select inst_id, count(*) from gv$session group by inst_id;
select inst_id, count(*) from gv$process group by inst_id;
show parameter session
show parameter process
思路2
select username, profile from dba_profiles where username='&username';
思路3
sqlplus username@password/service_name 或
sqlplus 用户名/密码@连接串名
select * from gv$session where username = '&username';