You are on page 1of 3

Parameter file management

Oracle provide two types of parameter file


1-pfile=text file, static file, user side file, can be updated through vi editor
2-spfile= binary file cannot be open, server side file, dynamic file, can be modified alter
system command in sql prompt.
Default location for both files are in side $ORACLE_HOME/dbs
Both parameter files have two options
1-dynamic parameter (sga_target)
2-static parameter (sga_max_size)
Modification in pfile

Dynamic pfile(sga_target)
>alter system set sga_target=size
It only change the value in memory or temporary for permanent change we have
to go inside the pfile and change the value
Exp$ cd $ORACLE_HOME/dbs
$vi init<sid>.ora
Change the value
Sga_target=300m
: wq
And bounce back the instance
Static parameter (sga_max_size)
we cannot change value trough sql prompt
to change the value go inside the pfile and change the value u want and bounce
back instance
pfile located in $ORACLE_HOME/dbs with the name init<sid>.ora.

Change parameter value in spfile

to change the value of spfile no need to go its home location


we can change the from sql prompt itself.
to change the value of spfile oracle gave 3 scope for that
1-memory= for current session only
2-spfile=for permanent but need to startup again
3-both=for memory as well as permanent
dynamic parameter
>alter system set sga_target=size scope=memory;
no need to restart the instance coz it is for only memory if we restart the instance
modified value rollback.
>alter system set sga_target=size scope=spfile, both;
and bounce back the instance to make value effective
Static spfile
>alter system set sga_max_size=size scope =spfile;
Bounce back the instance
Note- we cannot use memory and both option for static spfile coz we can change
the value permanently for static spfile but memory we use for temporary and both also
have memory part
Coz it is combination of memory +spfile
When we use these option oracle will give you error

We can convert spfile into pfile or pfile to spfile


For that command is>create spfile from pfile;
>create pfile from spfile;

You might also like