首页 > 数据库 > 数据库开发技术 > SPFILE参数修改错误的解决办法
SQL> alter system set sga_max_size=5G scope=spfile;
System altered.
SQL> shutdown immediate;在Unix、Linux上可以连接到数据库,创建pfile:
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-27102: out of memory
SQL> create pfile from spfile;如果在Window上,你手上还没有任何可供参考的参数文件,那么很简单,用记事本(Notepad)编辑一个文件,包含如下两行:
File created.
[oracle@test126 dbs]$ cat initeygle.ora
SPFILE='/opt/oracle/product/10.2.0/dbs/spfileeygle.ora'
sga_max_size=1073741824
SQL> startup pfile=$ORACLE_HOME/dbs/initeygle.ora
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size 1223540 bytes
Variable Size 918553740 bytes
Database Buffers 146800640 bytes
Redo Buffers 7163904 bytes
Database mounted.
Database opened.
[oracle@test126 dbs]$ mv spfileeygle.ora spfileeygle2.ora数据库可以自动使用PFILE启动:
[oracle@test126 dbs]$ cat initeygle.ora
SPFILE='/opt/oracle/product/10.2.0/dbs/spfileeygle2.ora'
sga_max_size=1073741824
SQL> startup
ORACLE instance started.
Total System Global Area 1073741824 bytes
Fixed Size 1223540 bytes
Variable Size 918553740 bytes
Database Buffers 146800640 bytes
Redo Buffers 7163904 bytes
Database mounted.
Database opened.
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /opt/oracle/product/10.2.0/dbs
/spfileeygle2.ora
-The End-
修改spfile之前最好先 create pfile from spfile。
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8119050/viewspace-1007319/ ,如需转载,请注明出处,否则将追究法律责任。