5
Initialization Parameter files: PFILEs vs. SPFILEs Submitted by admin on Sun, 2003-08-03 19:29 RDBMS Server When an Oracle Instance is started, the characteristics of the Instance are established by parameters specified within the initialization parameter file. These initialization parameters are either stored in a PFILE or SPFILE. SPFILEs are available in Oracle 9i and above. All prior releases of Oracle are using PFILEs. SPFILEs provide the following advantages over PFILEs: o An SPFILE can be backed-up with RMAN (RMAN cannot backup PFILEs) o Reduce human errors. The SPFILE is maintained by the server. Parameters are checked before changes are accepted. o Eliminate configuration problems (no need to have a local PFILE if you want to start Oracle from a remote machine) o Easy to find - stored in a central location What is the difference between a PFILE and SPFILE: A PFILE is a static, client-side text file that must be updated with a standard text editor like "notepad" or "vi". This file normally reside on the server, however, you need a local copy if you want to start Oracle from a remote machine. DBA's commonly refer to this file as the INIT.ORA file. An SPFILE (Server Parameter File), on the other hand, is a persistent server-side binary file that can only be modified with the "ALTER SYSTEM SET" command. This means you no longer need a local copy of the pfile to start the database from a remote machine. Editing an SPFILE will corrupt it, and you will not be able to start your database anymore.

Initialization Parameter Files PFILE and SPFILE

Embed Size (px)

DESCRIPTION

mmmm

Citation preview

Initialization Parameter files: PFILEs vs. SPFILEsSubmitted by admin on Sun, 2003-08-03 19:29 RDBMS ServerWhen an Ora!e "n#tane i# #tarted, the harateri#ti# o$ the "n#tane are e#tab!i#hed by %arameter# #%ei$ied &ithin the initia!i'ation %arameter $i!e( )he#e initia!i'ation %arameter# are either #tored in a *+",- or S*+",-( S*+",-# are avai!ab!e in Ora!e 9i and above( .!! %rior re!ea#e# o$ Ora!e are u#in/ *+",-#(S*+",-# %rovide the $o!!o&in/ advanta/e# over *+",-#:o .n S*+",- an be ba0ed-u% &ith RM.1 2RM.1 annot ba0u% *+",-#3o Redue human error#( )he S*+",- i# maintained by the #erver( *arameter# are he0ed be$ore han/e# are ae%ted(o -!iminate on$i/uration %rob!em# 2no need to have a !oa! *+",- i$ you &ant to #tart Ora!e $rom a remote mahine3o -a#y to $ind - #tored in a entra! !oationWhat is the difference between a PFILE and SPFILE:. *+",- i# a #tati, !ient-#ide te4t $i!e that mu#t be u%dated &ith a #tandard te4t editor !i0e 5note%ad5 or 5vi5( )hi# $i!e norma!!y re#ide on the #erver, ho&ever, you need a !oa! o%y i$ you &ant to #tart Ora!e $rom a remote mahine( DB.6# ommon!y re$er to thi# $i!e a# the "1")(OR. $i!e(.n S*+",- 2Server *arameter +i!e3, on the other hand, i# a %er#i#tent #erver-#ide binary $i!e that an on!y be modi$ied &ith the 5.,)-R S7S)-M S-)5 ommand( )hi# mean# you no !on/er need a !oa! o%y o$ the %$i!e to #tart the databa#e $rom a remote mahine( -ditin/ an S*+",- &i!! orru%t it, and you &i!! not be ab!e to #tart your databa#e anymore(How will I know if my database is sin! a PFILE or SPFILE:-4eute the $o!!o&in/ 8uery to #ee i$ your databa#e &a# #tarted &ith a *+",- or S*+",-:SQL> SELECT DECODE(value, NULL, 'PFILE', 'SPFILE') "Init File Type" FO! "y"#v$%pa&a'ete& ()EE na'e * '"p+ile',7ou an a!#o u#e the 9:S**.R.M-)-R vie& to he0 i$ you are u#in/ a *+",- or not: i$ the 5va!ue5 o!umn i# 1;,, $or a!! %arameter#, you are u#in/ a *+",-("iewin! Parameters Settin!s:One an vie& %arameter va!ue# u#in/ one o$ the $o!!o&in/ method# 2re/ard!e## i$ they &ere #et via *+",- or S*+",-3:o )he 5S*!u# 2i(e(: S -LTE S1STE! SET open$2u&"o&"*344 SCOPE*SPFILE,SQL> -LTE S1STE! SET ti'e/$"tati"ti2"*TUECO!!ENT*'C0an5e/ 6y F&an7 on 8 9une :443'SCOPE*;OT)SID*' -LTE S1STE! SET "$allo=$&ea/$only$2o&&uption"*TUE SCOPE*SPFILE,-4eute one o$ the $o!!o&in/ ommand to remove a %arameter $rom the S*+",-:SQL> -LTE S1STE! ESET ti'e/$"tati"ti2" SCOPE*SPFILE SID*>