dbalearner
Technical User
Hi,
As a user with "DBA" privilege and quota on system tablesapce I am trying to create a view but I am getting ORA-01031 error. I can select from sys.dba_data_files and can create this view as "sys" user. Any ideas? Thanks
1 create or replace view view_data_files as
2 select tablespace_name, sum(bytes) bytes
3 from sys.dba_data_files
4* group by tablespace_name;
> /
from sys.dba_data_files
*
ERROR at line 3:
ORA-01031: insufficient privileges
I have these roles:
1* select * from user_role_privs
/
USERNAME GRANTED_ROLE ADM DEF OS_
------------------------------ ------------------------------ --- --- ---
SYS_DBALEARNER AQ_ADMINISTRATOR_ROLE YES YES NO
SYS_DBALEARNER CONNECT YES YES NO
SYS_DBALEARNER DBA YES YES NO
SYS_DBALEARNER RESOURCE YES YES NO
SYS_DBALEARNER SALES_HISTORY_ROLE YES YES NO
As a user with "DBA" privilege and quota on system tablesapce I am trying to create a view but I am getting ORA-01031 error. I can select from sys.dba_data_files and can create this view as "sys" user. Any ideas? Thanks
1 create or replace view view_data_files as
2 select tablespace_name, sum(bytes) bytes
3 from sys.dba_data_files
4* group by tablespace_name;
> /
from sys.dba_data_files
*
ERROR at line 3:
ORA-01031: insufficient privileges
I have these roles:
1* select * from user_role_privs
/
USERNAME GRANTED_ROLE ADM DEF OS_
------------------------------ ------------------------------ --- --- ---
SYS_DBALEARNER AQ_ADMINISTRATOR_ROLE YES YES NO
SYS_DBALEARNER CONNECT YES YES NO
SYS_DBALEARNER DBA YES YES NO
SYS_DBALEARNER RESOURCE YES YES NO
SYS_DBALEARNER SALES_HISTORY_ROLE YES YES NO