Total Pageviews

Showing posts with label spfile. Show all posts
Showing posts with label spfile. Show all posts

Saturday, 15 November 2014

How to check if your DB is open using spfile or pfile

If your DB is open using pfile:
-----------------------------------------

SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type" 
   FROM sys.v_$parameter WHERE name = 'spfile';
--- PFILE

If your DB is open using SPFILE:
--------------------------------------------

SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type" 
   FROM sys.v_$parameter WHERE name = 'spfile';
--SPFILE