当前位置:网站首页>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;
边栏推荐
- Twenty or thirty thousand a leaf? "Yang Mou" behind the explosion of plant consumption
- Draco - gltf model compression tool
- 企业中台建设新路径——低代码平台
- 机器人队伍学习方法,实现8.8倍的人力回报
- Linear list --- circular linked list
- FLIR blackfly s usb3 industrial camera: how to use counters and timers
- Dall-E Mini的Mega版本模型发布,已开放下载
- The last line of defense of cloud primary mixing department: node waterline design
- The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
- 解密函数计算异步任务能力之「任务的状态及生命周期管理」
猜你喜欢
argo workflows源码解析
C语言练习题_1
Robot team learning method to achieve 8.8 times human return
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!
Stm32f4 --- PWM output
Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module
云原生混部最后一道防线:节点水位线设计
#夏日挑战赛#数据库学霸笔记(下)~
[paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]
随机推荐
STM32 project -- Topic sharing (part)
Lumion 11.0 software installation package download and installation tutorial
[paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
纽约大学 CITIES 研究中心招聘理学硕士和博士后
真实项目,用微信小程序开门编码实现(完结)
Overall query process of PostgreSQL
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
Infrared camera: juge infrared mag32 product introduction
Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!
Metaforce force meta universe development and construction - fossage 2.0 system development
Introduction to RC oscillator and crystal oscillator
安全巡检的工作
[xlua notes] array of lua to array of C #
Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
[unity notes] screen coordinates to ugui coordinates
fiddler的使用
Rethinking of investment
New generation cloud native message queue (I)
所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
6 seconds to understand the book to the Kindle