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; } -->
Initialization Parameter files: SPFILE and PFILE


"To start an instance, the Oracle server must read the initialization parameter file."

To start an Oracle instance, the Oracle server reads the initialization parameter file.

Two types of initialization of parameter files exist:

  • PFILE (Parameter File) :Static File
  • SPFILE (Server Parameter File) :


Initialization parameter file contents:

  • A list of instance parameters
  • The name of the database the instance is associated with
  • Allocations for memory structures of the System Global Area (SGA)
  • What to do with filled online redo log files
  • The names and locations of control files
  • Information about undo segments

PFILE

  • PFILE is a text file. (commonly reffered as initSID.ora)
  • You can change the values of PFILE manually
  • If the file is modified, the instance must be shutdown and restarted in order to make the new parameter values effective.
  • Default location of PFILE is $ORACLE_HOME/dbs

Creating PFILE

  • A sample init.ora file is created by the Universal Installer during installation. (Location of init.ora file is $ORACLE_HOME/dbs)
  • Create a initSID.ora file from init.ora file by using OS copy command.

#cp $ORACLE_HOME/dbs/init.ora $ORACLE_HOME/dbs/initprod.ora (Here SID is System Identifier: Name of the Instance. example:PROD)

  • Now, modify the parameters using text editor within the initSID.ora file (Here ex: initprod.ora)

_______________________________________________________

SPFILE

  • SPFILE is a binary file.(commonly reffered as spfileSID.ora)
  • It is maintained by the Oracle server
  • If modified manually, the SPFILE is rendered useless
  • The SPFILE provides the ability to make changes to the database persistent across shutdown and startup.
  • By default, the file is located in $ORACLE_HOME/dbs and has a default name in the format of spfileSID.ora
  • SPFILE can be backed up with RMAN (RMAN cannot backup PFILE)

Modifying the parameters in SPFILE

The ALTER SYSTEM SET command is used to change the values of instance parameters.

General syntax:

ALTER SYSTEM SET parameter_name=parameter value [SCOPE=SPFILEMEMORYBOTH] [COMMENT 'text'][SID='sid''*']

where

  • parameter_name: Name of the parameter to be changed
  • parameter_value: Value the parameter is being changed to
  • COMMENT: A comment to be added into the SPFILE next to the parameter being altered
  • SCOPE: Determines if change should be made in memory, SPFILE, or in both areas
  • MEMORY: Changes the parameter value only in the currently running instance
  • SPFILE: Changes the parameter value in the SPFILE only
  • BOTH: Changes the parameter value in the currently running instance and the SPFILE
  • SID: Identifies the ORACLE_SID for the SPFILE being used
  • 'sid': Specific SID to be used in altering the SPFILE
  • '*': Uses the default SPFILE

Example: Change the parameter value in SPFILE and currently running instance.

SQL> ALTER SYSTEM SET undo_tablespace='undotbs1' SCOPE=BOTH;

_______________________________________________________

Example: How to know my database is using SPFILE or PFILE

SQL>SELECT value FROM V$PARAMETER where name='spfile';

VALUE

----------

/u01/oracle/product/10.2/dbs/spfileprod.ora

If you find any value in VALUE column, your database is using SPFILE

If you find NULL value in VALUE column, your database is using PFILE.

_________________________________________________________

If you've any problem with PFILE or SPFILE, just leave your message here

I'll Help you.

No comments: