1) Gostaria de saber todos os direitos que existem dentro de uma determinada ROLE, já verifiquei em várias visões mas nenhuma me mostrou, existe alguma visão que eu consuiga verificar para uma determinada role o que ela tem definida dentro dela?
2) alguém tem maiores detalhes do erro ORA-00990 missing or invalid privilege? Esse erro ocorre no momento de executar a cláusula
SQL> SELECT * FROM DICTIONARY
2 WHERE TABLE_NAME LIKE '%PRIV%'
3 /
TABLE_NAME COMMENTS
------------------------------ --------------------------------------------------------------------------------
ALL_COL_PRIVS Grants on columns for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
ALL_COL_PRIVS_MADE Grants on columns for which the user is owner or grantor
ALL_COL_PRIVS_RECD Grants on columns for which the user, PUBLIC or enabled role is the grantee
ALL_TAB_PRIVS Grants on objects for which the user is the grantor, grantee, owner,
or an enabled role or PUBLIC is the grantee
ALL_TAB_PRIVS_MADE User's grants and grants on user's objects
ALL_TAB_PRIVS_RECD Grants on objects for which the user, PUBLIC or enabled role is the grantee
DBA_COL_PRIVS All grants on columns in the database
DBA_PRIV_AUDIT_OPTS Describes current system privileges being audited across the system and by user
.
.
.
Com base nisso, achei a seguinte tabela ALL_TAB_PRIVS:
ORA-00990: missing or invalid privilege
Cause: No privileges were specified in a GRANT privilege statement, or one of the specified privileges is invalid.
Action: Enter one or more valid privileges such as SELECT, INSERT, DELETE, UPDATE, ALTER, INDEX, REFERENCES, or ALL. More than one privilege may be granted by entering the privileges in a list separated by commas (,) or by specifying the keyword ALL to grant all privileges.