当前位置:网站首页>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;边栏推荐
- 【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
- 建议收藏!!Flutter状态管理插件哪家强?请看岛上码农的排行榜!
- FLIR blackfly s usb3 industrial camera: how to use counters and timers
- The boss is quarantined
- [paper reading | deep reading] dngr:deep neural networks for learning graph representations
- Web3的先锋兵:虚拟人
- 进程管理基础
- #yyds干货盘点# 解决名企真题:最大差值
- Untiy文本框的代码换行问题
- Pioneer of Web3: virtual human
猜你喜欢

如何从0到1构建32Core树莓派集群

阿里云易立:云原生如何破解企业降本提效难题?

Draco - gltf model compression tool

Summer Challenge database Xueba notes (Part 2)~
![[Mori city] random talk on GIS data (II)](/img/5a/dfa04e3edee5aa6afa56dfe614d59f.jpg)
[Mori city] random talk on GIS data (II)

Argo workflows source code analysis

处理streamlit库上传的图片文件

Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem

进程管理基础

Processus général de requête pour PostgreSQL
随机推荐
本周 火火火火 的开源项目!
4 -- Xintang nuc980 mount initramfs NFS file system
leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]
建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
Freeswitch dials extension number source code tracking
Real project, realized by wechat applet opening code (end)
postgresql之integerset
B站6月榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
[server data recovery] data recovery case of a Dell server crash caused by raid damage
Infrared camera: juge infrared mag32 product introduction
Draco - gltf model compression tool
GEE升级,可以实现一件run tasks
Chang'an chain learning notes - certificate model of certificate research
Recent applet development records
Halcon实例转OpenCvSharp(C# OpenCV)实现--瓶口缺陷检测(附源码)
[leetcode] day97 remove linked list elements
长安链学习笔记-证书研究之证书模式
Douban average 9 x. Five God books in the distributed field!
Web开发小妙招:巧用ThreadLocal规避层层传值
【Node学习笔记】chokidar模块实现文件监听