Database Backup and Recovery (MOSC)

MOSC Banner

how to set RMAN duplicate until time for 9pm last night

edited Jun 18, 2019 5:07AM in Database Backup and Recovery (MOSC) 4 commentsAnswered

Hi All

I have been told to create a duplicate that recovers up to 9pm (the duplicate will run the next morning, say at 2am).

So the syntax I have tried is this

duplicate database ******* dbid ********** to ********

until time "TO_DATE(to_char(sysdate,'YYYY-MM-DD')||':21:00:00', 'YYYY-MM-DD:HH24:MI:SS')";

I fear this wont work - if anyone has the answer then great, but if not is there a way I can test this without waiting for the duplicate to run?

Thanks

12.1.0.2 (RHEL 7)

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