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 88 of 231    Print  
How do you find wheather the instance was started with pfile or spfile
Thhere are 3 different ways :-

1) SELECT name, value FROM v$parameter WHERE name = 'spfile'; //This query will return NULL if you are using PFILE

2) SHOW PARAMETER spfile // This query will returns NULL in the value column if you are using pfile and not spfile

3) SELECT COUNT(*) FROM v$spparameter WHERE value IS NOT NULL; // if the count is non-zero then the instance is using a spfile, and if the count is zero then it is using a pfile:
By Default oracle will look into the default location depends on the o/s. Like in unix, oracle will check in $oracle_home/dbs directory and on windows it will check in oracle_home/database directory, and the content of pfile is just text based, but spfile content is in binary format, that is understandable by oracle very well.

Also oracle server always check the spfile or pfile with these sequence :-

SPFILE<SID>.ORA
SPFILE.ORA
PFILE<SID>.ORA
PFILE.ORA



  
Total Answers and Comments: 3 Last Update: September 02, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 25, 2006 23:31:41   #1  
LazyDog        

RE: How do you find wheather the instance was started ...
Go to OEM > Databases > ... > Instance > Configuration in Database and Instance Information section the last row shows spfile
 
Is this answer useful? Yes | No
September 02, 2009 17:23:55   #2  
cmanne Member Since: January 2006   Contribution: 49    

RE: How do you find wheather the instance was started with pfile or spfile
show parameter spfile;

if the output will be similar to the following then it means that the instance is using SPFILE

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /usr/local/oracle/*****.ora



 
Is this answer useful? Yes | No
September 02, 2009 17:25:23   #3  
cmanne Member Since: January 2006   Contribution: 49    

RE: How do you find wheather the instance was started with pfile or spfile
select * from v$parameter where name 'spfile';
 
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