您的位置:首页 > 产品设计 > UI/UE

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

2016-07-19 13:09 736 查看
在执行该命令时出现下列错误
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.查看是否有spfileSYS@PROD>show parameter spfile;NAME TYPE VALUE
------------------------------------ ---------------------
spfile string 2.从pfile创建spfileSYS@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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: