PDB只读与读写转换
1、pdb 到mount状态
sql> alter pluggable database pdb11 close immediate;
Pluggable database altered.
2、查看pdb
sql> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB11 MOUNTED
sql>
3、pdb只读
sql>
sql> alter pluggable database pdb11 open read only;
Pluggable database altered.
sql> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB11 READ ONLY NO
sql> alter pluggable database pdb11 close immediate;
Pluggable database altered.
4、pdb读写
sql> alter pluggable database pdb11 open read write;
Pluggable database altered.
sql> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB11 READ WRITE NO
sql>