Create pfile from memory

Many a times situation comes when database initialization parameter file gets accidentally removed or overwritten.

From version 11g Oracle has came up with solution of recreating parameter file from memory if database is up & running.

Oracle already has functionality of creating pfile from spfile & vice-versa. But now with almost similar syntax u can create pfile from memory.


 

SQL> select version from v$instance;
VERSION
----------------
11.2.0.3.0
SQL>
SQL> !pwd
/home/oracle/pfile
SQL> !ls -lrt
total 0
SQL> create pfile='/home/oracle/pfile/initORACLE.ora' from memory;
File created.
SQL> !ls -lrt
total 8
-rw-r--r-- 1 oracle oinstall 6431 Jun 2 21:33 initORACLE.ora
SQL>

Hope so this feature will be useful for you. 🙂

Cheers

Regards,
Adityanath

Advertisements