spfile

[oracle@server2 dbs]$ . oraenv vin
ORACLE_SID = [vin] ? vin


The Oracle base for ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db2 is /oracle/app/oracle


[oracle@server2 dbs]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 20 06:22:08 2013

 
Copyright (c) 1982, 2009, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
 
SQL> select name from v$database;

NAME
---------
VIN

SQL> ALTER SYSTEM SET control_files='+DATA1' scope=spfile;
ALTER SYSTEM SET control_files='+DATA1' scope=spfile


*
ERROR at line 1:

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


SQL> show parameter spfile;


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------

 spfile                               string

SQL> create spfile from pfile;


File created.

SQL> ALTER SYSTEM SET control_files='+DATA1' scope=spfile;
ALTER SYSTEM SET control_files='+DATA1' scope=spfile


 *
ERROR at line 1:

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


SQL> show parameter pfile;


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------

 spfile                               string

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

 [oracle@server2 dbs]$ ls
hc_DBUA0.dat  init.ora     lkVIN     peshm_DBUA0_0  spfilevin.ora
hc_vin.dat    initvin.ora  ora
jcob_lAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
I believe you need to bounce the database after you create the spfile.

When you go to start it back up, do not specify a pfile and it will look for the spfile.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve WalesSenior Database AdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.