Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
Database User with Only Create Session Privilege is able to access all data dictionary views

Hello Everyone,
I created user with only "Create Session" Privilege. But I can see that it is able to access all data dictionary views. Is it the default behavior?
SQL> create user bhaskar identified by *******;
User created.
SQL> grant create session to bhaskar;
Grant succeeded.
SQL> conn bhaskar
Enter password:
Connected.
User => BHASKAR has been granted the following privileges
====================================================================
SYS PRIV => CREATE SESSION grantable => NO
SQL> select count(*) from sys.KU$_TYPE_VIEW;
COUNT(*)
----------
0
SQL> select count(*) from sys.v_$BH;
COUNT(*)
----------
12579
SQL> select file_name from sys.dba_data_files;
FILE_NAME
--------------------------------------------------------------------------------
/u01/app/oracle/oradata/NONCDB/datafile/o1_mf_system_hp9nptdf_.dbf
/u01/app/oracle/oradata/NONCDB/datafile/o1_mf_sysaux_hp9nqmht_.dbf
/u01/app/oracle/oradata/NONCDB/datafile/o1_mf_users_hp9nr3mg_.dbf
/u01/app/oracle/oradata/NONCDB/datafile/o1_mf_undotbs1_hp9nr2kv_.dbf
4 rows selected.
Best Answer
Answers
-
-
New database and new user. Nothing has been granted specifically.
-
Nothing has been granted specifically.
Prove it.
select grantee, owner, table_name, privilege from dba_tab_privs where grantee = 'PUBLIC' ; select grantee, privilege from dba_sys_privs where grantee = 'PUBLIC' ;
-
Thanks EdStevens. Thanks for your answer. I understood it wrongly at first.
My doubts have been cleared from the following resources.
-
hi @fornoob. Thank you