I read that Oracle 9i
has spfile.ora
by default, but I don't understand: why that file isn't in Oracle 9i
by default.
I want to know how to create spfile.ora
correctly in Oracle 11g
?
You must be connected to your Oracle instance as SYS
. Then use the following to create your spfile
CREATE SPFILE='/u01/oracle/dbs/spfile.ora'
FROM PFILE='/u01/oracle/dbs/init.ora';
Where do you want to create? RAC or standalone database.
In RAC follow the steps. Stop the database srvctl stop database -d test
Startup any one instance using existing pfile. SQL> startup nomount pfile='/scratch/u01/app/oracle/product/12.1.0/dbhome_1/dbs/inittest.ora';
Create spfile from pfile. SQL> create spfile='+DATA/spfiletest.ora' from pfile='/scratch/u01/app/oracle/product/12.1.0/dbhome_1/dbs/inittest.ora';
Stop and start the database [oracle@orahow dbs]$ srvctl stop database -d test [oracle@orahow dbs]$ srvctl start database -d test
Read full at: Create spfile from pfile
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.