Using OMF to simplify database management

Source: Internet
Author: User

Oracle9i brings a number of exciting new features, one of which is Oracle's automated management files at the operating system level-Oracle Managed files (OMF). Before oracle9i occurs, the DBA must manually remove the data file (datafile) when the tablespace is unloaded and carefully examine the location of the file before creating a new table space.

To understand how OMF works, let's first define a new parameter called Db_cteate_file_dest.

Alter system set db_create_file_dest= '/u01/oradata/prod ';


Once the Db_cteate_file_dest parameter is set, we can create the table space without specifying the filename.

Createtablespace
Omf1
DataFile size 100m
Locally managed;

After the file is created, Oracle can assign and name the files. Oracle OMF uses the following naming transformation conventions. The default file size is 100M and is named in the following format:

where
%u is a unique 8 digit code
%g is the log file group number
%t is the tablespace name

Controlfiles Ora_%u.ctl
Redo Log Files Ora_%g_%u.log
Datafiles ora_%t_%u.dbf
Temporary datafilesora_%t_%u.tmp

The Oracle9i OMF tool also has a new warning log message (alert log) that tells us when the OMF data file has changed. Here is an example of a warning log.

Fri Mar 23 01:44:46 2001
CREATE tablespace omf1 datafile SIZE 10M autoextend off
Fri Mar 23 01:44:47 2001
Created Oracle Managed FILE/DATABASES/ED25/OMF1/ORA_OMF1_XCP6RG84.DBF
Completed:create tablespace omf1 datafile SIZE 10M autoexte
Fri Mar 23 01:45:45 2001
Drop Tablespace OMF1
Fri Mar 23 01:45:45 2001
Deleted Oracle Managed FILE/DATABASES/ED25/OMF1/ORA_OMF_XCP6RG84.DBF
Completed:drop tablespace OMF1







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.