Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > How do you multiplex control files?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-08, 08:47
ntadmin2 ntadmin2 is offline
Registered User
 
Join Date: Dec 2007
Posts: 18
How do you multiplex control files?

A quick question: how do you multiplex control files?
Can't multi-plex from Enterprise Manager, can't manually edit the spfile.
Oracle instructions say to shut down database and edit the spfile but how do you do this?
Reply With Quote
  #2 (permalink)  
Old 01-14-08, 10:03
ebrian ebrian is offline
Registered User
 
Join Date: May 2006
Posts: 117
The docs are great for this kinda stuff (Managing Control Files).
Reply With Quote
  #3 (permalink)  
Old 01-14-08, 11:41
ntadmin2 ntadmin2 is offline
Registered User
 
Join Date: Dec 2007
Posts: 18
But that's exactly where i came from and why i posted on the forum.
Oracle advice on how to multiplex control files (from that link):
1.Shut down the database.
2.Copy an existing control file to a new location, using operating system commands.
3.Edit the CONTROL_FILES parameter in the database initialization parameter file to add the new control file name, or to change the existing control filename.
4.Restart the database.

But how do i do step3 when i can't edit the spfile for my database directly? (since it is a binary file).
Reply With Quote
  #4 (permalink)  
Old 01-14-08, 11:46
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,569
Sql> Create Pfile From Spfile;
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
  #5 (permalink)  
Old 01-14-08, 11:46
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 3,362
You need to create a new SPFILE.

http://download.oracle.com/docs/cd/B...htm#sthref5347

You may need to create a pfile from the spfile to begin with, though.
Reply With Quote
  #6 (permalink)  
Old 01-14-08, 12:58
ntadmin2 ntadmin2 is offline
Registered User
 
Join Date: Dec 2007
Posts: 18
Gotcha. Thanks guys.
Reply With Quote
  #7 (permalink)  
Old 01-15-08, 04:57
pablolee pablolee is offline
Registered User
 
Join Date: Dec 2007
Posts: 129
Edit: Screwed up and posted twice. 2nd post is more readable. Soz

Last edited by pablolee : 01-15-08 at 05:02.
Reply With Quote
  #8 (permalink)  
Old 01-15-08, 05:01
pablolee pablolee is offline
Registered User
 
Join Date: Dec 2007
Posts: 129
Red face

You do NOT need to create a new sp file, nor do you need to create a pfile from the spfile. You simply need to alter the control_files parameter whilst the database is up and running and add the scope = spfile onto the end of the code:
Code:
alter system set control_files = 'ctrl1','ctrl2','ctrln' scope = spfile
Then shutdown the db, copy the controlfile and start the db.
Reply With Quote
  #9 (permalink)  
Old 01-15-08, 05:36
ntadmin2 ntadmin2 is offline
Registered User
 
Join Date: Dec 2007
Posts: 18
Did the create pfile from spfile, edited the pfile and then turned it back into a pfile yesterday and it worked, now i've got multiplexed control files :-)
But this way looks quicker and I've got another identical system so i'll try this method on the 2nd oracle server.
(i will try 'scope = both' to make changes on the running instance as well as the spfile).
Reply With Quote
  #10 (permalink)  
Old 01-15-08, 06:14
pablolee pablolee is offline
Registered User
 
Join Date: Dec 2007
Posts: 129
Do not use 'scope = both', it will not work.
The reason for 'scope = spfile' is so that the instance will not try to write to an spfile that currently does not exist. If you use scope = both, the instance will instantly start trying to write to an spfile that you have not yet created.
scope = spfile is the only one that will work with this particular set of tasks.
Reply With Quote
  #11 (permalink)  
Old 01-15-08, 07:08
ntadmin2 ntadmin2 is offline
Registered User
 
Join Date: Dec 2007
Posts: 18
ok, scope=spfile and then i'll restart to make sure it worked. Thanks.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On