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 -> problem with v$views

problem with v$views

From: Pratap <pratapz_at_mastek.com>
Date: 9 May 2006 04:59:45 -0700
Message-ID: <1147175985.712413.283860@j33g2000cwa.googlegroups.com>


Hi All,
i am using Oracle 9i.

i am facing one problem here,
i am able to select from v$view but unable to create view on that as described below
Please suggest.

DEV13>select * from v$mystat where rownum<2;

SID STATISTIC# VALUE
---------- ---------- ----------
43 0 1

DEV13>create or replace view stats
2 as select 'STAT...' || a.name name, b.value 3 from v$statname a, v$mystat b
4 where a.statistic# = b.statistic#
5 union all
6 select 'LATCH.' || name, gets
7 from v$latch
8 union all
9 select 'STAT...Elapsed Time', hsecs from v$timer; from v$statname a, v$mystat b
*
ERROR at line 3:
ORA-01031: insufficient privileges

Please suggest.

Thanks in Advance
Pratap Received on Tue May 09 2006 - 06:59:45 CDT

Original text of this message

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