Re: Applied archives deletion on physical stadby

  • From: Howard Latham <howard.latham@xxxxxxxxx>
  • To: Mladen Gogala <gogala.mladen@xxxxxxxxx>
  • Date: Thu, 6 Oct 2016 12:58:19 +0100

do you mean haven't been applied yet?

On 6 October 2016 at 12:46, Mladen Gogala <gogala.mladen@xxxxxxxxx> wrote:

You want to delete logs which have been applied yet? Why would you want to
do it? The script is extremely simple

*cleanup.txt*
connect target /
connect catalog rcat/<password>@rcat

run {
     allocate channel c0 device type disk;
     delete noprompt archivelog all;
}

When you want to run it from the command line, just do the following: rman
cmdfile=/my/dir/cleanup.txt. That should do the trick.
Regards

On 08/25/2016 04:15 PM, nilesh kumar wrote:

Hello Gurus,

We have built the physical standby database 11.2.0.4 on windows 2012 R2.
We have backups configured only at Primary site.
I am looking for any script which can be put as a Batch/bat file and get
executed on intervals and deletes the applied archives from the physical
standby database.
Could you please share any such script.

--
Thanks & Regards
Nilesh



--
Mladen Gogala
Oracle DBA
Tel: (347) 321-1217




-- 
Howard A. Latham

Other related posts: