You are right, that v$statname is not needed when querying v$sysstat,
since v$sysstat has "name" column.
But, if you look at v$sesstat:
SQL> describe v$sesstat;
 Name                           
 ------------------------
 SID                            
 STATISTIC#                     
 VALUE                          

It doesn't have "name" column, and that's where you'll need v$statname
to find the name of statistic.

Igor Neyman, OCP DBA
[EMAIL PROTECTED]



-----Original Message-----
[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 8:39 AM
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: <[EMAIL PROTECTED]
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: Igor Neyman
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to