Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> RMAN Commands
This is very interesting. We are running Oracle 8i. It seems that I cannot enter any RMAN commands directly on the command line. They have to be enclosed within run brackets {}. All the examples show that I can enter commands directly though......
RMAN> recover tablespace CSIOWNER_DATA;
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: ===========================================================RMAN-00558: error encountered while parsing input commands RMAN-01005: syntax error: found "recover": expecting one of: "allocate, alter, beginline, catalog, change, connect, crea te, crosscheck, configure, debug, delete, drop, exit, endinline, host, {, library, list, mount, open, print, register, r elease, replace, report, renormalize, reset, resync, rman, rpctúÒ" RMAN-01007: at line 1 column 1 file: standard input
RMAN> run {
2> sql 'ALTER TABLESPACE csiowner_data OFFLINE'; 3> allocate channel ch1 type disk; 4> restore tablespace CSIOWNER_DATA; 5> recover tablespace CSIOWNER_DATA; 6> sql 'ALTER TABLESPACE csiowner_data ONLINE'; 7> } RMAN-03022: compiling command: allocate RMAN-03023: executing command: allocate
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE RMAN-03023: executing command: IRESTORE RMAN-08016: channel ch1: starting datafile backupset restore RMAN-08502: set_count=2 set_stamp=555694758 creation_time=15-APR-05 RMAN-08089: channel ch1: specifying datafile(s) to restore from backupset