当前位置:网站首页>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;边栏推荐
- The last line of defense of cloud primary mixing department: node waterline design
- [paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
- Use of pgpool II and pgpooladmin
- postgresql 之 数据目录内部结构 简介
- 所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
- GEE升级,可以实现一件run tasks
- Collection recommandée!! Quel plug - in de gestion d'état flutter est le plus fort? Regardez le classement des manons de l'île, s'il vous plaît!
- Integerset of PostgreSQL
- ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
- [unity notes] screen coordinates to ugui coordinates
猜你喜欢

Argo workflows source code analysis

【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件

The last line of defense of cloud primary mixing department: node waterline design

Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!

String or binary data will be truncated

建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!

unity 自定义webgl打包模板

A new path for enterprise mid Platform Construction -- low code platform

强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向

企业中台建设新路径——低代码平台
随机推荐
Web3的先锋兵:虚拟人
The mega version model of dall-e MINI has been released and is open for download
[xlua notes] array of lua to array of C #
3D laser slam: time synchronization of livox lidar hardware
Web3对法律的需求
MetaForce原力元宇宙开发搭建丨佛萨奇2.0系统开发
postgresql之整體查詢大致過程
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
Use of fiddler
Alibaba cloud middleware open source past
1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
#yyds干货盘点# 解决名企真题:最大差值
B站6月榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
FLIR blackfly s usb3 industrial camera: how to use counters and timers
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
Douban average 9 x. Five God books in the distributed field!
张平安:加快云上数字创新,共建产业智慧生态
[C # notes] use file stream to copy files
Draco - glTF模型压缩利器
fiddler的使用