ORA-32001:write to SPFILE requested but no SPFILE is in use

修改oracle最大连接数得时候报错;

SQL> alter system set processes=500 scope=spfile;
alter system set processes=500 scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE is in use

解决:

  1. 查看是否有spfile:
SQL> show parameter spfile;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string
  1. 从pfile创建spfile
SQL> create spfile from pfile;
File created.
  1. 关闭数据库
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
  1. 启动数据库
SQL> startup;
ORACLE instance started.
Total System Global Area 1.0623E+10 bytes
Fixed Size                  2216304 bytes
Variable Size            5502930576 bytes
Database Buffers         5100273664 bytes
Redo Buffers               17244160 bytes
Database mounted.
Database opened.
  1. 查看是否有spfile文件
SQL> show parameter spfile;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string      /opt/oracle/product/11.2.0/dbn
                                                 ame_1/dbs/spfileORCL.ora
  1. 再次执行该命令,问题解决
SQL> alter system set processes=500 scope=spfile;
System altered.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章