Orcle 12c to support the new features --- create PDB specify the default table space

1 Description

When you create the PDB from the CDB seed or an application seed and specify the DEFAULT TABLESPACE clause, Oracle Database creates a smallfile tablespace and sets it as the default tablespace for the PDB. When you create the PDB using a method other than the using the CDB seed or application seed, such as cloning a PDB or plugging in an unplugged PDB, the default tablespace must be a tablespace that already exists in the source PDB.

At 12.1, only supports the creation of a new PDB PDB by seed, you can specify the default table space. 12.2, created by CREATE PLUGGABLE DATABASE statement PDB, you can specify the default table space.

  • First, the PDB is created by CDB seed or application seed, specify the default table space, Oracle will automatically create a related table space.

  • Second, by cloning or other plug other PDB PDB, then the default table space must exist in that the PDB.

2 Syntax

oracle will automatically create a table spacesihong

create pluggable database sihong admin user cndba identified by cndba
file_name_convert=('/u01/app/oracle/oradata/orcl/pdbseed/','/u01/app/oracle/oradata/orcl/sihong/')
DEFAULT TABLESPACE sihong;

Guess you like

Origin blog.csdn.net/qianglei6077/article/details/92795017