GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  Database Administration
Go To First  |  Previous Question  |  Next Question 
 Database Administration  |  Question 116 of 231    Print  
What is difference between spfile and init.ora file???

  
Total Answers and Comments: 7 Last Update: January 26, 2007     Asked by: hasanvtu 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 02, 2006 01:30:21   #1  
suresh sajwan        

RE: What is difference between spfile and init.or...
spfile are dynamic file.spfile can be created from pfile.you can open your database without spfile. init.ora is must to open the database.you can edit the init.ora file because it is a text file.whereas spfile cannot it reside on serverside.
 
Is this answer useful? Yes | No
November 03, 2006 06:54:13   #2  
paparao03 Member Since: November 2006   Contribution: 3    

RE: What is difference between spfile and init.or...

init.ora spfile both are contains Database parameters info. Both are supported by oracle. Every database instance required either any one. If both are present first choice is given to spfile only. (becareful if both are present any changes made in pfile those are not recongnized in next instance because it always first preference is givent to spfile only).

init.ora saved in the format of ASCII

SPFILE saved in the format of binary.

init.ora info is read by oracle engine at the time of database instance starting time only any modification made in this those are applicatble when in the next startup only. But in spfile modifications (through alter system..... command) can applicable without restarting oracle database(restarting instance).

spfile we can create with the help of

create spfile from pfile.

as well as we can create pfile (init.ora) from spfile

create pfile from spfile.

in general 24x7 environment spfile is only preferable because parameters can change dynamically.

any queries regarding this explanation pls. give some reply.


 
Is this answer useful? Yes | No
December 02, 2006 01:59:01   #3  
kumar_amit_99 Member Since: April 2006   Contribution: 1    

RE: What is difference between spfile and init.or...

spfile are dynamic file.spfile can be created from pfile.you can open your database without spfile. init.ora is must to open the database.you can edit the init.ora file because it is a text file.whereas spfile cannot it reside on serverside.

init.ora as name suggested a initialisation file it is a simple text file oracle reads init.ora and according to init.ora oracle allocates memory of db_block_size and buffer cache and some other initallisation parameter it is having a diffrent name as operating system changes.


 
Is this answer useful? Yes | No
December 08, 2006 07:18:35   #4  
manish hoiyani        

RE: What is difference between spfile and init.or...

spfile is a binary file ... we cannot be changed

where as pfile is init file to start an oracle instance which allocates the memory resources for the database....

we can edit the pfile but we cannot do changes in spfile we can create

spfile from pfile..


 
Is this answer useful? Yes | No
January 08, 2007 15:18:58   #5  
RAVI        

RE: What is difference between spfile and init.or...

SPfile is a binary file and init.ora file is a text file We can edit the init.ora file but we can't edit the spfile we can create spfile through init.ora file.

The use of spfile is--> we can directly startup the database otherwise if we don't have spfile for every startup of database we have to write the path of init.ora file

Thanks


 
Is this answer useful? Yes | No
January 23, 2007 09:07:16   #6  
Shakir        

RE: What is difference between spfile and init.or...
If you are using spfile then you do not need to manually change parameters as in pfile you can specify the scope for the parameter.
 
Is this answer useful? Yes | No
January 26, 2007 14:00:35   #7  
Reenu        

RE: What is difference between spfile and init.or...
Pfile1. text file2. changes take effect on the next startup3. initSID.oraSPfile1. binary file2. changes perisitent across startup and shutdown3. spfileSID.ora Only way to start db with spfile in non default location SPFILE must beplaced in pfile
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape