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
Printable View
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
There's two ways you can do it:
1. Inside your shell script, wrap the rman command with two date commands. For example:
2. Use the "time" command:Code:date
rman rcvcat...
date
Code:time rman rcvcat...
Thanks Jeff