dbTalk Databases Forums  

recover database using backup

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss recover database using backup in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Reid L Maier
 
Posts: n/a

Default recover database using backup - 02-11-2004 , 04:53 PM






I'm trying to do some automation by placing a set of Oracle commands
into a DOS batch file. The "recover database using backup
controlfile;" statement generates a prompt asking for the name of a
logfile. Provided I know the name of the logfile, is there a way to
prevent the prompt? Perhaps I can set an internal variable with the
known logfile name and have the statement execute without the prompt?

I've asked this question before but the only response I received was
to 'set autorecovery on'. That doesn't explain which variable needs
to be set with the name of the logfile name nor how to set it.

Any help is appreciated.

Reid

Reply With Quote
  #2  
Old   
Bricklen
 
Posts: n/a

Default Re: recover database using backup - 02-11-2004 , 04:59 PM






Reid L Maier wrote:
Quote:
I'm trying to do some automation by placing a set of Oracle commands
into a DOS batch file. The "recover database using backup
controlfile;" statement generates a prompt asking for the name of a
logfile. Provided I know the name of the logfile, is there a way to
prevent the prompt? Perhaps I can set an internal variable with the
known logfile name and have the statement execute without the prompt?

I've asked this question before but the only response I received was
to 'set autorecovery on'. That doesn't explain which variable needs
to be set with the name of the logfile name nor how to set it.

Any help is appreciated.

Reid
Are you invoking sqlplus? If so, I believe the -S switch will suppress
output/banner etc, and you can pass in arguments on the command line (or
via your script).

more info here: http://www.orafaq.com/faqplus.htm

Curious to know why someone would trust a script to recover their
database. Seems rather risky.


Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.