Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problems with accessing V$SQLAREA, V$SQL, V$SQLTEXT, and V$SQL_PLAN

Jana KralovaJul 29 2010 — edited Jul 29 2010
Hi there,

I created a new user account and granted it dba.
I logged on to this account and I am trying to run select statments on V$SQLAREA, V$SQL, V$SQLTEXT, and V$SQL_PLAN, but I am getting

ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"

However, I can get into these views with SYSTEM.

I loged into system and tried to grant

grant select on V$SQLTEXT to user_name;

SQL Error: ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.

now, I know i'm not trying to change password nor attempting to instal new database.

I am runnning Oracle XE and the views are


OBJECT_NAME OBJECT_TYPE STATUS OWNER STATUS
------------------------------ ------------------- ------- ------------------------------ -------
V$SQL_PLAN SYNONYM VALID PUBLIC VALID
V$SQLAREA SYNONYM VALID PUBLIC VALID
V$SQLTEXT SYNONYM VALID PUBLIC VALID
V$SQL SYNONYM VALID PUBLIC VALID


Where is the problem?

Thanks in advance for any effort
This post has been answered by Ospin on Jul 29 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2010
Added on Jul 29 2010
9 comments
8,867 views