V_$view VS v$views [message #171266] |
Tue, 09 May 2006 04:16 |
kumarsz
Messages: 180 Registered: March 2005 Location: canada
|
Senior Member |
|
|
Hi,
I am using Oracle 9i and want to use runstats of Thomas Kyte.
However i have access to v$views and not on v_$views which are required for running runstats.
Can anybody suggest me what is difference between v_$views and v$views?
Thanks and Regards,
Pratap
|
|
|
|
|
Re: V_$view VS v$views [message #171279 is a reply to message #171276] |
Tue, 09 May 2006 04:48 |
kumarsz
Messages: 180 Registered: March 2005 Location: canada
|
Senior Member |
|
|
Hi,
Thanks for your quick reply.
Also 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
Thanks in Advance
Pratap
|
|
|
Re: V_$view VS v$views [message #171283 is a reply to message #171274] |
Tue, 09 May 2006 05:02 |
kumarsz
Messages: 180 Registered: March 2005 Location: canada
|
Senior Member |
|
|
Hi,
Thanks for your quick reply.
Does it mean that even for Autotrace i can use v$statename,v$session and v$systat rather than corresponding v_$views (which plustrce.sql does)?
Thanks and Regards,
Pratap
|
|
|
Re: V_$view VS v$views [message #171306 is a reply to message #171276] |
Tue, 09 May 2006 06:30 |
kumarsz
Messages: 180 Registered: March 2005 Location: canada
|
Senior Member |
|
|
Hi Frank,
please help me,
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
Thanks in Advance
Pratap
|
|
|
|
|
|
|