Oralce OMF Features (iii) use of Oralce OMF management control files

Source: Internet
Author: User

Three. Use OMF management control files

Using the OMF management control file is similar to the admin log file, which is mainly concerned with the Db_create_online_log_dest_n parameter

That is, the control file is stored by default under Db_create_online_log_dest_n, when a db_create_online_log_dest_n is defined

A control file is generated, and multiple control files are generated when more is defined.

Prerequisites: Remove the Control_files parameter

Alter system reset Control_files scope = spfile sid = ' * ';

The following are reserved OMF paths:

Sql> Show PARAMETER Db_create

NAME TYPE VALUE

------------------------------------ ----------- ------------------------------

Db_create_file_dest STRING/U01/APP/ORACLE/ORADATA/ORCL

Db_create_online_log_dest_1 String/u01/app/oracle/disk1

Db_create_online_log_dest_2 String/u01/app/oracle/disk2

Db_create_online_log_dest_3 string

Db_create_online_log_dest_4 string

Db_create_online_log_dest_5 string

Sql> Show Parameter Db_recovery_file

NAME TYPE VALUE

------------------------------------ ----------- ------------------------------

Db_recovery_file_dest String/u01/app/oracle/flash_recovery

_area

Db_recovery_file_dest_size Big Integer 2G

Summarize

Parameters applicable range

Db_create_file_dest_size datafile,create tablespace<>

Db_create_online_log_dest_n logfile, Controlfile

Db_recovery_file_dest Rman, Archivelog,onlinelog

sql> ALTER DATABASE backup Controlfile to trace;

And then remove the control_files parameters. Originally wanted to use reset to clear off control_files. Unfortunately, the total error.

The only way to change manually is by using raw pfile files:

sql> create pfile= ' C:\anran.ora ' from SPFile.

Open the Anran.ora,remove control_files parameter row.

sql> STARTUP nomount pfile= ' C:\anran.ora '

All that's left is to rebuild the control file by using the trace file script, here's a little bit, there are two scripts in the trace file, Noresetlogs/resetlog. We'd better choose the former.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

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.