We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

init.ora/ SPFILE

crishna1
crishna1 asked
on
Medium Priority
1,236 Views
Last Modified: 2013-12-18
I have a database , not sure if it uses pfile or spfile or whatever.
I need to change certain init.ora parameters and create a spfile. I guess this is pretty starigh forward?
Can someone please give me step by step procedure for this please. something like..
1)shutdown the database (shutdown immediate)
2) create spfile from pfile
3) alter system set XXX =1000 scope =spfile;
etc etc

I know the above steps are wrong, please give me the correct order and correct syntax

many thanks!!

Comment
Watch Question

Shut down your database.
Modify any init.ora parameters and re-start
Creat your spfile from pfile
Then modify any pararmeters using alter commands with the scope parameter.

See here for details
http://www.psoug.org/reference/init_dot_ora.html

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Generally if you create a database using DBCA it comes with spfile and pfile will be in Admin path
Try this.

sql > / as sysdba

sql > create pfile from spfile;

go to $ORACLE_HOME/dbs - Unix
go to ORACLE_HOME/database -- windows

You will find Init and spfile both

Open the InitDbname.ora and modify the parameters

Remove the spfile using rm or delete

sqlplus > / as sysdba

sqlplus > startup (Now it will start with pfile as Spfile is removed )

sqlplus > create spfile from pfile;

sqlplus > shutdown immediate

sqlplus > startup

So now your database starts with spfile and from now you can start using alter commands as lik sathya said above
dynamic parameters can be modified online and will take effect on modified.

Static Init parameters will need a database bounce back .

Author

Commented:
Anand, Satya,

Thanks a lot , will try this and let you know how it goes.

Author

Commented:
Anand,

 i see a startup in your notes above , but the database was never shut down?

The databse  is UP right now, do i have to shut it down before i do the followng?

sql > / as sysdba

sql > create pfile from spfile;

go to $ORACLE_HOME/dbs - Unix
go to ORACLE_HOME/database -- windows

You will find Init and spfile both

Open the InitDbname.ora and modify the parameters

Remove the spfile using rm or delete

sqlplus > / as sysdba

sqlplus > startup (Now it will start with pfile as Spfile is removed )

Author

Commented:
Anand,
also , as shown below , i am reading your instructions , looks like first we are creating PFILE from SPFILE, the open initdbname.ora and modify , then delete existing spfile , then starup the database (no intruction to shutdown) and then create SPFILE again, startup and shutdown again, and from now on start using alter commands?? lil confusing , may be i am not reading it right?
sorry about the prev post....
create pfile
shutdown
modify pfile
create spfile from pfile; (logged on as sysdba)
startup

Author

Commented:
after trying it out couple of times, i figured it out , thanks a lot.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.