SOLVED

ORA-32001: Write To SPFILE Requested But No SPFILE Is In Use

Asked by OracleDba13 viewsoracle

ORA-32001: Write To SPFILE Requested But No SPFILE Is In Use

#oracle#error

Solutions(1)

Accepted Solution
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Generally , This error comes, if the database is running with pfile instead of spfile.

1. Check whether DB is running with pfile or spfile:

SQL> show parameter pfile

NAME TYPE VALUE

------ -------- ------------------------------

spfile string

Here value is showing BLANK, Means database is running with pfile.

So with pfile , if we try to alter any init parameter in database, it will throw an error.

To fix it, create an spfile from the pfile and restart the database.

2. Create spfile from pfile;

create spfile from pfile;

3. Check whether spfile has been created in $ORACLE_HOME/dbs location:

cd $ORACLE_HOME/dbs

ls -ltr spfile*

4. Restart the database

shutdown immediate;

Startup

When we start the database, if both pfile(init$ORACLE_SID.ora) and spfile(spfile$ORACLE_SID.ora) are present at dbs location, Then bydefault spfile will be used to start database

5. Check whether spfile is used or not:

show parameter pfile

NAME TYPE VALUE

------------------------------------ ----------- ------------------------------

spfile string /data/app/oracle/product/dbhome/spfileprim.ora

6. Now run alter statement:

ALTER SYSTEM SET processes = 900 SCOPE=SPFILE;

System altered.
OracleDba

Post Your Solution