当前位置:网站首页>CDB PDB user rights management
CDB PDB user rights management
2022-07-07 02:32:00 【User 8006012】
Public and local users
[email protected]> select username,common,con_id from cdb_users
where username in ('SYS','HR');
COMMON Columns show YES For public users , In all containers, including those created in the future PDB There are
COMMON Columns show NO For local users , Only exists in the current container
cdb Create public users in
Create public users c##user01, Set the password to 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 Create local users in
pdb Create local users in 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');
Public and local permissions and roles
cdb To authorize public users
stay cdb It is specified in container=current To authorize
[email protected]> grant connect to c##user01 container=current;
cdb Login with permission , pdb No authority
sqlplus c##user01/[email protected]
sqlplus c##user01/[email protected]
stay cdb Authorized in container=all
[email protected]> grant connect to c##user01 container=all;
cdb pdb All have authority
pdb To authorize local users
pdb Authorize local users in , Appoint container=all Report errors , Appoint container=current success
[email protected]> grant connect to user02 container=all;
[email protected]> grant connect to user02 container=current;
边栏推荐
- [unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
- A new path for enterprise mid Platform Construction -- low code platform
- Lombok makes the pit of ⽤ @data and @builder at the same time
- Web3对法律的需求
- How do I dump SoapClient requests for debugging- How to dump SoapClient request for debug?
- [unity notes] screen coordinates to ugui coordinates
- Web开发小妙招:巧用ThreadLocal规避层层传值
- 强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向
- #yyds干货盘点# 解决名企真题:最大差值
- UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
猜你喜欢
Go swagger use
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!
强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向
TiFlash 源码阅读(四)TiFlash DDL 模块设计及实现分析
How to build a 32core raspberry pie cluster from 0 to 1
Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
Application analysis of face recognition
FLIR blackfly s usb3 industrial camera: how to use counters and timers
C#/VB. Net to delete watermarks in word documents
Web3的先锋兵:虚拟人
随机推荐
Untiy文本框的代码换行问题
Lombok同时使⽤@Data和@Builder 的坑
[C # notes] reading and writing of the contents of text files
张平安:加快云上数字创新,共建产业智慧生态
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
低代码平台中的数据连接方式(上)
大咖云集|NextArch基金会云开发Meetup来啦!
Processing image files uploaded by streamlit Library
长安链学习笔记-证书研究之证书模式
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
Lombok makes the pit of ⽤ @data and @builder at the same time
Pioneer of Web3: virtual human
6 seconds to understand the book to the Kindle
Sensor: DS1302 clock chip and driver code
3 -- Xintang nuc980 kernel supports JFFS2, JFFS2 file system production, kernel mount JFFS2, uboot network port settings, and uboot supports TFTP
Web3对法律的需求
1 -- Xintang nuc980 nuc980 porting uboot, starting from external mx25l
Douban average 9 x. Five God books in the distributed field!
Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea