Excellent feedback,ofcourse you skipped internals of v$ views.
Saibabu Devabhaktuni, June 29, 2001 - 3:45 pm UTC
Thank you so much.To me "SELECT ANY DICTIONARY" is working through roles in 9i.I have grated it through roles and users can actuabble able to use it.
Privileg Grant Through Role
Abhi, April 12, 2003 - 10:53 am UTC
Hello Sir .
Sir we can grant privlege (object/system) to a user through
role or Directly .. what is difference in these two ways.
and whats the Reason behind reason this.
when we should grant privilege directly or when Throught Role. I think Jobs only can C directly Grnted Privs.
Is this Restriction is applicable for Both (System/Object) privileges.
"SELECT ANY DICTIONARY" is working through roles in 9i
Raj, January 15, 2004 - 6:20 pm UTC
"SELECT ANY DICTIONARY" not working throught role for me.
Oracle version 9iR2.
I tried after connect as system
1. grant select any dictionary to role1 ;
2. grant role1 to user1 ;
3. after connecting from sqlplus as user1 tried
4. select * from v$session gives
ora-00942 table or view does not exists.
But if I grant
1. grant select any dictionary to user1 ;
2. after connecting from sqlplus as user1 tried
3. select * from v$session (WORKS)
So it looks like as Tom said this needs to be granted individually to user and not through role.
January 16, 2004 - 1:09 am UTC
are you sure -- works for me
ops$tkyte@ORA9IR2> grant select any dictionary to role1;
Grant succeeded.
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> drop user a cascade;
User dropped.
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> create user a identified by a;
User created.
ops$tkyte@ORA9IR2> grant create session to a;
Grant succeeded.
ops$tkyte@ORA9IR2> grant role1 to a;
Grant succeeded.
ops$tkyte@ORA9IR2>
ops$tkyte@ORA9IR2> @connect a/a
ops$tkyte@ORA9IR2> set termout off
a@ORA9IR2> REM GET afiedt.buf NOLIST
a@ORA9IR2> set termout on
a@ORA9IR2> select count(*) from v$session;
COUNT(*)
----------
8
Sorry It Works
Raj, January 16, 2004 - 5:18 pm UTC
User I created yesterday to test this still does not work but after your reply. I created three new users and all of them are working.
Thanks for the prompt reply. Right now I am working of one of the assignment where I have to use this and I would have taken different path if I wouldn't have got your answer.