Orcale权限、角色查看创建方法
时间:2024-01-20 04:22:02
查看当前用户拥有的系统权限
select * from user_sys_privs;
系统权限 系统管理员授予-----sys用户
create user lisi identified by 123456 //创建用户
grant create session to lisi //授予拥有会话的权限
grant create table to lisi //授予创建表的权限
grant create unlimited tablespace to lisi //授予无空间限制的权限
revoke create session from lisi //撤销权限
revoke create table from lisi
revoke create unlimited tablespace from lisi
当前用户对对象拥有是权限
select * from user_tab_privs;
对象权限 对象创建者授予或撤销权限
如:lisi用户创建表 tab
grant select on tab to wangwu //对表tab的查询条件授予给wangwu用户
grant all on tab to wangwu //对表tab的所有操作授予给wangwu用户
revoke select on tab from wangwu
revoke all on tab from wangwu
权限传递
sys -> A用户 -> B用户
系统权限
grant ceate any table to lisi with admin option; //李四用户可以将此权限传递给其它用户
对象权限
grant select on tabA to lisi with grant option;
角色
create(drop) role myrole
grant create session to myrole
grant create table to myrole
grant myrole to lisi
标签:Orcale,权限,角色
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python操作小程序云数据库实现简单的增删改查功能
2024-01-20 08:53:46
![](https://img.aspxhome.com/file/2023/8/97628_0s.jpg)
Python操作PDF文件之实现A3页面转A4
2021-03-06 19:45:06
![](https://img.aspxhome.com/file/2023/9/69059_0s.jpg)
Python中如何给字典设置默认值
2023-09-21 00:15:32
38个Asp内置函数介绍
2008-11-27 16:25:00
对python的bytes类型数据split分割切片方法
2021-01-07 03:09:14
Python QTimer实现多线程及QSS应用过程解析
2023-10-26 12:34:46
基于Nodejs的Tcp封包和解包的理解
2024-05-11 10:13:43
![](https://img.aspxhome.com/file/2023/9/125739_0s.png)
能让Python提速超40倍的神器Cython详解
2023-11-12 07:11:11
![](https://img.aspxhome.com/file/2023/2/64662_0s.png)
python实现剪贴板的操作
2021-09-06 08:46:16
![](https://img.aspxhome.com/file/2023/0/133510_0s.png)
OpenCV-Python模板匹配人眼的实例
2022-10-22 06:09:23
![](https://img.aspxhome.com/file/2023/5/84965_0s.png)
Pandas修改DataFrame列名的两种方法实例
2021-09-30 06:26:16
详解MySQL中的NULL值
2024-01-14 16:05:00
Python爬虫Xpath定位数据的两种方法
2022-07-03 16:36:53
![](https://img.aspxhome.com/file/2023/6/124366_0s.png)
MySQL初始密码的查看方式
2024-01-20 20:18:48
![](https://img.aspxhome.com/file/2023/1/77321_0s.png)
python使用dlib进行人脸检测和关键点的示例
2021-12-14 20:56:04
![](https://img.aspxhome.com/file/2023/9/68469_0s.png)
python三大器之迭代器、生成器、装饰器
2022-04-14 13:44:20
![](https://img.aspxhome.com/file/2023/3/102923_0s.jpg)
linux环境搭建图数据库neo4j的讲解
2024-01-16 22:55:31
![](https://img.aspxhome.com/file/2023/2/110142_0s.png)
python 获取sqlite3数据库的表名和表字段名的实例
2024-01-24 13:34:22
Python3.9.0 a1安装pygame出错解决全过程(小结)
2023-09-09 17:58:00
![](https://img.aspxhome.com/file/2023/4/135034_0s.jpg)
用Eclipse写python程序
2022-03-24 02:24:25
![](https://img.aspxhome.com/file/2023/5/101435_0s.jpg)