HomeSearchE-MailPrint
French English Chinese

How to make a new SPFILE when the old one is damaged

This tips explain how to make a new SPFILE when the old one is damaged

Votes: 11

Comments: 0

Visits: 1476

Administration 04-APR-2006 03:19 PM, Enguerrand Babinet

Sometimes, the SPFILE gets damaged. When this happens, the SPFILE can be replaced by a new one, generated from the PFILE file. The PFILE file is made automatically when the database is created and it can be found in the folder ORACLE_HOME\admin\SID\pfile.
The new SPFILE can be generated as follows:

- connect with sqlplus to the instance as sysdba
- use one of the following commands:

SQL> CREATE SPFILE FROM PFILE = 'ORACLE_HOME\admin\SID\pfile \my_pfile.ora';

Using this command Oracle will assume you are creating a default SPFILE. If a default SPFILE already exists Oracle will overwrite it.
Or you can use

SQL> CREATE SPFILE = 'desired_directory\my_spfile.ora' 
FROM PFILE = 'ORACLE_HOME\admin\SID\pfile\my_pfile.ora';

Using this, a non-default SPFILE will be created. The name of the new SPFILE must not be the same as the SPFILE that was used to start the current instance.
For replacing the old SPFILE just delete the old one from ORACLE_HOME\ ora92\database\directory, copy here the new one and rename it with the name of the original SPFILE. After that you can start the instance and it will start with the parameters from the new SPFILE.

Next Previous

Comments

Login to leave a comment.

Articles

Oracle Installation on SUSE Linux Enterprise Server

Administration 14-JUN-2008 07:03 PM, Fabien Loudet

We will follow step-by-step the installation of Oracle Database 10g on SUSE Linux Enterprise Server. We choose here to install Oracle Enterprise Edition and create a database.


Articles RSS
Source Codes

Add Multi-language support

Portal 25-NOV-2004 10:30 AM, Pierre-Henry Tupin

Instant Messenger

Communication 24-NOV-2004 10:31 AM, Arnaud Bontemps

Who is online

Portal 24-NOV-2004 10:26 AM, Arnaud Bontemps

Change the Portal CSS

Portal 15-JUN-2004 04:15 PM, Arnaud Bontemps, Yoan Sultan


Source Codes RSS
News

Oracle VM Templates

02-SEP-2008 12:15 PM, Jérémie Hodnik

Further enabling customers to benefit from server consolidation, energy and space cost savings by using enterprise-class server virtualization, Oracle today announced Oracle® VM Templates.

Oracle Unbreakable Linux

02-SEP-2008 12:08 PM, Thibaut Maxant

Oracle's Linux commitment began in 1998 with the first commercial database on Linux.

Oracle's Industry Strategy

01-SEP-2008 12:01 PM, Thibaut Maxant

Oracle is the #1 in Relational Database

20-AUG-2008 07:26 PM, Thibaut Maxant

Gartner 2007 Worldwide RDBMS Market Share Reports 48.6% Share for Oracle.

Oracle Buys Skywire Software

02-AUG-2008 11:18 AM, Zhen Dong

June 23, 2008, Oracle announced that it has reached an agreement with Skywire Software and buys of its business application software.


News RSS