oracle先會使用spfile.ora檔案作為啟動參數檔案
如果該檔案不存在就使用查找spfile.ora檔案
如果spfile.ora與spfile.ora檔案都不存在的話
就會使用init.ora檔案
如果上述三個檔案都沒有就沒有辦法啟動oracle執行個體
先通過spfile檔案來建立pfile檔案
sql> create pfile from spfile;
file created.
sql> show parameter spfile
name type value
------------------------------------ ----------- ------------------------------
spfile string /u01/app/oracle/product/10.2.0
/db/dbs/spfilejingyong.ora
sql> shutdown immediate;
database closed.
database dismounted.
oracle instance shut down.
删除spfilejingyong.ora檔案
[oracle@jingyong dbs]$ mv spfilejingyong.ora spfilejingyong.ora.bak
sql> startup nomount
oracle instance started.
total system global area 167772160 bytes
fixed size 1218316 bytes
variable size 75499764 bytes
database buffers 88080384 bytes
redo buffers 2973696 bytes
name type
------------------------------------ ----------------------
value
------------------------------
spfile string
從上面可以看去現在使用的是initjingyong.ora參數檔案