首页 > 其他 > 详细

ORA-32001:write to SPFILE requested but no SPFILE is in use问题的解决

时间:2014-05-04 17:07:52      阅读:998      评论:0      收藏:0      [点我收藏+]

在执行该命令时出现下列错误

SYS@PROD>alter system set UTL_FILE_DIR=‘/home/oracle‘,‘/home/oracle/temp‘,‘/home/oracle/scripts‘ scope=spfile;
alter system set UTL_FILE_DIR=‘/home/oracle‘,‘/home/oracle/temp‘,‘/home/oracle/scripts‘ scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE is in use

解决:

1.查看是否有spfile

SYS@PROD>show parameter spfile;

NAME                                 TYPE                             VALUE                      
------------------------------------ ---------------------
spfile                                   string

 

2.从pfile创建spfile

SYS@PROD>create spfile from pfile;

File created.

 

3.关闭数据库

SYS@PROD>shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.

 

4.启动数据库

SYS@PROD>startup
ORACLE instance started.

Total System Global Area  835104768 bytes
Fixed Size                  2257840 bytes
Variable Size             541068368 bytes
Database Buffers          289406976 bytes
Redo Buffers                2371584 bytes
Database mounted.
Database opened.


5.查看是否有spfile文件

SYS@PROD>show parameter spfile;

NAME                                 TYPE                    VALUE
------------------------------------ ----------------------
spfile                               string                 01/app/oracle/product/11.2.0/db_1/dbs/spfilePROD.ora
6.再次执行该命令,问题解决

SYS@PROD>alter system set UTL_FILE_DIR=‘/home/oracle‘,‘/home/oracle/temp‘,‘/home/oracle/scripts‘ scope=spfile;

System altered.

 

本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1405864

ORA-32001:write to SPFILE requested but no SPFILE is in use问题的解决,布布扣,bubuko.com

ORA-32001:write to SPFILE requested but no SPFILE is in use问题的解决

原文:http://ovcer.blog.51cto.com/1145188/1405864

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!