oracle grant 授权语句
2012-11-13 22:27
330 查看
--select * from dba_users; 查询数据库中的所有用户 --alter user TEST_SELECT account lock; 锁住用户 --alter user TEST_SELECT account unlock; 给用户解锁 --create user xujin identified by xujin; 建立用户 --grant create tablespace to xujin; 授权 --grant select on tabel1 to xujin; 授权查询 --grant update on table1 to xujin; --grant execute on procedure1 to xujin 授权存储过程 --grant update on table1 to xujin with grant option; 授权更新权限转移给xujin用户,许进用户可以继续授权; --收回权限 --revoke select on table1 from xujin1; 收回查询select表的权限; --revoke all on table1 from xujin; /*grant connect to xujin; revoke connect from xujin grant select on xezf.cfg_alarm to xujin; revoke select on xezf.cfg_alarm from xujin;*/ --select table_name,privilege from dba_tab_privs where grantee='xujin' 查询一个用户拥有的对象权限 --select * from dba_sys_privs where grantee='xujin' 查询一个用户拥有的系统权限 --select * from session_privs --当钱会话有效的系统权限 --角色 --create role xujin1;--建立xujin1角色 --grant insert on xezf.cfg_alarm to xujin1; 将插入表的信息 --revoke insert on xezf.cfg_alarm from xujin1; 收回xujin1角色的权限 --grant xujin1 to xujin ; 将角色的权限授权给xujin; -- create role xujin2; --grant xujin1 to xujin2; 将角色xujin1授权给xujin2; --alter user xujin default xujin1,xujin2; 修改用户默认角色 -- DROP ROLE xujin1;删除角色1; --select * from role_sys_privs where role=xujin1; --查看许进1角色下有什么系统权限; --select granted_role,admin_option from role_role_privs where role='xujin2'; --查看xujin1角色下面有什么角色权限 --select * from role_sys_privs where role='xujin2'; --select table_name,privilege from role_tab_privs where role='xujin1'; --select * from dba_role_privs where grantee='xujin' --查看用户下面有多少个角色;本文出自 “IT-人生精彩” 博客,请务必保留此出处http://mrwlh.blog.51cto.com/2238823/1059376
相关文章推荐
- oracle grant 授权语句
- oracle grant 授权语句
- oracle grant 授权语句
- oracle grant 授权语句
- oracle grant 授权语句
- oracle grant 授权语句
- oracle grant 授权语句
- Oracle常用命令_查看用户_新建user_连接user_授权user_版本_表空间查看_控制文件_日志_sql语句
- Oracle常见授权与回收权限——grant和revoke
- Oracle grant用户授权
- Oracle授权语句
- oracle笔记整理8——生产批量操作语句、oracle系统包、创建用户并授权、变量属性
- oracle授权grant
- [oracle] 创建表空间、建用户、授权语句
- oracle中grant授权说明
- Oracle grant connect, resource to user语句中的权限
- Oracle新建用户、角色,授权,建表空间的sql语句
- Oracle创建表空间、创建用户、授权用户、导入dmp备份语句
- oracle 语句创建表空间、用户、授权
- oracle授权grant