系统中表的说明:
1、v$locked_object:用户加锁记录。
2、v$session:当前session情况。
3、v$sqltext:当前 sql语句。
============example===============
4、查看系统中当前用户的索引:
a:user_indexes
b:user_ind_columns;
example is:
select i.index_name,i.table_name,i.uniqueness,i.table_owner,
i.tablespace_name,c.column_name
from user_indexes i,user_ind_columns c
where i.index_name=c.index_name;
4、当前系统中哪个用户使用哪个rollback segment?
select nvl(s.username,'no transaction') username, r.name
from v$lock l,v$session s,v$rollname r
where l.sid=s.sid
and trunc(l.id1(+)/65536)=r.usn
and l.type(+)='TX';
5、test the shared_pool_size and fime tune the parameter:
select round(sum(gets)/(sum(gets)+sum(getmisses))*100,2) from v$rowcache;
6、display database currently accessed by currently paresed cursor:
select * from v$access;