当前位置:网站首页>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;
边栏推荐
- Rethinking of investment
- TiFlash 源码阅读(四)TiFlash DDL 模块设计及实现分析
- Processing image files uploaded by streamlit Library
- [server data recovery] data recovery case of a Dell server crash caused by raid damage
- 【论文阅读|深读】RolNE: Improving the Quality of Network Embedding with Structural Role Proximity
- Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
- unity 自定义webgl打包模板
- Leetcode:minimum_depth_of_binary_tree解决问题的方法
- 1 -- Xintang nuc980 nuc980 porting uboot, starting from external mx25l
- 猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
猜你喜欢
leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]
Data connection mode in low code platform (Part 1)
阿里云中间件开源往事
Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!
Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module
Compress JS code with terser
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!
Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
A new path for enterprise mid Platform Construction -- low code platform
fiddler的使用
随机推荐
Processus général de requête pour PostgreSQL
Introduction to FLIR blackfly s industrial camera
1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
Untiy文本框的代码换行问题
STM32 project -- Topic sharing (part)
压缩 js 代码就用 terser
String or binary data will be truncated
Overall query process of PostgreSQL
GEE升级,可以实现一件run tasks
C # / vb. Net supprime le filigrane d'un document word
安全巡检的工作
unity中跟随鼠标浮动的面板,并可以自适应文字内容的大小
Lombok makes the pit of ⽤ @data and @builder at the same time
go swagger使用
安全交付工程师
进程管理基础
Draco - glTF模型压缩利器
Douban average 9 x. Five God books in the distributed field!
PostgreSQL图形化界面工具之pgAdmin4
AWS学习笔记(一)