| Remove spfile and create pfile [message #379509] |
Tue, 06 January 2009 20:12  |
caprikar Messages: 123 Registered: March 2007 |
Senior Member |
|
|
Hi,
I have a 2 node RAC database (10g) on ASM. Whoever created the database, created it with spfile and I want to use pfile. Can someone tell me the steps involved?
Thanks
|
|
|
|
| Re: Remove spfile and create pfile [message #379514 is a reply to message #379509 ] |
Tue, 06 January 2009 20:25   |
caprikar Messages: 123 Registered: March 2007 |
Senior Member |
|
|
Hi,
We have a standard to have pfile.
Do I have to do,
1. startup nomount
2. create pfile='mypfile' from spfile;
3. go to asmcmd and rm the spfile
4. startup mount and alter database open?
|
|
|
|
| Re: Remove spfile and create pfile [message #379518 is a reply to message #379516 ] |
Tue, 06 January 2009 20:36   |
caprikar Messages: 123 Registered: March 2007 |
Senior Member |
|
|
what do you mean by
Create the pfile as init<sid>.ora in $ORACLE_HOME/dbs ?
|
|
|
| Re: Remove spfile and create pfile [message #379519 is a reply to message #379518 ] |
Tue, 06 January 2009 20:40   |
 |
Mahesh Rajendran Messages: 9610 Registered: March 2002 Location: oracleDocoVille |
Senior Member |
|
|
RAC database is same as regular database, except it as multiple instances.
If node1 (assuming your ORACLE_SID=PROD1), create pfile as $ORACLE_HOME/dbs/initPROD1.ora.
Similarly
in node2, $ORACLE_HOME/dbs/initPROD2.ora.
Or create it anywhere you like.
Atleast make some symlinks.
[Updated on: Tue, 06 January 2009 20:43]
|
|
|
| Re: Remove spfile and create pfile [message #379520 is a reply to message #379509 ] |
Tue, 06 January 2009 20:44   |
caprikar Messages: 123 Registered: March 2007 |
Senior Member |
|
|
So it should be
create pfile as '$ORACLE_HOME/dbs/initPROD1.ora' from spfile;
and then physically remove the spfile?
|
|
|
| Re: Remove spfile and create pfile [message #379521 is a reply to message #379520 ] |
Tue, 06 January 2009 20:46   |
 |
Mahesh Rajendran Messages: 9610 Registered: March 2002 Location: oracleDocoVille |
Senior Member |
|
|
Yes. Just your syntax is wrong.
Use
sql> create pfile='mylocation/myfile' from spfile;
[Updated on: Tue, 06 January 2009 20:47]
|
|
|
|
| Re: Remove spfile and create pfile [message #379525 is a reply to message #379509 ] |
Tue, 06 January 2009 20:58  |
caprikar Messages: 123 Registered: March 2007 |
Senior Member |
|
|
We use ASM. So I can't rename the file, i will have to remove it.
Thanks
|
|
|