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: question about v$segment_statistics

Re: question about v$segment_statistics

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 23 Nov 2005 20:15:38 +0000 (UTC)
Message-ID: <dm2ila$ab9$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com>

"stephan11" <Stephan11_at_gmx.de> wrote in message news:1132698839.202200.250030_at_g14g2000cwa.googlegroups.com...
>i am using the 10g database . if i want statistic information about
> tables ( e.g how often a certain table is selected ) i have to use the
> view 'v$segment_statistics' . is this right ?
> if i enter the statement :
> select distinct owner from v$segment_statistics;
> the result of the query is :
>
> OWNER
> ------
> DBSNMP
> IX
> MDSYS
> SYS
> SYSMAN
> SYSTEM
> WKSYS
> WMSYS
> XDB
>
> why for example does not appear the user HR ?
>
> what do i have to do to get the statistic information from the table
> 'countries' of the user hr ?
>
> greeting s. f.
>

It looks like no-one has been querying the HR objects.

Warning - for general use, it is better to look at v$segstat to find hot spots, then use the object_id and data_object_id to identify the interesting objects.

v$segment_statistics is a based on a join between a very large memory structure and two or three data dictionary objects. Queries against it are not cheap on a large system.

-- 
Regards

Jonathan Lewis

http://www.jlcomp.demon.co.uk/faq/ind_faq.html
The Co-operative Oracle Users' FAQ

http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
Cost Based Oracle: Fundamentals

http://www.jlcomp.demon.co.uk/appearances.html
Public Appearances - schedule updated 4th Nov 2005
Received on Wed Nov 23 2005 - 14:15:38 CST

Original text of this message

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