Skip Headers

Oracle9i Real Application Clusters Setup and Configuration
Release 2 (9.2)

Part Number A96600-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Feedback

Go to previous page Go to next page
View PDF

6
Configuring the Server Parameter File in Real Application Clusters Environments

This chapter describes server parameter file placement and configuration in Oracle Real Application Clusters 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 or one or more traditional client-side parameter files.

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

See Also:

Oracle9i Real Application Clusters Administration 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 only change parameter settings in the server parameter file 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 Corporation 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 Real Application Clusters 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 platform-dependent.

The default location of the server parameter file on UNIX is:

$ORACLE_HOME/dbs/spfile$ORACLE_SID.ora 

The default location of the server parameter file on Windows NT and Windows 2000 is:

%ORACLE_HOME%\database\SPFILE%ORACLE_SID%.ORA 

The default location of the server parameter file is inappropriate for Real Application Clusters databases because all instances must use the same server parameter file.

Instead, for UNIX platforms Oracle Corporation recommends that you use a PFILE in this directory:

$ORACLE_HOME/dbs/init$ORACLE_SID.ora

For Windows NT and Windows 2000 platforms Oracle Corporation recommends that you use a PFILE in this directory:

%ORACLE_HOME%\database\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 for UNIX platforms:

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

The file must contain the following entry for Windows NT and Windows 2000 platforms:

SPFILE='dbspfile1'

On UNIX, however, if you use a cluster file system, then use an alternate file location of:

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

On Windows, if you use a cluster file system, then use this syntax:

SPFILE=%ORACLE_HOME%\database\spfile.ora

For Windows use the following location:

SPFILE='C:\oracle\ora92+atabase\spfileMYDB.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 the Create server parameter file (spfile) box under the File Locations tab. Then enter either a shared file system filename or the raw device path name in the Server Parameters Filename field as shown in Figure 6-1.

Figure 6-1 File Locations Tab For Initialization Parameters

Text description of fileloc2.gif follows.

Text description of the illustration fileloc2.gif


Note:

When you use the DBCA to create the server parameter file, the PFILE file name is $ORACLE_HOME/dbs/init$ORACLE_SID.ora on UNIX and
%ORACLE_HOME%\database\init%ORACLE_SID%.ora on Windows NT and Windows 2000. These are the default PFILE names.


Parameter File Search Order in Real Application Clusters

Oracle searches for your parameter file in a particular order depending on your platform. On UNIX platforms, Oracle examines directories in the following order:

  1. $ORACLE_HOME/dbs/spfilesid.ora
  2. $ORACLE_HOME/dbs/spfile.ora
  3. $ORACLE_HOME/dbs/initsid.ora

The search order on Windows NT and Windows 2000 platforms is:

  1. %ORACLE_HOME%\database\spfilesid.ora
  2. %ORACLE_HOME%\database\spfile.ora
  3. %ORACLE_HOME%\database\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 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:


Note:

The following procedures show examples for UNIX only.


  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'
    
    

    Otherwise, use syntax as in the following example 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 Corporation 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.


    Note:

    The release 8.1 default of using a client-side PFILE to startup a database instance is no longer supported.


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.

Backing Up the Server Parameter File in Real Application Clusters

Oracle Corporation recommends that you regularly back up the server parameter file for recovery purposes. Do this using the CREATE PFILE statement. For example:

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

You can also recover by starting up an instance using a client-side initialization parameter file. Then re-create the server parameter file using the CREATE SPFILE statement. You can also use RMAN (Recovery Manager) to create backups of the server parameter file.

See Also:

Oracle9i Recovery Manager User's Guide for more information about RMAN

See Also:

Oracle9i SQL Reference for more information about the CREATE SPFILE statement