Oracle数据库创建只读用户并批量授权
授权只读访问某个用户下的数据
一、创建角色
1 | create role select_all_qxphis_table; |
二、将qxphis用户的表授权给角色
1 | declare |
三、将角色授予给qxphis
1 | grant select_all_qxphis_table to qxphis with admin option; |
四、创建同义词
1 | declare |
五、授权其它权限
1 | ---如果只读用户需要访问数据字典,可以授权访问数据字典权限 |
- Title: Oracle数据库创建只读用户并批量授权
- Author: 𝓓𝓸𝓷
- Created at : 2025-05-08 16:39:23
- Updated at : 2025-05-09 16:40:00
- Link: https://www.zhangdong.me/oracle-create-readonly-user.html
- License: This work is licensed under CC BY-NC-SA 4.0.
评论
