In this Document
| Symptoms |
| Changes |
| Cause |
| Solution |
Applies to:
Oracle Server - Enterprise Edition - Version 11.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
Not able to modify the spfile with alter system command.
SQL> alter system set open_cursors=2000 scope=spfile;
alter system set open_cursors=2000 scope=spfile
*
ERROR at line 1:
ORA-32000: write to SPFILE requested but SPFILE is not modifiable
Changes
Created the spfile in $ORACLE_HOME/dbs using below command.
SQL> create spfile from pfile;
Where pfile having information about spfile which is there in ASM
ex:
Content of the pfile looks like below.
$ cat $ORACLE_HOME/dbs/initdb11gr2.ora
SPFILE='+DATA/db11gr2/spfiledb11gr2.ora'
Cause
If you see the spfile parameter in the database it shows as below.
ex:
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /u01/app/oracle/product/11.2.0
/dbhome_1/dbs/spfiledb11gr2.or
a
Content of the spfile looks like below.
cat /u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfiledb11gr2.ora
SPFILE='+DATA/db11gr2/spfiledb11gr2.ora'
Solution
1. Move the spfile which is there in $ORACLE_HOME/dbs
ex:
mv spfiledb11gr2.ora spfiledb11gr2.ora.bkp
2. Create the file in $ORACLE_HOME/dbs location with init.ora name with below content.
SPFILE=''
ex:
FileName: initdb11gr2.ora
SPFILE='+DATA/db11gr2/spfiledb11gr2.ora'
3. Then restart the database, it will use the spfile which is there in ASM.
4. Now you will be able to modify the spfile with below command.
alter system set open_cursors=2000 scope=spfile;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22308399/viewspace-753157/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22308399/viewspace-753157/
本文介绍了解决Oracle数据库中SPFILE无法通过ALTER SYSTEM命令修改的问题。文章详细阐述了导致此问题的原因,并提供了一套完整的解决方案,包括移动SPFILE、创建新的初始化参数文件以及重启数据库等步骤。
781

被折叠的 条评论
为什么被折叠?



