If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Scripting recover until cancel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-06, 07:48
dcharbonnel dcharbonnel is offline
Registered User
 
Join Date: Jan 2006
Posts: 1
Scripting recover until cancel

Hi,

I want to restore an hot backup just after the backup (clone database).

When i do the "recover database using backup controlfile until cancel" on sqlplus manually, it works good : <RET> to the first archivelog and <cancel> to the second.

Now how can i do that in a shell script ? How can i submit the two answers to sqlplus ?

Is there anybody who do a "recover database using backup controlfile until cancel" in a script ? How ?

Carbone.
Reply With Quote
  #2 (permalink)  
Old 01-27-06, 09:12
JMartinez JMartinez is offline
Registered User
 
Join Date: May 2004
Location: Dominican Republic
Posts: 719
Use Oracle's syntax, not sqlplus.. that is, use
Code:
alter database recover using backup controlfile until cancel;
and then you can submit cancel as
Code:
alter database recover cancel;
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

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