当前位置:网站首页>CDB PDB 用户权限管理
CDB PDB 用户权限管理
2022-07-06 18:47:00 【用户8006012】
公用用户和本地用户
[email protected]> select username,common,con_id from cdb_users
where username in ('SYS','HR');
COMMON 列显示 YES 为公共用户,在所有容器包括将来创建的 PDB 中均存在
COMMON 列显示 NO 为本地用户,仅在当前容器中存在cdb 中创建公用用户
创建公共用户 c##user01,设置密码为 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 中创建本地用户
pdb 中创建本地用户 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');公用和本地权限和角色
cdb 中给公用用户授权
在 cdb 中指定 container=current 进行授权
[email protected]> grant connect to c##user01 container=current;
cdb 有权限登录, pdb 没有权限
sqlplus c##user01/[email protected]
sqlplus c##user01/[email protected]
在 cdb 中授权指定 container=all
[email protected]> grant connect to c##user01 container=all;
cdb pdb 都有权限pdb 中给本地用户授权
pdb 中对本地用户授权,指定 container=all 报错,指定 container=current 成功
[email protected]> grant connect to user02 container=all;
[email protected]> grant connect to user02 container=current;边栏推荐
- The mega version model of dall-e MINI has been released and is open for download
- Go swagger use
- Seconds understand the delay and timing function of wechat applet
- Ali yunyili: how does yunyuansheng solve the problem of reducing costs and improving efficiency?
- 阿里云易立:云原生如何破解企业降本提效难题?
- unity中跟随鼠标浮动的面板,并可以自适应文字内容的大小
- 阿里云中间件开源往事
- Gee upgrade can realize one piece of run tasks
- 建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
- 新一代云原生消息队列(一)
猜你喜欢

New generation cloud native message queue (I)
![[server data recovery] data recovery case of a Dell server crash caused by raid damage](/img/29/e07bf1f8eae9be19f6eed69be5642d.jpg)
[server data recovery] data recovery case of a Dell server crash caused by raid damage

String or binary data will be truncated

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!

1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效

云原生混部最后一道防线:节点水位线设计

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

Blackfly s usb3 industrial camera: buffer processing

This week's hot open source project!

压缩 js 代码就用 terser
随机推荐
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
强化学习如何用于医学影像?埃默里大学最新《强化学习医学影像分析》综述,阐述最新RL医学影像分析概念、应用、挑战与未来方向
What to do when encountering slow SQL? (next)
Go swagger use
投资的再思考
[xlua notes] array of lua to array of C #
Pgadmin4 of PostgreSQL graphical interface tool
go swagger使用
遇到慢SQL该怎么办?(下)
Introduction to the internal structure of the data directory of PostgreSQL
Gee upgrade can realize one piece of run tasks
所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
Use of fiddler
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
A new path for enterprise mid Platform Construction -- low code platform
Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
[server data recovery] data recovery case of a Dell server crash caused by raid damage
C#/VB.NET 删除Word文档中的水印
B站6月榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
4--新唐nuc980 挂载initramfs nfs文件系统