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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章