Database Backup and Recovery (MOSC)

MOSC Banner

RMAN Duplicate - Until Time recovery using sysdate

edited Jan 8, 2014 5:15AM in Database Backup and Recovery (MOSC) 1 commentAnswered
 I am using RMAN Duplicate to perform DB Clone using until time.
The command is :

DUPLICATE TARGET DATABASE TO newdev UNTIL TIME "TO_DATE('2014-01-06:19:45:30', 'YYYY-MM-DD:HH24:MI:SS')" BACKUP LOCATION '/data/newdev/rman_backup' DB_FILE_NAME_CONVERT '/data/newtest/oradata/newtest','/data/newdev/oradata/newdev';

I will be scheduling this in a script to run every day

so ,Instead of mentioning the Date i would like to mention the current sysdate and the Time remains same 

How to i do it?


If i use the sysdate value it throws error.

Regards,
DB

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center