--To list the privileges you have in your session
SELECT * FROM session_privs;
--Active users connected to Database
Select Username,
machine,
osuser,
process,
program Third_Party_tool
from v$session
where audsid !=0
and status='ACTIVE';
--To view the role granted to you
select *
from dba_role_privs
where grantee=user;
or
Select *
from user_role_privs;
--To list Segment statistics
Select statistic_name,
tablespace_name,
value
from v$segment_statistics;
--To view SGA components statistics
Select *
from v$buffer_pool_statistics;
Select *
from v$shared_server_monitor;
Select *
from v$pgastat;
SELECT * FROM session_privs;
--Active users connected to Database
Select Username,
machine,
osuser,
process,
program Third_Party_tool
from v$session
where audsid !=0
and status='ACTIVE';
--To view the role granted to you
select *
from dba_role_privs
where grantee=user;
or
Select *
from user_role_privs;
--To list Segment statistics
Select statistic_name,
tablespace_name,
value
from v$segment_statistics;
--To view SGA components statistics
Select *
from v$buffer_pool_statistics;
Select *
from v$shared_server_monitor;
Select *
from v$pgastat;
Comments