DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: NTidiot question - Scheduling RMAN jobs

  1. #1
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187

    NTidiot question - Scheduling RMAN jobs

    Hi there,
    I have three db's to backup with rman (Oracle 92) to disk.

    I have a script for each db that works on it's own. Problem is, when I try and call all 3 only the first one runs.

    Here's what I am attempting


    rman TARGET sys/pass@orlhr2 CATALOG rman/cat@pass @c:\oracle\scripts\rman\full_orlhr_db_bkp.rcv log=c:\oracle\scripts\rman\logs\full_orlhr_db_bkp.log

    run
    {
    backup database include current controlfile
    format 'F:\oracle\backups\%d_%U';
    backup format 'F:\oracle\backups\%d_log_t%t_s%s_p%p'
    (archivelog all delete input);
    }


    Now I have two other backups that are identical to the above.

    I tried to create a bat file like so

    C:\oracle\scripts\rman\full_orlhr_db_bkp.bat
    C:\oracle\scripts\rman\full_prdprta_db_bkp.bat
    C:\oracle\scripts\rman\full_prdprtb_db_bkp.bat

    However only the first one get's executed

    any ideas?

    tks

    steve
    I'm stmontgo and I approve of this message

  2. #2
    Join Date
    Jul 2001
    Location
    Slovenia
    Posts
    422
    This is expected behaviour of NT.

    You have to CALL subscripts from a script if you want them to return control to the main script.

    Like:
    CALL C:\oracle\scripts\rman\full_orlhr_db_bkp.bat
    CALL C:\oracle\scripts\rman\full_prdprta_db_bkp.bat
    CALL C:\oracle\scripts\rman\full_prdprtb_db_bkp.bat
    Tomaž
    "A common mistake that people make when trying to design something completely
    foolproof is to underestimate the ingenuity of complete fools" - Douglas Adams

  3. #3
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    you rock, tks for the fast response . case closed!

    steve
    I'm stmontgo and I approve of this message

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Another reason why I love unix.
    Jeff Hunter

  5. #5
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    me to, believe me, this is not my platform of choice
    I'm stmontgo and I approve of this message

  6. #6
    Join Date
    May 2002
    Posts
    2,645
    You know, the word reboot has only come up once in my W2K Professional class. I think Windows people are in denial.

  7. #7
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    ... and just to escalate the intensity of the debate, let me add that "Windows Professional" is an oxymoron.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  8. #8
    Join Date
    Jul 2001
    Location
    Slovenia
    Posts
    422
    Somehow I've got the feeling I have to explain myself...
    All my databases are on Solaris...


    But... you have to know your enemy, right?
    Tomaž
    "A common mistake that people make when trying to design something completely
    foolproof is to underestimate the ingenuity of complete fools" - Douglas Adams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width