查看ORACLE使用情况 Oracle
程序员文章站
2024-02-20 21:46:22
...
--查进程
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;
上一篇: 快速了解Java中NIO核心组件
下一篇: ftp://用户名:密码@地址:端口号