当前位置:网站首页>CDB PDB 用户权限管理
CDB PDB 用户权限管理
2022-07-06 18:47:00 【用户8006012】
公用用户和本地用户
[email protected]> select username,common,con_id from cdb_users
where username in ('SYS','HR');
COMMON 列显示 YES 为公共用户,在所有容器包括将来创建的 PDB 中均存在
COMMON 列显示 NO 为本地用户,仅在当前容器中存在
cdb 中创建公用用户
创建公共用户 c##user01,设置密码为 oracle
[email protected]> create user c##user01 identified by oracle;
[email protected]> select username,common,con_id from cdb_users
where username in ('SYS','HR','C##USER01');
pdb 中创建本地用户
pdb 中创建本地用户 user02
[email protected]> create user user02 identified by oracle;
[email protected]> select username,common,con_id from cdb_users
where username in ('SYS','HR','C##USER01','USER02');
公用和本地权限和角色
cdb 中给公用用户授权
在 cdb 中指定 container=current 进行授权
[email protected]> grant connect to c##user01 container=current;
cdb 有权限登录, pdb 没有权限
sqlplus c##user01/[email protected]
sqlplus c##user01/[email protected]
在 cdb 中授权指定 container=all
[email protected]> grant connect to c##user01 container=all;
cdb pdb 都有权限
pdb 中给本地用户授权
pdb 中对本地用户授权,指定 container=all 报错,指定 container=current 成功
[email protected]> grant connect to user02 container=all;
[email protected]> grant connect to user02 container=current;
边栏推荐
- 4--新唐nuc980 挂载initramfs nfs文件系统
- fiddler的使用
- 15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
- Overall query process of PostgreSQL
- Sensor: DS1302 clock chip and driver code
- argo workflows源码解析
- [C # notes] reading and writing of the contents of text files
- 最近小程序开发记录
- Time synchronization of livox lidar hardware -- PPS method
- SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
猜你喜欢
随机推荐
Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
Real project, realized by wechat applet opening code (end)
Alibaba cloud middleware open source past
处理streamlit库上传的图片文件
Use of fiddler
New generation cloud native message queue (I)
3--新唐nuc980 kernel支持jffs2, Jffs2文件系统制作, 内核挂载jffs2, uboot网口设置,uboot支持tftp
[C # notes] use file stream to copy files
Apifox,你的API接口文档卷成这样了吗?
C#/VB. Net to delete watermarks in word documents
Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code
postgresql之整体查询大致过程
leetcode:736. Lisp 语法解析【花里胡哨 + 栈 + 状态enumaotu + slots】
建议收藏!!Flutter状态管理插件哪家强?请看岛上码农的排行榜!
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
Integerset of PostgreSQL
How to build a 32core raspberry pie cluster from 0 to 1
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
4--新唐nuc980 挂载initramfs nfs文件系统