| Oracle9i Real Application Clusters Installation and Configuration Release 1 (9.0.1) Part Number A89868-01 |
|
This chapter describes server parameter file placement and configuration in Real Application Clusters environments. The topics in this chapter are:
Oracle9i Real Application Clusters Administration for more information on parameters in Real Application Clusters environments and Oracle9i Real Application Clusters Deployment and Performance for a discussion of parallel execution-related parameters in Real Application Clusters data warehousing environments
See Also:
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 the traditional client-side parameter files, parameter changes that Oracle makes as a result of self-tuning are not preserved after shutdown.
|
See Also:
Oracle9i Real Application Clusters Administration for more information on using client-side parameter files |
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 cannot directly edit.
If you are migrating from a previous Oracle release, create and configure the server parameter file for Real Application Clusters using the procedures described in the following section.
The default location of the server parameter file when the database creates it from PFILEs 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 parameters 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:
$ORACLE_HOME/dbs/initsid.ora
For Windows NT and Windows 2000 platforms Oracle Corporation recommends that you use a PFILE in:
%ORACLE_HOME%\database\initsid.ora
This file is for each instance and it references a single, shared initialization parameter file. The file must contain the entry:
SPFILE='/dev/vx/rdsk/oracle_dg/db_spfile'
However, if your platform supports a cluster file system, use an alternate file location of:
SPFILE= $ORACLE_HOME/dbs/spfile.ora
You must use the correct location so that all instances use the same the 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 and enter the raw device path name in the Persistent Parameters Filename field as shown in Figure 6-1.

Oracle searches for your initialization parameter file, on UNIX platforms for example, by examining directories in the following order:
The search order on Windows NT and Windows 2000 is:
If you migrate to the server parameter file, create and edit the server parameter file using the procedures described in this section.
Put the server parameter file on a raw device that is at least 5MB in size. For single-node multi-instance configurations, or if you are using a cluster file system, you can place the server parameter file on a file system.
Migrate to the server parameter file by completing the following procedures:
initdbname.ORA file by copying all shared IFILE contents as is. All the parameters defined in your IFILE parameter files are global. Therefore, create them as "parameter=value" without sid prefixes.
INITsid.ORA files using the following syntax where sid is the sid of the instance:
sid.parameter=value
CREATE SPFILE statement. For example:
CREATE SPFILE='/dev/vx/rdsk/oracle_dg/db_spfile' FROM PFILE='?/dbs/init.ora'
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/db_spfile'
If you use this STARTUP command syntax, Oracle uses the server parameter file entry specified in initsid.ora.
Oracle reports errors that occur during the server parameter file creation or while reading the file during startup. If an error occurs during a parameter update, Oracle records the error in your ALERT.LOG file and ignores subsequent parameter updates to the file. If this happens, you can do any of the following:
Oracle displays errors for inaccurate parameter changes that you attempt using the ALTER SYSTEM SET statement. Oracle does this when an error occurs while reading or writing to the server parameter file.
Oracle Corporation recommends that you regularly create copies of the server parameter file in case you need them for recovery purposes. Do this using the CREATE PFILE statement. For example:
CREATE PFILE='?/dbs/initdbname.ora'
FROM SPFILE='/dev/vx/rdsk/oracle_dg/db_spfile'
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 cannot use RMAN (Recovery Manager) to create backups of the server parameter file.
|
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|