在SQL PLUS用下面的语句查一下你有哪些用户在使用你的ORACLE
select machine,program from v$session
select machine,program from v$session
解决方案 »
- 收集rownum和order by的合用方法,希望大家各抒己见,做个整理
- 用户权限问题急,多谢!
- 此排序语句该如何写?
- oracle 时间差的计算
- GROUP BY后得到的数据怎么放到一个表中??
- 菜鸟请教个imp问题
- oracle新人求教
- (谢谢给位)如何保存新创建的表的内容?急急!
- 在线求解决方法?关于触发器的,对高手是非常简单的问题
- 如何实时将表中的数据导出到文本文件
- 在往数据库插入数据的时候,oracle自动会停掉服务,报错:“ORA-03113: end-of-file on communication channel ”
- 怎样把从mysql数据库中导出的数据到入到oracle数据库中
from v$sesstat s,v$statname n
where s.statistic#=n.statistic# and n.name='CPU used by this session'
and s.value>0
order by 2 desc; 能知道哪个sid最消耗资源 前提,timed_statistics=true
select machine,program from v$session where status='ACTIVE'查看了当前有哪些进程之后,怎样知道这些进程分别占用了多少CPU?
from v$sesstat s,v$statname n
where s.statistic#=n.statistic# and n.name='CPU used by this session'
and s.value>0
order by 2 desc;
结果返回0行.
我想我的timed_statistics应该是false 的了?time_statistics是个什么东西?在哪里看?应该怎样修改它?修改了它,对系统有没有什么影响?