v$session is synonyms of v_$session .
SQL> col OWNER format a15
SQL> col OBJECT_NAME like OWNER
SQL> col OBJECT_TYPE like OWNER
SQL> r
1* select OWNER,OBJECT_NAME,OBJECT_TYPE from dba_objects where OBJECT_NAME='V$SESSION'
OWNER OBJECT_NAME OBJECT_TYPE
--------------- --------------- ---------------
PUBLIC V$SESSION SYNONYM
SQL> grant select on v$session to prod1;
grant select on v$session to cccprod1
*
ERROR at line 1:
ORA-02030: can only select from fixed tables/views
you can't give grant to synonyms
SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE from dba_objects where OBJECT_NAME='V_$SESSION';
OWNER OBJECT_NAME OBJECT_TYPE
--------------- --------------- ---------------
SYS V_$SESSION VIEW
SQL> grant select on v_$session to prod1;
Grant succeeded.
Search This Blog
Total Pageviews
Wednesday, 18 August 2010
Subscribe to:
Post Comments (Atom)
Oracle DBA
anuj blog Archive
- ► 2011 (362)
No comments:
Post a Comment