Hello
I'm working in Windows Server 2003 with Oracle 10. I'm trying to recreate our test database every night by using the database files from the live system. I copy the files over & use a text copy of the control files to create the database. My problem is that I need to run this:
It works fine on the command line but I don't know how to code this in a batch file - in particular how do I get the system to recognise a reply of "cancel"? Whatever I try SQLPLUS thinks my reply is directed at the SQL prompt.
Any advice appreciated.
Chris
I'm working in Windows Server 2003 with Oracle 10. I'm trying to recreate our test database every night by using the database files from the live system. I copy the files over & use a text copy of the control files to create the database. My problem is that I need to run this:
Code:
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
It works fine on the command line but I don't know how to code this in a batch file - in particular how do I get the system to recognise a reply of "cancel"? Whatever I try SQLPLUS thinks my reply is directed at the SQL prompt.
Any advice appreciated.
Chris