Parameters of maxdatafiles in the control file

Source: Internet
Author: User
From: http://www.linuxso.com/ SQL /18319.htmlcontrol file maxdatafiles Parameter

For instructions on Oracle control files, refer to my previous blog:

Oracle Control File

Http://blog.csdn.net/tianlesoftware/article/detaiLs/4974440

 

There is a parameter in the Oracle control file: maxdatafiles, which is used to control the maximum supported dataFile. You can modify this parameter when using dbca to create an instance.

 

You can also useDuCheck this parameter in the MP control file:

SQL> oradebugSetMypID

Statement procesSed.

SQL> alter Database Backup conTrOlfileto trace;

Database altered.

SQL> oradebug tracefile_name

D: \ app \ Administrator \ diag \ RDBMS \ neWCCS \ newccs \ trace \ newccs_ora_6960.trc

 

Trace content:

Create controlfile reuse Database "newccs" resetlogs archivelog

Maxlogfiles 16

Maxlogmembers 3

Maxdatafiles 100

Maxinstances 8

Maxloghistory292

-- 100 is the default value in the control file.

 

 

2. db_files Parameters

Description of this parameter on Oracle 11gr2:

Http://docs.oracle.com/CD/E11882_01/server.112/e25513/initparams057.htm

 

 

Property

Description

Parameter type

Integer

Default Value

200

Modifiable

No

Range of Values

Minimum: the largest among the absolute file numbers of the datafiles in the database

Maximum: Operating System-dependent

Basic

No

Oracle RAC

Multiple instaNCEs must have the same value.

 

Db_files specifies the maximum numberof database files that can be opened for this database. The maximum valid valueis the maximum number of files,SuBject
To operating system constraint, thatwill ever be specified for the database, including files to beDdEdby add datafileStatEments.

The -- db_files parameter specifies the maximum number of datafiles that can be opened by the database. The maximum value is also limited by the operating system.

 

If you increasethe value of db_files, then you must shut down and restart all instancesaccessing the database before the new value can take effect. If you have created Mary and standby database, then they shocould
Have the same value for thisparameter.

-- If we increase the value of db_files, We must restart the instance to make the modification take effect. In the DG Environment, the parameters of the master and slave databases must be consistent.

 

In Oracle 11gr2, the default value of this parameter is 200, which is greater than the default value of the control file.

 

3. Control the relationship between maxdatafiles and db_files in the file

Mos document: kccrsz:ExPanded controlfile message in "alert. log" [ID 101020.1]

 

 

Problem description

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

 

The "alert. log" file shows thefollowing message:

Kccrsz: Expanded controlfile section 4 from 17 to 18 Records

Number of logical blocks in Section remains at 2

Completed: Alter tablespace tb1 add datafile

 

 

Solution description

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

 

Starting inoracle8 the controlfile is automatically expanded. A new datafile is addedbeyond the maxdatafiles limited specified in the control file.

-- The control file is automatically extended from Oracle 8. When the number of newly added datafiles exceeds the control limit of the null maxdatafiles parameter, the value of maxdatafiles will automatically increase.

-- This verification can passDumpControl file to view

 

This alsohappens if new records are added to the "log_history" section of thecontrol files and there are no entries that cocould be replaced.

-- Automatic expansion of control files also occurs when the section is insufficient.

 

The routine thatperfoRmS the expansionWriteS
This message to the Alert Log. The messagesspecifies the section that was expanded and the amount of the expansion. pleasenote that this message cannot be turned off.

-- Some log information will be written to the Alert Log when the extension operation is executed, that is, the content above. This part lists the extended sections and the number of extensions, the display information cannot be disabled.

 

The automatic expansion only occurs up to the limit of the "init. ora" parameter "db_files ".

-- Note that the maximum value of the automatic control extended datafile in the control file is the value of our db_files parameter. So this is why we have seen that the value of db_files is greater than the default value in the control file.

 

 

 

Summary:

The maximum number of datafiles in the database is determined by the db_files parameter. Although there are limits in the control file, the limit parameters in the control file are automatically increased until the value of db_files is reached.

 

 

 

 

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.