How do I show running processes in Oracle DB?

前端 未结 4 599
北荒
北荒 2020-12-12 11:09

Is it possible to show other processes in progress on an Oracle database? Something like Sybases sp_who

4条回答
  •  生来不讨喜
    2020-12-12 12:10

    After looking at sp_who, Oracle does not have that ability per se. Oracle has at least 8 processes running which run the db. Like RMON etc.

    You can ask the DB which queries are running as that just a table query. Look at the V$ tables.

    Quick Example:

    SELECT sid,
           opname,
           sofar,
           totalwork,
           units,
           elapsed_seconds,
           time_remaining
    FROM v$session_longops
    WHERE sofar != totalwork;
    

提交回复
热议问题