12cR1 PDB只读与读写转换

前端之家收集整理的这篇文章主要介绍了12cR1 PDB只读与读写转换前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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>
原文链接:https://www.f2er.com/oracle/206363.html

猜你在找的Oracle相关文章