签到成功

知道了

CNDBA社区CNDBA社区

ORA-32001: write to SPFILE requested but no SPFILE is in use

2021-11-16 08:59 1448 0 原创 oracle
作者: hbhe0316

1.执行命令报错

http://www.cndba.cn/hbhe0316/article/22184
http://www.cndba.cn/hbhe0316/article/22184http://www.cndba.cn/hbhe0316/article/22184

sys@testdb 08:44:25> alter system set "_exadata_feature_on"=true scope=spfile;
alter system set "_exadata_feature_on"=true scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE is in use

2.查看是否有spfile

http://www.cndba.cn/hbhe0316/article/22184
http://www.cndba.cn/hbhe0316/article/22184

sys@testdb 08:45:13> show parameter spfile;

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

3.从pfile创建spfilehttp://www.cndba.cn/hbhe0316/article/22184http://www.cndba.cn/hbhe0316/article/22184

sys@testdb 08:46:57> create spfile from pfile;

File created.

Elapsed: 00:00:00.02

4.关闭数据库

sys@testdb 08:47:07> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.

5.启动数据库http://www.cndba.cn/hbhe0316/article/22184

sys@testdb 08:50:52> startup
ORACLE instance started.

Total System Global Area 3288331512 bytes
Fixed Size            8901880 bytes
Variable Size          671088640 bytes
Database Buffers     2600468480 bytes
Redo Buffers            7872512 bytes
Database mounted.
Database opened.

6.查看是否有spilehttp://www.cndba.cn/hbhe0316/article/22184http://www.cndba.cn/hbhe0316/article/22184

sys@testdb 16-NOV-21> show parameter spfile;

NAME                     TYPE     VALUE
------------------------------------ ----------- ------------------------------
spfile                     string     /u01/app/oracle/product/19.3.0
                         /db/dbs/spfiletestdb.ora

版权声明:本文为博主原创文章,未经博主允许不得转载。

oracle,linux

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:1139852次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ