run {

set until time “to_date(’23 jan 2008 10:11:00′,’dd mon yyyy hh24:mi:ss’)”;

allocate channel ch00 type ‘SBT_TAPE’;

send ‘NB_ORA_CLIENT=host_name’;

set command id to ‘RMAN_DATABASE_RESTORE’;

restore database;

recover database;

}