昨天在火車站
我說你創建一個PFILE
Ok
假如我們修改了以下參數
SQL> alter system set sga_max_size=G scope=spfile;
System altered
那麼下次啟動
SQL> shutdown immediate;在Unix
Database closed
Database dismounted
ORACLE instance shut down
SQL> startup
ORA: out of memory
SQL> create pfile from spfile;如果在Window上
File created
[oracle@testdbs]$ cat initeygle ora
SPFILE=/opt/oracle/product/ /dbs/spfileeygle ora
sga_max_size=
第一行指向SPFILE
然後就可以使用這個文件啟動數據庫實例了
SQL> startup pfile=$ORACLE_HOME/dbs/initeygleora
ORACLE instance started
Total System Global Areabytes
Fixed Sizebytes
Variable Sizebytes
Database Buffersbytes
Redo Buffersbytes
Database mounted
Database opened
如果在Windows上
比如將spfileeygle
數據庫可以自動找到這個參數文件
[oracle@test數據庫可以自動使用PFILE啟動dbs]$ mv spfileeygle ora spfileeygle ora
[oracle@testdbs]$ cat initeygle ora
SPFILE=/opt/oracle/product/ /dbs/spfileeygle ora
sga_max_size=
SQL> startup
ORACLE instance started
Total System Global Areabytes
Fixed Sizebytes
Variable Sizebytes
Database Buffersbytes
Redo Buffersbytes
Database mounted
Database opened
SQL> show parameter spfile
NAME TYPE VALUE
spfile string /opt/oracle/product//dbs
/spfileeygleora
From:http://tw.wingwit.com/Article/program/Oracle/201311/17118.html