Oracle Database Architecture - PFILE, SPFILE
Yan Lu
1 minute readRecently, I am working on an Oracle Database Conversion Project, which aims to convert a non-tenant database to a Pluggable Database (PDB) in a multitenant database. One of its initial step is creating a Container Database (CDB) to hold the PDBs. And to achieve that, I need to understand the initial files required which including PFILE, SPFILE and Control File.
PFILE
PFILE is a text-based file which stores the database setting related parameters. These parameters help the Oracle programs know how to start, including memory size, storage size, thread number etc. As a text-based file, PFILE can be directly edited by text editor when people want to change the database settings.
The data of PFILE can be find at
SPFILE
SPFILE is a more recent and advanced way of storing database settings. It stores data as binary. People cannot modify SPFILE directly, it need to be modified via system command.
SPFILE uses similar file directory comparing to PFILE, but the file name is changed to spfile
SPFILE and PFILE conversion
When connect to database software as SYSDBA, SPFILE and PFILE can easily create each other by CREATE SPFILE FROM PFILE; CREATE PFILE FROM SPFILE;