ORA-65036: pluggable database PDB$SEED not open in required mode

ORA-65036 can be returned when creating a PDB using the DBCA or the command line (SQLPLUS).
Background is when creating a PDB Oracle depends on PDB$SEED to get the required template for the new PDB. If the PDB$SEED is not in ‘read only’ or ‘read write’ mode ora-65036 can be returned.



Below is an example where error is returned with mounted state PDB$SEED,
 SQL> CREATE PLUGGABLE DATABASE pdb2 ADMIN USER pdb_adm IDENTIFIED BY Password1 CREATE_FILE_DEST='+DATA';  
 CREATE PLUGGABLE DATABASE pdb2 ADMIN USER pdb_adm IDENTIFIED BY Password1 CREATE_FILE_DEST='+DATA'  
 *  
 ERROR at line 1:  
 ORA-65036: pluggable database PDB$SEED not open in required mode  
 SQL> show pdbs;  
   CON_ID CON_NAME            OPEN MODE RESTRICTED  
 ---------- ------------------------------ ---------- ----------  
      2 PDB$SEED            MOUNTED  
      3 ORCLPDB            READ WRITE NO  
 SQL>  
 SQL> alter pluggable database PDB$SEED open;  
 Pluggable database altered.  
 SQL> show pdbs;  
   CON_ID CON_NAME            OPEN MODE RESTRICTED  
 ---------- ------------------------------ ---------- ----------  
      2 PDB$SEED            READ WRITE NO  
      3 ORCLPDB            READ WRITE NO  
 SQL> CREATE PLUGGABLE DATABASE pdb2 ADMIN USER pdb_adm IDENTIFIED BY Password1 CREATE_FILE_DEST='+DATA';  
 Pluggable database created.  
 SQL> alter pluggable database PDB$SEED close;  
 Pluggable database altered.  
 SQL> alter pluggable database PDB$SEED open read only;  
 Pluggable database altered.  
 SQL> CREATE PLUGGABLE DATABASE pdb3 ADMIN USER pdb_adm IDENTIFIED BY Password1 CREATE_FILE_DEST='+DATA';  
 Pluggable database created.  
 SQL> show pdbs;  
   CON_ID CON_NAME            OPEN MODE RESTRICTED  
 ---------- ------------------------------ ---------- ----------  
      2 PDB$SEED            READ ONLY NO  
      3 ORCLPDB            READ WRITE NO  
      5 PDB2              MOUNTED  
      7 PDB3              MOUNTED  
 SQL> alter pluggable database PDB$SEED close;  
 Pluggable database altered.  
 SQL> alter pluggable database PDB$SEED open restricted;  
 Pluggable database altered.  
 SQL> show pdbs;  
   CON_ID CON_NAME            OPEN MODE RESTRICTED  
 ---------- ------------------------------ ---------- ----------  
      2 PDB$SEED            READ WRITE YES  
      3 ORCLPDB            READ WRITE NO  
      5 PDB2              MOUNTED  
      7 PDB3              MOUNTED  
 SQL> CREATE PLUGGABLE DATABASE pdb4 ADMIN USER pdb_adm IDENTIFIED BY Password1 CREATE_FILE_DEST='+DATA';  
 Pluggable database created.  
 SQL>  

Also PDB creation is succeeds even with restricted PDB$SEED with open mode is either ‘read write’ or ‘read only’.

Related Articles --

Comments

Popular posts from this blog

ORA-16433: The database or pluggable database must be opened in read/write

Oracle Multitenant - Create new service for PDB using DBMS_SERVICE

Wait for unread message on broadcast channel - Blocking Sessions