Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to automate running scripts.

654905Jan 4 2011 — edited Jan 5 2011
Moved from another forum.

I want to run the following commands on a weekly basis with the Windows Scheduler:

sqlplus / as sysdba
alter database flashback off;

rman target=/
delete noprompt archivelog all;
delete noprompt backup of database;
delete noprompt copy of database;

Not sure how to pass the commands and also make sure the previous command is complete before the next one runs.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2011
Added on Jan 4 2011
11 comments
283 views