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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: RE: when do you use v$statname?

RE: RE: when do you use v$statname?

From: Suhen Pather (S) <pathes10_at_telkom.co.za>
Date: Wed, 26 Nov 2003 05:54:40 -0800
Message-ID: <F001.005D7E4B.20031126055440@fatcity.com>


Ryan,

V$sysstat is system wide statistics. It contains name, value and statistic# and class.

V$statname is used mostly as a lookup.

V$sesstat is session stats which does not contain the *statistic name* column.
When joined with v$statname (statistic# column), the statistic name and values can be obtained for a required session.

SP

-----Original Message-----
Sent: Wednesday, November 26, 2003 3:39 PM To: Multiple recipients of list ORACLE-L

both store that info

SQL> desc v$statname

 Name                                      Null?    Type
 ----------------------------------------- --------
----------------------------
 STATISTIC#                                         NUMBER
 NAME                                               VARCHAR2(64)
 CLASS                                              NUMBER

SQL> desc v$sysstat
 Name                                      Null?    Type
 ----------------------------------------- --------
----------------------------
 STATISTIC#                                         NUMBER
 NAME                                               VARCHAR2(64)
 CLASS                                              NUMBER
 VALUE                                              NUMBER

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: <ryan_oracle_at_cox.net
  INET: ryan_oracle_at_cox.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Suhen Pather (S)
  INET: pathes10_at_telkom.co.za
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Nov 26 2003 - 07:54:40 CST

Original text of this message

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