Oracle 9iR2 10gR2 11gR2 connect resource角色拥有的权限的不同

SQL*Plus: Release 9.2.0.8.0 - Production on Wed Sep 25 19:47:58 2019

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

SQL> conn / as sysdba
Connected.
SQL> select grantee, privilege from dba_sys_privs where grantee = 'CONNECT' order by privilege;

GRANTEE                        PRIVILEGE
------------------------------ ----------------------------------------
CONNECT                        ALTER SESSION
CONNECT                        CREATE CLUSTER
CONNECT                        CREATE DATABASE LINK
CONNECT                        CREATE SEQUENCE
CONNECT                        CREATE SESSION
CONNECT                        CREATE SYNONYM
CONNECT                        CREATE TABLE
CONNECT                        CREATE VIEW

8 rows selected.

SQL> select grantee, privilege from dba_sys_privs where grantee = 'RESOURCE' order by privilege;

GRANTEE                        PRIVILEGE
------------------------------ ----------------------------------------
RESOURCE                       CREATE CLUSTER
RESOURCE                       CREATE INDEXTYPE
RESOURCE                       CREATE OPERATOR
RESOURCE                       CREATE PROCEDURE
RESOURCE                       CREATE SEQUENCE
RESOURCE                       CREATE TABLE
RESOURCE                       CREATE TRIGGER
RESOURCE                       CREATE TYPE

8 rows selected.


SQL*Plus: Release 10.2.0.5.0 - Production on Wed Sep 25 19:49:50 2019

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

SQL> conn / as sysdba
Connected.
SQL> select grantee, privilege from dba_sys_privs where grantee = 'CONNECT' order by privilege;

GRANTEE                        PRIVILEGE
------------------------------ ----------------------------------------
CONNECT                        CREATE SESSION

SQL> select grantee, privilege from dba_sys_privs where grantee = 'RESOURCE' order by privilege;

GRANTEE                        PRIVILEGE
------------------------------ ----------------------------------------
RESOURCE                       CREATE CLUSTER
RESOURCE                       CREATE INDEXTYPE
RESOURCE                       CREATE OPERATOR
RESOURCE                       CREATE PROCEDURE
RESOURCE                       CREATE SEQUENCE
RESOURCE                       CREATE TABLE
RESOURCE                       CREATE TRIGGER
RESOURCE                       CREATE TYPE

8 rows selected.


SQL*Plus: Release 11.2.0.4.0 Production on Wed Sep 25 19:51:00 2019

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

SQL> conn / as sysdba
Connected.
SQL> select grantee, privilege from dba_sys_privs where grantee = 'CONNECT' order by privilege;

GRANTEE                        PRIVILEGE
------------------------------ ----------------------------------------
CONNECT                        CREATE SESSION

SQL> select grantee, privilege from dba_sys_privs where grantee = 'RESOURCE' order by privilege;

GRANTEE                        PRIVILEGE
------------------------------ ----------------------------------------
RESOURCE                       CREATE CLUSTER
RESOURCE                       CREATE INDEXTYPE
RESOURCE                       CREATE OPERATOR
RESOURCE                       CREATE PROCEDURE
RESOURCE                       CREATE SEQUENCE
RESOURCE                       CREATE TABLE
RESOURCE                       CREATE TRIGGER
RESOURCE                       CREATE TYPE

8 rows selected.

SQL>
 

上一篇:CCF CSP 201612-3权限查询(c++100)


下一篇:创建用户要给session权限,报错:user lacks CREATE SESSION privilege