How to find if the database is using pfile or spfile?

We need put this at sql command prompt and check it

SQL > select ‘ SPFILE in use :’||value from v$parameter
where name = ‘spfile’
and value is not null ;

SQL > select ‘ PFILE in use ‘||value from v$parameter
where name = ‘spfile’
and value is null;

If pfile is in user then it will display as below :-

SQL> select ‘ PFILE in use ‘||value from v$parameter
  2  where name = ‘spfile’
  3  and value is null;
‘PFILEINUSE’||VALUE

 PFILE in use


SQL> select ‘ SPFILE in use :’||value from v$parameter
  2  where name = ‘spfile’
  3  and value is not null ;
no rows selected


if spfile is in use then it will be as below :-

SQL> select ‘ SPFILE in use :’||value from v$parameter
  2  where name = ‘spfile’
  3  and value is not null;

‘SPFILEINUSE:’||VALUE
——————————————————————————–
 SPFILE in use :D :\APP\ADMINISTRATOR\PRODUCT\11.1.0\DB_1\DATABASE\SPFILEPIHIST.O
RA

SQL> select ‘ PFILE in use ‘||value from v$parameter
  2  where name = ‘spfile’
  3  and value is null;

no rows selected

No comments:

SHRD0014: GLLEZL - process exiting with failure

  SYMPTOMS Journal Import completes with the following error: Error ------ ORA-01653 : unable to extend table GL.GL_IMPORT_REFERENCES ORA-01...