Re: Creating Grid backup jobs through a script

From: Andrey Goryunov <goryunov.oracle.l_at_gmail.com>
Date: Mon, 2 Mar 2009 23:16:35 +1100
Message-ID: <6aa7274c0903020416j61eb3f3bv9c1631a20b57b28e_at_mail.gmail.com>



Hi John,

I think to set credentials emcli can be used with its verb set_credential and you can easily generate the script for all targets

and if you use catalog RMAN scripts can be saved there and called after that.

As well as many targets can be added to the same job in EM GC and using variables there (for database name, host name, etc) the script will be executed depending on current database.

And multi-task jobs can add more complexity and flexibility

Andrey
On 02/03/2009, John Hallas <John.Hallas_at_morrisonsplc.co.uk> wrote:
> Thanks for the response Ian,
>
> Yes, I am aware that you can use the library, however that would still be a
> manually intensive job for a large number of backups whereas I thought it
> would be easier to create a script that could be run against the OMS to
> create a number of databases.
>
> If it is possible then I would see no reason why it should not be supported,
> if a procedure did exist then it should be supported in my view.
>
> The question is, does such a procedure exit?
>
> John
>
> -----Original Message-----
> From: Ian Cary [mailto:ian.cary_at_ons.gsi.gov.uk]
> Sent: 02 March 2009 10:24
> To: John Hallas
> Cc: oracle-l_at_freelists.org; oracle-l-bounce_at_freelists.org
> Subject: Re: Creating Grid backup jobs through a script
>
> When you say creating a job using a script I assume you have an issue with
> using the Job Library and "Create Like" - is there a rason why?
>
> I expect using a script you could update the Grid repository directly but
> I'm fairly sure you would be unsupported if you did. Having said that our
> security policy here requires all passwords to be changed every 90 days so
> I have written a script that updates the preferred credentials directly
> when this happens - changing them for over 50 databases is not something I
> want to do manually.
>
> Cheers,
>
> Ian
>
>
> I am looking at how to consolidate various RMAN backups to be scheduled and
> managed through Grid. Currently we have a mixture of Grid, crontab and 3rd
> party schedules running RMAN jobs.
>
> I am guessing that there must be a method of creating a grid job by using a
> script containing all the credentials, database name, backup type etc but I
> don't think I have ever come across any information around this.
>
> Has anybody got any suggestions or even better an example.
>
>
> ______________________________________________________________________
> Wm Morrison Supermarkets Plc is registered in England with number 358949.
> The registered office of the company is situated at Gain Lane, Bradford,
> West Yorkshire BD3 7DL. This email and any attachments are intended for the
> addressee(s) only and may be confidential.
>
> If you are not the intended recipient, please inform the sender by replying
> to the email that you have received in error and then destroy the email.
> If you are not the intended recipient, you must not use, disclose, copy or
> rely on the email or its attachments in any way.
>
> Wm Morrison Supermarkets PLC accepts no liability or responsibility for
> anything said in the email or its attachments and gives no warranty as to
> accuracy. It is the policy of Wm Morrison Supermarkets PLC not to enter into
> any contractual or other obligations by email.
>
> Although we have taken steps to ensure the email and its attachments are
> virus-free, we cannot guarantee this or accept any responsibility,
> and it is the responsibility of recipients to carry out their own virus
> checks.
> ______________________________________________________________________
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

-- 
Regards,
Andrey Goryunov
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Mar 02 2009 - 06:16:35 CST

Original text of this message