Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Backup Archived logs using RMAN
hehehe,
the semicolon between backup and format is wrong (format is a clause of
backup.
oli
On Thursday 30 November 2000 20:20, hdaiminger_at_vivonet.com wrote:
> 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"
> RMAN-01007: at line 5 column 6 file: standard input
>
> Any idea what is going wrong?
>
> This is 8.1.6 on Win2k.
>
> Thanks,
> Helmut
-- --- Oliver Artelt, System- und Datenbankadministration --------------------------------------------------------------- cubeoffice GmbH & Co.KG # jordanstrasse 7 # 39112 magdeburg telefon: +49 (0)391 6 11 28 10 # telefax: +49 (0)391 6 11 28 19 email: oli@cubeoffice.de # web: http://www.cubeoffice.de ---------------------------------------------------------------Received on Thu Nov 30 2000 - 16:00:29 CST