GeekInterview.com
Series: Subject: Topic:
Question: 74 of 250

Online backup of a Control File

Can you take online backup of a Control File If yes, How?
Asked by: Pragati.rch | Member Since Feb-2008 | Asked on: Apr 19th, 2008

View all questions by Pragati.rch

Showing Answers 1 - 12 of 12 Answers
fbchua

Answered On : Oct 17th, 2008

View all answers by fbchua

Yes you could take a online backup of a control file.

SQL> alter database backup controlfile to trace;

This will create a text copy of your controlfile. You could use this text file to recreate your controlfile.

Yes  1 User has rated as useful.
  
Login to rate this answer.
vishnu1122

Answered On : Feb 17th, 2010

View all answers by vishnu1122

ALTER DATABASE CONTROLFILE TO 'Filename';
Or
ALTER DATABASE CONTROLFILE TO TRACE;

Yes  1 User has rated as useful.
  
Login to rate this answer.
dj_dj_dj

Answered On : Feb 19th, 2010

View all answers by dj_dj_dj

Dear,

      Control file is the backbone of the Oracle Database. It stores structure of the database. Some of the information stored by Control file includes:

1) Startup and shutdown of the database.
2) Log switch and checkpoing information.
3) Tablespace brought online from offline etc...

     As the first point itself states that control file is used even when Database is shutdown. Loss of info from controlfiles require recovery.


Regards
Dharmendra Jaiswal

  
Login to rate this answer.
dj_dj_dj

Answered On : Feb 19th, 2010

View all answers by dj_dj_dj

Dear Friends,


      alter database backup control file to trace ------------------- creates a script for recreating the controlfile. It doesn't take backup by any means.



Regards
Dharmendra Jaiswal

  
Login to rate this answer.
vishnu1122

Answered On : Feb 19th, 2010

View all answers by vishnu1122

I agree that backing up control file to trace is useful when we need to recreate the control file. But at the same time Alter database BACKUP controlfile to Trace is a means of taking backup of control file. In the command itslef we use the word BACKUP... :-)

Yes  1 User has rated as useful.
  
Login to rate this answer.
dj_dj_dj

Answered On : Feb 21st, 2010

View all answers by dj_dj_dj

I do not agree with you. Backup controlfile to trace would create just  a Scripts for recreating the controlfile. It does not backup the controlfile even when the word backup is used in the command. Remind you control file is used even when database is shutdown. It stores complete database structure. Hence it could not be backed up while database is open.

Regards
Dharmendra Jaiswal.

  
Login to rate this answer.
bangaloreboy

Answered On : Mar 9th, 2010

View all answers by bangaloreboy

Alter database backup controlfile to '/oradump/PROD/ctl-bkp.ctl'
Even though DB is online... we can make online bkp on ctl file.

  
Login to rate this answer.
jeevith273

Answered On : Aug 25th, 2010

View all answers by jeevith273

Alter database backup controlfile to trace as 'Path/control.ctl'

it backs up the control file to the location specified..
Or else
Controlfile online backup can be done by using RMAN
RMAN> backup current controlfile;

Yes  1 User has rated as useful.
  
Login to rate this answer.
jeevith273

Answered On : Aug 30th, 2010

View all answers by jeevith273

>>Alter database backup controlfile to 'PATH/control.ctl';

The above query will backup the controlfile in binary format which is not editable and can be used for restore and recovery...
or

We can use RMAN to backup a current controlfile

RMAN>backup current controlfile;

  
Login to rate this answer.
kam30

Answered On : May 17th, 2011

View all answers by kam30

yes.We can take online backup of control file.

Rman >backup current control file

  
Login to rate this answer.

we can do this by suding RMAN:
configure control file auto backup on;

  
Login to rate this answer.
venu

Answered On : Sep 1st, 2012

Code
  1. SQL> ALTER DATABASE backup controlfile TO trace AS <PATH>

Specify the path where you want to store the controlfile backup.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.