Skip Headers

Oracle® Real Application Clusters Installation and Configuration Guide
10g Release 1 (10.1) for AIX-Based Systems, hp HP-UX PA-RISC (64-bit), hp Tru64 UNIX, Linux, Solaris Operating System (SPARC 64-bit)
Part No. B10766-01
  Go To Table Of Contents
Contents
Go To Index
Index

Previous Next  

11 Configuring the Server Parameter File in Real Application Clusters Environments

This chapter describes server parameter file (spfile) placement and configuration in Real Application Clusters (RAC) environments. The topics in this chapter are:

Parameter Files and Real Application Clusters

Oracle uses parameter settings in parameter files to determine how to control various database resources. You can use two types of files for parameter administration: the server parameter file (spfile) or one or more traditional client-side parameter files.

Oracle recommends that you administer parameters using spfile. If you use client-side parameter files, then Oracle does not preserve parameter changes made for self-tuning after shutdown.


See Also:

The Oracle Database 10g Real Application Clusters documentation for more information about using client-side parameter files

Using Server Parameter Files in Real Application Clusters

By default, Oracle creates the server parameter file based on one SPFILE. You can change parameter settings in the server parameter file only by using Oracle Enterprise Manager or ALTER SYSTEM SET SQL statements; the server parameter file is a binary file that you should not edit.


Note:

Oracle recommends that you avoid modifying the values for self-tuning parameters; overriding these settings can adversely affect performance.

If you are upgrading from a previous Oracle release, then create and configure the server parameter file for RAC using the procedures described in the following section.

Location of The Server Parameter File

The default location of the server parameter file when the database creates it from a PFILE is:

$ORACLE_HOME/dbs/spfile$ORACLE_SID.ora

The default location of the server parameter file is inappropriate for RAC databases if you use raw devices because all instances must use the same server parameter file.

Instead, Oracle recommends that you use a PFILE in the following directory:

$ORACLE_HOME/dbs/init$ORACLE_SID.ora

This path is valid for each instance and it refers to a single, shared initialization parameter file. The file must contain the following entry if you use raw storage:

SPFILE='/dev/vx/rdsk/oracle_dg/dbspfile'

However, if you use a cluster file system, then use the following alternate file location:

SPFILE='$ORACLE_HOME/dbs/spfile.ora'

If you use ASM, then the file location will be:

SPFILE='+disk_group_name/dbunique_name/spfile<dbname>.ora

You must use the same value of SPFILE so that all instances use the same server parameter file at startup.

To use the DBCA to create your database and to use the server parameter file, on the Initialization Parameters page select Create server parameter file (spfile) under the File Locations tab which is visible only if you are using raw storage. Then enter either a shared file system filename or the raw device path name in the Server Parameters Filename field.


Note:

When you use the DBCA to create the server parameter file, the default PFILE file name is $ORACLE_HOME/dbs/init$ORACLE_SID.ora .

Parameter File Search Order in Real Application Clusters

Oracle searches for your parameter file in the following order:

  1. $ORACLE_HOME/dbs/spfilesid.ora

  2. $ORACLE_HOME/dbs/spfile.ora

  3. $ORACLE_HOME/dbs/initsid.ora

Migrating to the Server Parameter File in Real Application Clusters Environments

Migrate to the server parameter file by creating and editing the server parameter file using the procedures described in this section.

Server Parameter File Placement in Real Application Clusters

For single-node cluster-enabled configurations, or if you are using a cluster file system, place the server parameter file on a file system. Otherwise, place the server parameter file on a shared raw device that is at least 5MB in size.

Procedures for Migrating to the Server Parameter File

Migrate to the server parameter file by completing the following procedures:

  1. Combine the initialization parameter files for all instances into one initdbname.ora file by copying all shared IFILE contents as is. All parameters defined in your IFILE parameter files are global. Therefore, create them as "parameter=value" without sid prefixes.

  2. Copy all instance-specific parameter definitions from initsid.ora files using the following syntax where sid is the sid of the instance:

    sid.parameter=value
    
  3. If you are using a cluster file system, then create the server parameter file using the CREATE SPFILE statement as in the following example:

    CREATE SPFILE='?/dbs/spfile_dbname.ora'
    FROM PFILE='?/dbs/initdbname.ora'
    
    

    If you use ASM, then use the following syntax to create the server parameter file:

    CREATE SPFILE='/+disk_group_name/db_uniquename/spfiledbname.ora'
    FROM PFILE='?/dbs/initdbname.ora'
    
    

    If you use raw storage, then use the following syntax to create the server parameter file on a raw device:

    CREATE SPFILE='/dev/vx/rdsk/oracle_dg/dbspfile'
    FROM PFILE='?/dbs/initdbname.ora'
    
    

    These statements read your combined initdbname.ora file that you created by merging your IFILEs. Then it transfers the settings for the parameters from the merged file into your server parameter file.

  4. Oracle recommends that you use the server parameter file by executing the STARTUP command as in this example:

    STARTUP PFILE=$ORACLE_HOME/dbs/initsid.ora
    
    

    Where the file initsid.ora contains the entry:

    SPFILE='/dev/vx/rdsk/oracle_dg/dbspfile'
    
    

    If you use this STARTUP command syntax, then Oracle uses the server parameter file entry specified in initsid.ora.

Server Parameter File Errors in Real Application Clusters

Oracle reports errors that occur during server parameter file creation or while reading the file during startup. If an error occurs during a parameter update, then Oracle records the error in your ALERT.LOG file and ignores subsequent parameter updates to the file. If this happens, then do either of the following:

Oracle displays errors for parameter changes that you attempt when you incorrectly use the ALTER SYSTEM SET statement. Oracle does this when an error occurs while reading from or writing to the server parameter file.


See Also:

The Oracle Real Application Clusters Administrator's Guide for more information about backing up the SPFILE