Oracle 11gR2 RMAN Batch Script

Source: Internet
Author: User

>>>>>>>>> Rman_archivelog.bat <<<<<<<<

CD/D D:\app\product\11.2.0\dbhome_1\BIN
Rman Target sys/[email protected] Catalog rman/[email protected] @ ' F:/DELETE.RMN '

>>>>>>>>> Execution Script:delete.rmn <<<<<<

run{

Allocate channel T1 device type disk;
Delete noprompt Archivelog until time ' sysdate-1 ';
DELETE Force noprompt OBSOLETE;
Crosscheck ARCHIVELOG All;
DELETE EXPIRED ARCHIVELOG All;

Release channel T1;
}

They has the separate when done.

#!/bin/sh

. /u01/app/oracle/.profile1

${oracle_home}/bin/rman <<EOF

Connect Target Sys/[email Protected]_prim

Connect Auxiliary sys/[email Protected]_logstdby

Show All;

Eof

*********************************************************

http://www.oracle-base.com/articles/misc/oracle-shell-scripting.php

Oracle 11gR2 RMAN Batch script

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.