Get the App
SLTechnology News&Howtos  ›  Database  › 

What are the permissions of the default roles CONNECT and RESOURCE

Shulou Source: shulou.com Published: 2022-06-01 09:47:33 10月01日 Update

For ordinary people, we grant them CONNECT,RESOURCE permissions after they are created, but generally speaking, it is enough to have these permissions, but do you know what specific permissions these two permissions have?

Default permissions for 1.CONNECT:

ALTER SESSION CREATE CLUSTER CREATE DATABASE LINK CREATE SEQUENCE CREATE SESSION CREATE SYNONYM CREATE TABLE CREATE VIEW

Default permissions for 2.RESOURCE:

CREATE CLUSTER CREATE INDEXTYPE CREATE OPERATOR CREATE PROCEDURE CREATE SEQUENCE CREATE TABLE CREATE TRIGGER CREATE TYPE

3. The permissions of the above roles can actually be found through the following SQL statement:

Select privilege from dba_sys_privs where grantee like\ 'CONNECT\' select privilege from dba_sys_privs where grantee like\ 'RESOURCE\'

Of course, through this statement, you can also check the permissions of other predefined roles in the system, such as the permissions of DBA:

Select privilege from dba_sys_privs where grantee like\ 'DBA\'

ADMINISTER DATABASE TRIGGER ADMINISTER RESOURCE MANAGER ALTER ANY CLUSTER ALTER AN.

SELECT * FROM ROLE_SYS_PRIVS WHERE ROLE = 'RESOURCE'

Alter user SCOTT quota unlimited on users

To give the user the right to use a table space

Tags: Permissions roles statements generally speaking two personnel right to use can be passed through user space system face Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Xiaomi Shulou Information Linux NVidia