在CDB下查询受限的PDB:
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;

pdb下更换 pdb restricted 模式:

alter session set container=pdb_name;
alter pluggable database close immediate;
alter pluggable database open;

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