当前位置:网站首页>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;边栏推荐
- Pioneer of Web3: virtual human
- Gee upgrade can realize one piece of run tasks
- 遇到慢SQL该怎么办?(下)
- 如何从0到1构建32Core树莓派集群
- Lidar: introduction and usage of ouster OS
- Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
- Introduction to the internal structure of the data directory of PostgreSQL
- 【森城市】GIS数据漫谈(二)
- Station B's June ranking list - feigua data up main growth ranking list (BiliBili platform) is released!
- Dall-E Mini的Mega版本模型发布,已开放下载
猜你喜欢

postgresql之整体查询大致过程

【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks

Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code

The last line of defense of cloud primary mixing department: node waterline design

SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!

Pioneer of Web3: virtual human
![[Mori city] random talk on GIS data (II)](/img/5a/dfa04e3edee5aa6afa56dfe614d59f.jpg)
[Mori city] random talk on GIS data (II)

Word wrap when flex exceeds width

C#/VB. Net to delete watermarks in word documents

Web3的先锋兵:虚拟人
随机推荐
Processing image files uploaded by streamlit Library
ODBC database connection of MFC windows programming [147] (with source code)
How can reinforcement learning be used in medical imaging? A review of Emory University's latest "reinforcement learning medical image analysis", which expounds the latest RL medical image analysis co
Lumion 11.0 software installation package download and installation tutorial
Seconds understand the delay and timing function of wechat applet
【森城市】GIS数据漫谈(二)
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity
[leetcode] day97 remove linked list elements
Lombok makes the pit of ⽤ @data and @builder at the same time
MetaForce原力元宇宙开发搭建丨佛萨奇2.0系统开发
Lumion 11.0软件安装包下载及安装教程
FLIR blackfly s usb3 industrial camera: how to use counters and timers
Big guys gather | nextarch foundation cloud development meetup is coming!
Several classes and functions that must be clarified when using Ceres to slam
真实项目,用微信小程序开门编码实现(完结)
postgresql 之 数据目录内部结构 简介
Linear list --- circular linked list
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
STM32 project -- Topic sharing (part)
leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]