pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mikeo <mikeo@spectrumtelecorp.com>
To: pgsql-sql@postgreSQL.org
To: pgsql-general@postgreSQL.org
Subject: TOP SESSIONS?
Date: Wed, 31 May 2000 14:41:17 -0400
Message-ID: <3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com> (raw)
In-Reply-To: <2590.959708515@sss.pgh.pa.us>
References: <3.0.1.32.20000530113504.009563b0@pop.spectrumtelecorp.com>
	<3.0.1.32.20000530113504.009563b0@pop.spectrumtelecorp.com>

hi,

  in oracle you would use these two cursors to determine who was
connected and

what they were doing.   


select distinct s.sid sid, s.serial# serial, s.status status, osuser,
spid ,

                count(o.sid) counter, s.username username, s.program
program, sql_address

          from v$session s, v$open_cursor o, v$process p

         where s.sid = o.sid(+)

           and paddr = addr

         group by s.sid,s.serial#, s.status , osuser, spid ,s.username,
s.program ,sql_address

         order by 1,3


select distinct name

  from sys.audit_actions, v$sqltext

 where address = ?

   and action = command_type



<bold><color><param>0000,0000,8080</param><bigger>does anyone know what
tables in postgres would give me the same or similar information?


</bigger></color></bold>TIA,

   mikeo





view thread (2+ messages)  latest in thread

Message-ID: <3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com>
Permalink:  ../3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com/
Also on:    postgresql.org/message-id/3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: mikeo@spectrumtelecorp.com, pgsql-general@postgreSQL.org
  Subject: Re: TOP SESSIONS?
  In-Reply-To: <3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com>
  References: <3.0.1.32.20000530113504.009563b0@pop.spectrumtelecorp.com> <3.0.1.32.20000531144117.0096a940@pop.spectrumtelecorp.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox