Re: Can I pass a parameter into an RMAN Script?

From: Niall Litchfield <niall.litchfield_at_gmail.com>
Date: Mon, 25 Feb 2008 19:19:01 +0000
Message-ID: <7765c8970802251119w637a1957o304f29744879aeb1@mail.gmail.com>


If you configure your default channels you won't need to do this - and can have a global backup script as well. Our databases are configured like this

CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/DevBackups/db/<DBNAME>/bs_%d_%D%M%Y_%s%t.bak'; and then we have a few global scripts stored in the catalog to do full and incremental backups etc.

HTH Niall
On Mon, Feb 25, 2008 at 5:45 PM, Sam Bootsma <sbootsma_at_georgebrown.ca> wrote:

> Hello all,
>
>
>
> Oracle 10.2.0.3, Enterprise Edition, on AIX 5.3.
>
>
>
> In our RMAN backup scripts for our AAA database we have several format
> lines that look like:
>
> format '/san2/orabackup/AAA/CTRL_%d_%T_%p_%s%t';
>
>
>
> The same lines for our BBB database looks like:
>
> format '/san2/orabackup/BBB/CTRL_%d_%T_%p_%s%t';
>
>
>
> Because of this difference in the format lines I need to create and
> maintain separate RMAN scripts for each database. If I could pass a
> parameter into the RMAN script, then I could have just one RMAN script and
> call it with a parameter specifying the database name.
>
>
>
> Can anybody tell me if this is possible? Or must I continue to create
> separate RMAN scripts for each database I wish to backup? I checked the
> Oracle docs, but could not find anything that spoke to what I want to do.
>
>
>
> Thanks,
>
>
>
> *Sam Bootsma*
>
> *Oracle Database Administrator*
>
> *Information** Technology Services**
> George Brown College*
>
> *Phone: 416-415-5000 x4933**
> Fax: 416-415-4836**
> E-mail: **sbootsma_at_georgebrown.ca* <sbootsma_at_georgebrown.ca>
>
>
>

-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Feb 25 2008 - 13:19:01 CST

Original text of this message