PFILE or SPFILE (Oracle 9i) [message #60347] |
Mon, 02 February 2004 22:50 |
Patrick Tahiri
Messages: 119 Registered: January 2004
|
Senior Member |
|
|
Hi,
Which is the simplest way to check in a new company which initialization parameter (PFILE or SPFILE?) file they are using on their Oracle server?
Is it ok to just check in the $ORACLE_HOME/dbs/... and see if there is not any spfileSID.ora or spfile.ora file so Oracle (and they) are using a PFILE file?
Many thanks!!
Regards,
Patrick Tahiri.
|
|
|
|
|
Re: PFILE or SPFILE (Oracle 9i) [message #60356 is a reply to message #60354] |
Tue, 03 February 2004 04:25 |
Thiru
Messages: 1089 Registered: May 2002
|
Senior Member |
|
|
Maybe something like this ?
SQL> SELECT DECODE(SP.CNT,0,'PFILE','SPFILE') "Parameter_File"
2 from
3 ( SELECT COUNT(*) CNT FROM V$SPPARAMETER WHERE VALUE IS NOT NULL) SP;
Parame
------
PFILE
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string
-- On another database,that uses spfile
SQL> SELECT DECODE(SP.CNT,0,'PFILE','SPFILE') "Parameter_File"
2 FROM
3 ( SELECT COUNT(*) CNT FROM V$SPPARAMETER WHERE VALUE IS NOT NULL) SP;
Parame
------
SPFILE
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string ?/dbs/spfile@.ora
-Thiru
|
|
|