how do i time a backup?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: how do i time a backup?

  1. #1
    Join Date
    Oct 2000
    Posts
    42

    Question

    I have a cron job set to call an RMAN script to back a database up weekly. I will like to have a simple unix command that will record how long it takes to back the database up or when the backup starts and when it finishes. Thanks.

    Oisaya

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    There's two ways you can do it:
    1. Inside your shell script, wrap the rman command with two date commands. For example:
    Code:
    date
    rman rcvcat... 
    date
    2. Use the "time" command:
    Code:
    time rman rcvcat...
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Oct 2000
    Posts
    42
    Thanks Jeff

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