echo 'run {' > test2.cmd echo 'allocate channel t1' >> test2.cmd echo 'set until time="to_date('\'''`date "+%Y-%m-%d %H:%M:%S"`''\'','\''YYYY-MM-DD hh24:mi:ss'\'')";' >> test2.cmd echo 'set newname for database to '+datadg';' >> test2.cmd echo 'restore database;' >> test2.cmd echo 'switch datafile all;' >> test2.cmd echo 'recover database;' >> test2.cmd echo 'release channel t1;' >> test2.cmd echo '}' >> test2.cmd
rman generate script set until time
2019/09/11 by Leave a Comment
Comment