当前位置:网站首页>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;
边栏推荐
- leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]
- Draco - gltf model compression tool
- Argo workflows source code analysis
- 阿里云中间件开源往事
- [C # notes] reading and writing of the contents of text files
- Introduction to FLIR blackfly s industrial camera
- #夏日挑战赛#数据库学霸笔记(下)~
- Jacob Steinhardt, assistant professor of UC Berkeley, predicts AI benchmark performance: AI has made faster progress in fields such as mathematics than expected, but the progress of robustness benchma
- Integerset of PostgreSQL
- 【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations
猜你喜欢
Dall-E Mini的Mega版本模型发布,已开放下载
Argo workflows source code analysis
Blackfly s usb3 industrial camera: buffer processing
老板被隔离了
本周 火火火火 的开源项目!
Web3对法律的需求
解密函数计算异步任务能力之「任务的状态及生命周期管理」
Use of fiddler
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
随机推荐
The boss is quarantined
[leetcode] day97 remove linked list elements
阿里云易立:云原生如何破解企业降本提效难题?
Douban average 9 x. Five God books in the distributed field!
PostgreSQL图形化界面工具之pgAdmin4
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
Data connection mode in low code platform (Part 1)
4--新唐nuc980 挂载initramfs nfs文件系统
Lumion 11.0 software installation package download and installation tutorial
leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]
C语言练习题_1
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
Processing image files uploaded by streamlit Library
Word wrap when flex exceeds width
[Mori city] random talk on GIS data (II)
Detailed explanation of line segment tree (including tested code implementation)
argo workflows源码解析
pgpool-II和pgpoolAdmin的使用
ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B