How to Check Whether the Oracle Database is Using Pfile or SPfile?

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
Please find the query to check whether the database is running from pfile or spfile.

SQL> SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Pfile or SPfile" FROM sys.v_$parameter
  2  WHERE name = 'spfile';

Pfile
------
SPFILE

SQL> show parameter spfile;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string     /data/oracle/product/11.1.0/dbs/spfileprod9.ora

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

  2
Init F
------
PFILE
SQL> show parameter spfile;


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer