Custom Search
#header-wrapper { margin:0; padding: 0; background-color: #1d3146; text-align: left; } #header { margin: 0 2%; background-color: #1d3146; color: #ffffff; padding: 0; font: normal normal 210% Verdana, Arial, Sans-serif;; position: relative; } h1.title { padding-top: 38px; margin: 0 1% .1em; line-height: 1.2em; font-size: 100%; } h1.title a, h1.title a:visited { color: #ffffff; text-decoration: none; } #header .description { display: block; margin: 0 1%; padding: 0 0 40px; line-height: 1.4em; font-size: 50%; } /* Content ----------------------------------------------- */ .clear { clear: both; } #content-wrapper { margin: 0 2%; padding: 0 0 15px; text-align: left; background-color: #ffffff; border: 1px solid #cccccc; border-top: 0; } #main-wrapper { margin-left: 1%; width: 64%; float: left; background-color: #ffffff; display: inline; /* fix for doubling margin in IE */ word-wrap: break-word; /* fix for long text breaking sidebar float in IE */ overflow: hidden; /* fix for long non-text content breaking IE sidebar float */ } #sidebar-wrapper { margin-right: 1%; width: 29%; float: right; background-color: #ffffff; display: inline; /* fix for doubling margin in IE */ word-wrap: break-word; /* fix for long text breaking sidebar float in IE */ overflow: hidden; /* fix for long non-text content breaking IE sidebar float */ } /* Headings ----------------------------------------------- */ h2, h3 { margin: 0; } /* Posts ----------------------------------------------- */ .date-header { margin: 1.5em 0 0; font-weight: normal; color: #999999; font-size: 100%; } .post { margin: 0 0 1.5em; padding-bottom: 1.5em; } .post-title { margin: 0; padding: 0; font-size: 125%; font-weight: bold; line-height: 1.1em; } .post-title a, .post-title a:visited, .post-title strong { text-decoration: none; color: #333333; font-weight: bold; } .post div { margin: 0 0 .75em; line-height: 1.3em; } .post-footer { margin: -.25em 0 0; color: #333333; font-size: 87%; } .post-footer .span { margin-right: .3em; } .post img { padding: 4px; border: 1px solid #cccccc; } .post blockquote { margin: 1em 20px; } .post blockquote p { margin: .75em 0; } /* Comments ----------------------------------------------- */ #comments h4 { margin: 1em 0; color: #999999; } #comments h4 strong { font-size: 110%; } #comments-block { margin: 1em 0 1.5em; line-height: 1.3em; } #comments-block dt { margin: .5em 0; } #comments-block dd { margin: .25em 0 0; } #comments-block dd.comment-footer { margin: -.25em 0 2em; line-height: 1.4em; font-size: 78%; } #comments-block dd p { margin: 0 0 .75em; } .deleted-comment { font-style:italic; color:gray; } .feed-links { clear: both; line-height: 2.5em; } #blog-pager-newer-link { float: left; } #blog-pager-older-link { float: right; } #blog-pager { text-align: center; } /* Sidebar Content ----------------------------------------------- */ .sidebar h2 { margin: 1.6em 0 .5em; padding: 4px 5px; background-color: #ffd595; font-size: 100%; color: #333333; } .sidebar ul { margin: 0; padding: 0; list-style: none; } .sidebar li { margin: 0; padding-top: 0; padding-right: 0; padding-bottom: .5em; padding-left: 15px; text-indent: -15px; line-height: 1.5em; } .sidebar { color: #333333; line-height:1.3em; } .sidebar .widget { margin-bottom: 1em; } .sidebar .widget-content { margin: 0 5px; } /* Profile ----------------------------------------------- */ .profile-img { float: left; margin-top: 0; margin-right: 5px; margin-bottom: 5px; margin-left: 0; padding: 4px; border: 1px solid #cccccc; } .profile-data { margin:0; text-transform:uppercase; letter-spacing:.1em; font-weight: bold; line-height: 1.6em; font-size: 78%; } .profile-datablock { margin:.5em 0 .5em; } .profile-textblock { margin: 0.5em 0; line-height: 1.6em; } /* Footer ----------------------------------------------- */ #footer { clear: both; text-align: center; color: #333333; } #footer .widget { margin:.5em; padding-top: 20px; font-size: 85%; line-height: 1.5em; text-align: left; } /** Page structure tweaks for layout editor wireframe */ body#layout #header { width: 750px; } -->
Control Files
  • The Control file is a small binary file that necessary for the database to start and operate successfully.
  • Each Control file is associated with only one Oracle database.
  • Control file is required at Mount stage during database startup and is required to operate the database
  • A control file is updated continuously by the Oracle server during the database use. so it must be available for writing whenever the database is open.
  • The information in the control file can be modified only by the Oracle server: No database administartor or end user can edit the control file.
  • If for some reason the control file is not accessible, the database does not function properly.
  • If all copies of a database control files are lost, the database must be recovered before it can be opened.

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

The contents of Control File:

  • Database Name and Identifier
  • Names and Locations of associated data files and online redo log files
  • Time stamp of database creation
  • The current log sequence number
  • Check point information
  • Tablespace Information
  • Redo log archive information
  • Location and status of Backups are recorded by the RMAN utility.

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

Sizing the Control File:

  • Keywords specified during the creation of the database affect the size of the control file.
  • The size of the control file is influenced by the following keywords in the CREATE DATABASE or CREATE CONTROLFILE commands:
  1. MAXLOGFILES
  2. MAXLOGMEMBERS
  3. MAXLOGHISTORY
  4. MAXDATAFILES
  5. MAXINSTANCES

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

Multiplexing the Control File

I-Using SPFILE

Step 1: using ALTER SYSTEM SET command alter the SPFILE to include the list of control files to be used: main control file, multiplexed copies

Example:

SQL>ALTER SYSTEM SET control_files=

'/u01/oracle/product/10.2/DB1/ctrl01.ctl',

'/u02/oracle/product/10.2/DB1/ctrl02.ctl' SCOPE= SPFILE;

Step 2: Shutdown the database

Example:

SQL>shutown immediate

Step 3: Create additional control files

Example:

SQL>!cp /u01/oracle/product/10.2/DB1/ctrl01.ctl

/u02/oracle/product/10.2/DB1/ctrl02.ctl

(SQL>!cp )

Step 4: Startup the database

Example:

SQL>STARTUP

II-Using PFILE

Step 1: Shutdown the Database

Step 2: Create additional control files using OS copy command.

Step 3: Add new control file names to PFILE (Initialization Parameter file)

Step 4: Startup the database

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

Control File Information

  • V$CONTROLFILE : List the name and status of the control files.
  • V$PARAMETER :List the status and location of all parameters
  • V$CONTROLFILE_RECORD_SECTION: Provides the information about the control file record section
  • SHOW PARAMETER CONTROL_FILES : Lists the name, status, and location of the control files.

No comments: