ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-32000 not able to modify the rdbms spfile which is there in ASM

ORA-32000 not able to modify the rdbms spfile which is there in ASM

原创 Linux操作系统 作者:hzwsyvia 时间:2013-01-23 20:36:51 0 删除 编辑

In this Document

Symptoms
Changes
Cause
Solution

Applies to:

Oracle Server - Enterprise Edition - Version 11.2.0.1 and later
Information 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博客 ” ,链接:https://blog.itpub.net/22308399/viewspace-753157/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Oracle IO问题解析
请登录后发表评论 登录
全部评论

注册时间:2009-08-09

  • 博文量
    55
  • 访问量
    111290