Re: 9.2.0.4 - RHEL3



Tom wrote:
> I currently have a script running made up of
>
> select username, count(*) from v$session group by username
>
> that spools to a text file to give me number of connected users at any
> one time. How can i see how many sessions are also active at that time?

Tom, careful with the wording. Do you mean active sessions as in all
connections to Oracle? Do you mean active sessions as in Oracle
sessions that are currently busy processing client requests? Do you
include system sessions with your question?

The V$SESSION view shows all existing Oracle connections. Idle and
active. Including system connections. Basically each session that has
attached to the Oracle SGA.

A session can be a dedicated process. Or a session can be a pooled
connection that is serviced by the shared pool - in which case that
session "belongs" to a dispatcher process and is in turn "serviced" by
a shared server process.

I suggest that you point your browser at http://tahiti.oracle.com and
have a look at the Oracle Reference guide. It lists all the V$ views
and gives a description of each, including what the columns contain.
Note that these V$ views are in fact views on Oracle memory structures
and not Oracle database data. Next, take a look at the Oracle Concepts
guide - specifially the processing architecture chapter which will
explain in detail just what the V$PROCESS and V$SESSION views show.

--
Billy

.



Relevant Pages

  • Re: maximum # of connections per dispatcher
    ... socket somehow between sessions? ... Let's say I have 4 connections and 16 ... connects the client application to the dedicated server. ... process is not part of an Oracle instance; rather, ...
    (comp.databases.oracle.server)
  • Re: managing open database links?
    ... none of these ideas can be verified as database link ... connections, but just network and/or instance session connections. ... version of oracle and set up database links as well. ... all machines but the host because there could be client-server sessions out ...
    (comp.databases.oracle.server)
  • ADO.Net Connection Pooling Problem with Oracle
    ... with running out of database connections. ... the number of database sessions in Oracle seem to ... in Oracle from 150 to 300, but we're coming pretty close to this limit. ... database connections everywhere they're used. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection Pooling - tracking users
    ... end-user for connections made through a connection pool where all the sessions use the same Oracle username and show as the OS user of the webserver or application server unless that information is passed to Oracle by the application. ... The Oracle package DBMS_APPLICATION_INFO is sometimes used for this purpose. ...
    (comp.databases.oracle.misc)
  • Re: maximum number of sessions
    ... I am interested in the maximum number of sessions not connections. ... I.e I can have 15 mapped drives from one machine to ... We have 6 pcs connecting to a 7 pc we call our server. ...
    (microsoft.public.windowsxp.network_web)