查看ORACLE使用情况 Oracle
程序员文章站
2024-02-20 21:41:46
...
--查进程
select object_id,session_id,locked_mode from v$locked_object;
select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2
where t1.session_id=t2.sid order by t2.logon_time;
-- 查看数据库中表、索引占用的数据库空间大小
SELECT * FROM user_segments;
select object_id,session_id,locked_mode from v$locked_object;
select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2
where t1.session_id=t2.sid order by t2.logon_time;
-- 查看数据库中表、索引占用的数据库空间大小
SELECT * FROM user_segments;