Grant to allow users to create new database objects, such as tables, views, indexes, or procedures.
The WITH ADMIN ONLY OPTION and WITH ADMIN OPTION clauses are invalid when using the WITH NO SYSTEM PRIVILEGE INHERITANCE. clause. The WITH NO ADMIN OPTION clause is valid, but not required, as it is semantically equivalent to the WITH NO SYSTEM PRIVILEGE INHERITANCE clause.
Administrative Option | Statement |
---|---|
With full administrative rights |
GRANT ROLE SYS_AUTH_RESOURCE_ROLE TO user_ID WITH ADMIN OPTION |
With administrative rights only |
GRANT ROLE SYS_AUTH_RESOURCE_ROLE TO user_ID WITH ADMIN ONLY OPTION |
With no administrative rights |
GRANT ROLE SYS_AUTH_RESOURCE_ROLE TO user_ID WITH NO ADMIN OPTION |
With no system privilege inheritance |
GRANT ROLE SYS_AUTH_RESOURCE_ROLE TO user_ID WITH NO SYSTEM PRIVILEGE INHERITANCE |
This example grants the SYS_AUTH_RESOURCE_ROLE to Mary and Joe, in two ways. Mary is granted administrative rights to the role and inherits the underlying system privileges of the role while Joe is granted neither.
GRANT ROLE SYS_AUTH_RESOURCE_ROLE TO Mary WITH ADMIN OPTION
GRANT ROLE SYS_AUTH_RESOURCE_ROLE TO Joe WITH NO SYSTEM PRIVILEGE INHERITANCE