Domanda

I want to know once you create a user role and add some privileges as:

CREATE ROLE usern NOT IDENTIFIED ;
GRANT SELECT ANY DICTIONARY TO usern ;
GRANT SELECT ON t90022.temptable TO usern ;

Can you edit the user role and just state the privilege as follows?

GRANT SELECT ON 90888.temptable2 TO usern ;

Will the user role be updated or do you need to drop and create the user role again?

PS: I don't have privileges to try this out. So please help

È stato utile?

Soluzione

Granting privileges in Oracle is cumulative. You do not have to re-grant privileges already granted, and in fact must revoke them explicitly to remove them.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top