1. 程式人生 > >12cR1 PDB只讀與讀寫轉換

12cR1 PDB只讀與讀寫轉換

PDB read only PDB read write

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> 

12cR1 PDB只讀與讀寫轉換