Solved

Oracle 10g - cant find v$session

Posted on 2011-09-02
5
464 Views
Last Modified: 2012-05-12
Hi,

Im logging at the Db using a user dbg_a and it does not have the views:

v$parameter
v$session

Can them be created manually?

They are there as system user...

Tks,
Joao
0
Comment
Question by:joaotelles
  • 3
  • 2
5 Comments
 
LVL 73

Expert Comment

by:sdstuber
Comment Utility
your dbg_a  user doesn't have permissions on those views


grant select on each of them as SYS

or, if you'll need other dictionary access,  consider  "select any dictionary"
0
 

Author Comment

by:joaotelles
Comment Utility
Im getting this:

SQL> grant select v$session as SYS;
grant select v$session as SYS
      *
ERROR at line 1:
ORA-00990: missing or invalid privilege

Also:
grant select on v$session to sasa;
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privileges


Any suggestion?
0
 

Author Comment

by:joaotelles
Comment Utility
The second one was because I wasnt as oracle user.
0
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
Comment Utility
you must login as SYS  (system or other dba users can't grant on SYS objects, unless they have the "WITH GRANT OPTION", which most users do not)

also, the  real view names have an underscore in them,

so....


grant select on v_$session to dbg_a;
grant select on v_$parameter to dbg_a;
0
 

Author Closing Comment

by:joaotelles
Comment Utility
Tks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now