Oracle用户授权

时间:2020-08-13 12:24:41   收藏:0   阅读:188

一.用户授权

1)普通权限

		grant ${autoType1, autoType2, autoType3, ...} to ${userName} identified by ${password};
例1: grant connect, resource to scott identified by tiger; -- 可以不带后面的"identified by 密码"部分
例2: grant create view to scott;

2)dba权限

		grant sysdba to ${userName};

3)导入数据库权限

		grant imp_full_database to ${userName};

4)查看用户拥有的角色

		select * from dba_role_privs where grantee=‘${用户名}‘;

5)查看角色拥有的权限

		select * from role_sys_privs where role = ‘${角色名}‘;

6)查看当前用户所有权限

		select * from user_sys_privs;
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!