OMF Tablespace in 19c database
Oracle Managed Files (OMF) handles file creation and deletion directly at the operating system level.
Sample we only need to specify that you want to create a tablespace; you do not need to specify the name and path of the tablespace's data file with the DATAFILE clause. This feature works well with a logical volume manager (LVM).
Below installation
parameters are must enable the OMF.
DB_CREATE_FILE_DEST Defines the locations of the default file system directory for the datafiles and temporary files. SQL> show parameter DB_CREATE_FILE_DEST NAME
TYPE VALUE ------------------------------------------------------------------------------- db_create_file_dest
string
/u01/app/oracle/oradata
DB_CREATE_ONLINE_LOG_DEST_n Defines the locations of the redo log files and control files creations.
DB_RECOVERY_FILE_DEST Default location for the fast recovery area. SQL> show parameter DB_RECOVERY_FILE_DEST NAME TYPE VALUE ------------------------------------------------------------------------------------ db_recovery_file_dest
string
/u01/app/oracle/fast_recovery_area Here will see the two scenario's first one is OMF enabled and second scenario is OMF is disabled Scenario 1 OMF Enabled:- db_create_file_dest & db_recovery_file_dest are set no need to mention the my data file path and size. Below screenshot showing OMF enabled and db_create_file_dest & db_recovery_file_dest showing OMF enabled. If value is empty OMF is disabled the database Let's create one tablespace hear Below screenshot shows created sample tablespace its automatically fetch the datafile location and size of the datafile. Scenario 2 OMF Disabled:- I just disabled the OMF and tried to create one tablespace "create tablespace
bsnl;" without specifying any location and size and received an
error. The second command is "create tablespace bsnl datafile'/u01/app/oracle/oradata/TESTDB/datafile/bsnl.dbf';
error I'm getting an error about no size specified. So this is the distinction in OMF. Related Posts:
|
Comments
Post a Comment