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> 

相关文章

这篇文章主要介绍“hive和mysql的区别是什么”,在日常操作中...
这篇“MySQL数据库如何改名”文章的知识点大部分人都不太理解...
这篇文章主要介绍“mysql版本查询命令是什么”的相关知识,小...
本篇内容介绍了“mysql怎么修改字段的内容”的有关知识,在实...
这篇文章主要讲解了“mysql怎么删除unique约束”,文中的讲解...
今天小编给大家分享一下mysql怎么查询不为空的字段的相关知识...