oracle啟動例項時使用引數檔案的順序

eric0435發表於2012-12-25
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
SQL> show parameter spfile

NAME                                 TYPE
------------------------------------ ----------------------
VALUE
------------------------------
spfile                               string

從上面可以看去現在使用的是initjingyong.ora引數檔案

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26015009/viewspace-751585/,如需轉載,請註明出處,否則將追究法律責任。

相關文章