Experience: is what you get soon after you need it.

Experience: is what you get soon after you need it.

Rasul Allah (sal Allahu alaihi wa sallam) said: "Restore the trusts of those who trust you, and deal not falsely with him who deals falsely with you." [Abu Dawud, Tirmidhi]

Search This Blog

Tuesday, August 11, 2015

Create RMAN backup script.

Connect to catalog & Target database:

[oracle@collabn1 config]$ rman

Recovery Manager: Release 11.2.0.1.0 - Production on Tue Aug 4 14:22:45 2015

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect catalog rcuser/rcuser@prod1

RMAN> create script whole_backup{
allocate channel ch01 type disk format '/u10/backup';
backup database plus archivelog;
}

created script whole_backup

RMAN> list script names;

List of Stored Scripts in Recovery Catalog


    Scripts of Target Database ORCL

      Script Name
      Description
      -----------------------------------------------------------------------
      whole_backup

RMAN> print script whole_backup;

printing stored script: whole_backup
{
allocate channel ch01 type disk format '/u10/backup';
backup database plus archivelog;
}

RMAN>

No comments: