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/