Welcome to DBA Master ! This blog is dedicated to all things related to database administration , SQL optimization , and performance tuning . Whether you're a beginner or a seasoned DBA, you'll find practical guides, troubleshooting tips, and real-world tutorials to help you work smarter with data. What to Expect: SQL performance tuning tips Indexing strategies Backup and recovery best practices High availability and replication techniques Database creation, configuration, and setup Monitoring queries and scripts for proactive performance management Migration guides across different database platforms Security essentials and best practices Recommended tools for DBAs Real-world error fixes and how to solve them Stay tuned — exciting content is coming soon. Feel free to bookmark and share: www.dbamaster.com ! Thanks for visiting!
- Parameter file is a text/binary file used to store the Oracle database parameters and values.
- The oracle instance reads the parameter file during startup which are then used to control the behavior of database instance.
Parameter Like:
- Memory allocation (SGA & PGA)
- Startup of Optional background Processes.
- Setting of NLS (National Language Support) Parameters etc.
There are 2 types of parameter files:
- pfile (parameter file) normal text file – Older way (not recommended)
- spfile (server parameter file) binary file – newer way (recommended) – introduced starting from 9i
Difference between pfile and spfile
pfile |
spfile |
Text file |
Binary file |
It can be edited |
It can’t be edited. It can only the altered using the ALTER SYSTEM command. |
Default location is $ORACLE_HOME/dbs/init[SID].ora |
$ORACLE_HOME/dbs/spfile[SID].ora |
The RMAN utility can’t take bakup |
The RMAN utility can take backup |
show parameter file;
create pfile='<pfile location>' from spfile;
(OR)
create pfile='<pfile location>' from spfile='<spfile location>';
create spfile from pfile='<pfile location>';
create spfile='<spfile location>' from pfile='<pfile location>';
show parameter;
alter system set <parameter_name>='<value>' scope=[spfile/memory/both];
startup pfile='<pfile location>'
startup spfile='<spfile location>'
show parameter spfile;
Comments
Post a Comment