Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Backup Archived logs using RMAN
Hi there!
And again another problem that I ran into:
How do I tell RMAN where I want my archived redo logs backup to be written to?
run {
allocate channel ch1 type disk; backup archivelog from time 'SYSDATE-10' until time 'SYSDATE';}
This script works fine, but it creates the backup set as C:\ORACLE\ORA81\DATABASE\3RCBP835_1_1 and I want it to be written to another location (on the file server)
run {
allocate channel ch1 type disk; backup archivelog from time 'SYSDATE-10' until time 'SYSDATE'; format '\\file\oradata\taz\rman\archived_log_%d_%U.arc';}
This script gives me an error message saying
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: ===========================================================RMAN-00558: error encountered while parsing input commands RMAN-01005: syntax error: found "format": expecting one of: "allocate, alter, backup, beginline, catalog, change, copy, duplicate, debug, execute, endinline, host, mount, open, plsql, recover, release , replicate, restore, resync, }, set, setlimit, sql, switch, startup, shutdown, send, validate"
Any idea what is going wrong?
This is 8.1.6 on Win2k. Received on Thu Nov 30 2000 - 12:04:59 CST