对于一般的人员,我们在创建后,都给其授予CONNECT,RESOURCE权限,但一般来说,拥有这些权限,也足够了,但大家知道这两个权限都有哪些具体的权限吗?
1.CONNECT 的默认权限:
ALTER SESSION CREATE CLUSTER CREATE DATABASE LINK CREATE SEQUENCE CREATE SESSION CREATE SYNONYM CREATE TABLE CREATE VIEW
2.RESOURCE 的默认权限:
CREATE CLUSTER CREATE INDEXTYPE CREATE OPERATOR CREATE PROCEDURE CREATE SEQUENCE CREATE TABLE CREATE TRIGGER CREATE TYPE
3.对于上面的角色的权限,其实可以通过以下SQL语句可以查到:
select privilege from dba_sys_privs where grantee like \'CONNECT\'
select privilege from dba_sys_privs where grantee like \'RESOURCE\'
当然,通过这个语句,也可以查其他系统预定义角色的权限,比如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;
来赋予用户某个表空间的使用权
转自:http://blog.163.com/zhangjian_sundun/blog/static/77097301200806113124695/