当前位置:网站首页>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;边栏推荐
- Use of pgpool II and pgpooladmin
- Decryption function calculates "task state and lifecycle management" of asynchronous task capability
- 所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
- 老板被隔离了
- Stm32f4 --- general timer update interrupt
- Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!
- How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
- 1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
- ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
- Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
猜你喜欢

Use of fiddler

Processing image files uploaded by streamlit Library

Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption

leetcode:736. Lisp 语法解析【花里胡哨 + 栈 + 状态enumaotu + slots】

AWS学习笔记(一)

云原生混部最后一道防线:节点水位线设计

SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!

Robot team learning method to achieve 8.8 times human return

C # / vb. Net supprime le filigrane d'un document word

Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
随机推荐
Data connection mode in low code platform (Part 1)
1--新唐nuc980 NUC980移植 UBOOT,从外部mx25l启动
Web3's need for law
Stm32f4 --- PWM output
Lombok makes the pit of ⽤ @data and @builder at the same time
如何从0到1构建32Core树莓派集群
MFC Windows 程序设计[147]之ODBC数据库连接(附源码)
【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations
Rethinking of investment
[paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
STM32项目 -- 选题分享(部分)
Robot team learning method to achieve 8.8 times human return
#夏日挑战赛#数据库学霸笔记(下)~
本周 火火火火 的开源项目!
Apifox,你的API接口文档卷成这样了吗?
What to do when encountering slow SQL? (next)
Seconds understand the delay and timing function of wechat applet
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
FLIR blackfly s usb3 industrial camera: how to use counters and timers
Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!