正德厚生,臻于至善

Oracle 19c pdb open restricted 处理

Oracle 19c pdb open restricted 处理

在CDB下查询受限的PDB:
set lines 200 pages 50000;
col name for a20;
select con_id, name, open_mode, restricted from v$pdbs;

在PDB中查询相关受限的PDB:
select instance_name, logins, status from gv$instance; (v$containers也可以查询)

cdb下更换 pdb restricted 模式:
alter pluggable database pdb_name close immediate instance=all; (all except pdb1)
alter pluggable database pdb_name open read write instance=all;

alter pluggable database PDB$SEED close immediate;
alter pluggable database PDB$SEED open read write;

pdb下更换 pdb restricted 模式:
alter session set container=pdb_name;
alter pluggable database close immediate;
alter pluggable database open;

在受限模式下,可以授予特定用户 restricted session权限用于临时登录,记得revoke。

alter pluggable database pdb_name open read only;
alter pluggable database pdb_name open upgrade;
alter pluggable database pdb_name open read write;
赞(1) 打赏
未经允许不得转载:徐万新之路 » Oracle 19c pdb open restricted 处理

评论 抢沙发

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫

登录

找回密码

注册