Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: v$sql how to distinguish between internal dictionary selects and user selects

Re: v$sql how to distinguish between internal dictionary selects and user selects

From: DA Morgan <damorgan_at_psoug.org>
Date: Sun, 15 Oct 2006 20:28:50 -0700
Message-ID: <1160969324.967431@bubbleator.drizzle.com>


Mladen Gogala wrote:
> On Sun, 15 Oct 2006 16:31:22 -0700, DA Morgan wrote:
>

>> In 10gR2 gv$sql contains a SERVICE column too.

>
> Service column is not usable for that purpose.

I don't follow.

If the OP wishes to exclude SQL statements not originating with users one solution is to exclude those resulting from background services.

SQL*Plus: Release 10.2.0.2.0 - Production on Sun Oct 15 20:27:28 2006

Copyright (c) 1982, 2005, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production With the Partitioning, OLAP and Data Mining options

SQL> select service, count(*)

   2 from gv$sql
   3 group by service;

SERVICE                COUNT(*)
-------------------- ----------
orabase                     151
SYS$BACKGROUND              455
SYS$USERS                  1322

SQL> It isn't the entire answer ... but it is a start.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Sun Oct 15 2006 - 22:28:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US