Object browser and "Granted to users"

denmarkdev

Member²
How does PL/SQL Dev retrieve the roles under table->mytable->Granted to users?

How do I ensure that I see every role granted on a table (also if also granted to other users)?
 
That will happen if you enable the "Use DBA views if available" option (Tools > Preferences > Oracle / Options).
 
Would it be a better idea to use the DBA views by default, and fall back to ALL_* only if they are not available? We recently went through a confusing few days trying to figure out why a user showed tables A/B/C in all_tab_privs but could actually view data from A/B/C/D/E/F/G. It turned out we needed to check dba_tab_privs instead.

I don't think it makes sense to query a less-privileged view by default, and have to explicitly check a box to be able to see it, regardless of whether the DBA view is available to me.
 
Last edited:
Back
Top