Orcle 12c PDB OMF support new features ---

1 Description

12c in the level of support for PDB use OMF, if you do not specify CREATE_FILE_DEST PDB parameters, it will inherit the CDB CREATE_FILE_DEST parameter settings. DBA makes it easier to manage PDB.

Experiment 2

2.1 View current CREATE_FILE_DEST

SQL> show parameter CREATE_FILE_DEST

NAME	     TYPE	VALUE
------------------------------------ ----------------------
db_create_file_dest	     string    --没有指定

- specify a directory

SQL> alter system set db_create_file_dest = '/u01';
System altered.
SQL> show parameter CREATE_FILE_DEST

NAME	     TYPE	VALUE
------------------------------------ ----------------------
db_create_file_dest	     string	/u01

2.2 Creating a table space

SQL> create tablespace cndba datafile size 10m;
Tablespace created.

SQL> select file_name from dba_data_files where TABLESPACE_NAME='CNDBA';

FILE_NAME
--------------------------------------------------------------------------------
/u01/ORCL/487EDB0A76EB2640E0536E01A8C02399/datafile/o1_mf_cndba_dr8kfogo_.dbf

You can see the new directory automatically create data files.

If you create a table space, assigned two data files:

CREATE TABLESPACE tbs_4 DATAFILE SIZE 200M, SIZE 200M;

Note: Once the size is specified, then that can not be automatically extended.

Guess you like

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