I have tried to understand through oracle docs but could not get it properly Any body please explain. What is difference between spfile and init.ora file?
Thanks.
init.ora
db_cache_size = 176000M
db_2k_cache_size = 2048M
db_16k_cache_size = 99000M
db_keep_cache_size = 600000M
db_recycle_cache_size = 64000M
shared_pool_size = 14000M
spfile
The Oracle spfile is a binary representation of the text based init.ora file or pfile( parameter file) which contains the various initialization parameters used while starting a database instance.Came into existence in and after Oracle 9i.
We do not edit this file using an editor as it is a binary file and may get corrupted and which may lead to your database instance not starting rather
it is altered by using the alter system
query.
An example of editing a spfile :ALTER SYSTEM SET open_cursors=300 SCOPE=SPFILE;
The changes come into effect after running the Alter system query
and we do not need to restart the database.
We do not need a local copy in case of spfile if we need to start a remote database.
By default our database uses pfile to start we can change that and create a spfile from a pfile or init.ora file by using the following query and we don't even need to restart the db.
sqlplus / as sydba;
CREATE SPFILE FROM PFILE='/u01/oracle/dbs/init.ora;
The difference between init.ora and spfile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With