当前位置:网站首页>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
- 压缩 js 代码就用 terser
- [C # notes] use file stream to copy files
- Chang'an chain learning notes - certificate model of certificate research
- 长安链学习笔记-证书研究之证书模式
- How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
- 老板被隔离了
- Lumion 11.0软件安装包下载及安装教程
- Real project, realized by wechat applet opening code (end)
- postgresql之整体查询大致过程
猜你喜欢
Lombok makes the pit of ⽤ @data and @builder at the same time
Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
unity中跟随鼠标浮动的面板,并可以自适应文字内容的大小
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
Douban average 9 x. Five God books in the distributed field!
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
C # / vb. Net supprime le filigrane d'un document word
Argo workflows source code analysis
随机推荐
Seconds understand the delay and timing function of wechat applet
Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
Untiy文本框的代码换行问题
A new path for enterprise mid Platform Construction -- low code platform
The last line of defense of cloud primary mixing department: node waterline design
所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations
STM32 project -- Topic sharing (part)
Lumion 11.0软件安装包下载及安装教程
4 -- Xintang nuc980 mount initramfs NFS file system
AWS学习笔记(一)
The boss is quarantined
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
最近小程序开发记录
[unity notes] screen coordinates to ugui coordinates
云原生混部最后一道防线:节点水位线设计
Ali yunyili: how does yunyuansheng solve the problem of reducing costs and improving efficiency?
The mega version model of dall-e MINI has been released and is open for download
Lidar: introduction and usage of ouster OS
Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code