You are on page 1of 9

---- -- ---- ---------- --------- ---1

Full 620062
18-MAR-11 /oracle/app/oradata/orcl/system01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------8
Full
6.80M
DISK
00:00:01
18-MAR-11
BP Key: 8 Status: AVAILABLE Compressed: NO Tag: TAG20110318T085344
Piece Name: /oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096024_6r5n20vk_.bkp
Control File Included: Ckp SCN: 620078
Ckp time: 18-MAR-11
SPFILE Included: Modification time: 18-MAR-11
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------9
Full
148.57M
DISK
00:00:14
18-MAR-11
BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090254
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T090254_6r5nm741_.bkp
List of Datafiles in backup set 9
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---3
Full 620852
18-MAR-11 /oracle/app/oradata/orcl/sysaux01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------10
Full
6.80M
DISK
00:00:01
18-MAR-11
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090309
Piece Name: /oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096589_6r5nmpb5_.bkp
Control File Included: Ckp SCN: 620861
Ckp time: 18-MAR-11
SPFILE Included: Modification time: 18-MAR-11
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------11
Full
163.38M
DISK
00:00:37
18-MAR-11
BP Key: 11 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090559
Piece Name: /oracle/bkporcl/ORCL_12_0cm7h23n
List of Datafiles in backup set 11
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---3
Full 621431
18-MAR-11 /oracle/app/oradata/orcl/sysaux01.dbf
4
Full 621431
18-MAR-11 /oracle/app/oradata/orcl/users01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------12
Full
385.73M
DISK
00:00:46
18-MAR-11
BP Key: 12 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090559
Piece Name: /oracle/bkporcl/ORCL_11_0bm7h23n
List of Datafiles in backup set 12
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---1
Full 621430
18-MAR-11 /oracle/app/oradata/orcl/system01.dbf
2
Full 621430
18-MAR-11 /oracle/app/oradata/orcl/undotbs01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------13
Full
6.80M
DISK
00:00:01
18-MAR-11
BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090654
Piece Name: /oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096814_6r5ntq8w_.bkp

Control File Included: Ckp SCN: 621459


Ckp time: 18-MAR-11
SPFILE Included: Modification time: 18-MAR-11
RMAN>
RMAN> report obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
Report of obsolete backups and copies
Type
Key
Completion Time
Filename/Handle
-------------------- ------ ------------------ -------------------Backup Set
1
17-MAR-11
Backup Piece
1
17-MAR-11
/oracle/app/flash_recovery_area/O
RCL/backupset/2011_03_17/o1_mf_annnn_TAG20110317T084514_6r2z63qq_.bkp
Backup Set
2
17-MAR-11
Backup Piece
2
17-MAR-11
/oracle/app/flash_recovery_area/O
RCL/backupset/2011_03_17/o1_mf_nnndf_TAG20110317T085734_6r2zx6pf_.bkp
Backup Set
3
17-MAR-11
Backup Piece
3
17-MAR-11
/oracle/app/flash_recovery_area/O
RCL/backupset/2011_03_17/o1_mf_ncsnf_TAG20110317T085734_6r2zyzj6_.bkp
Backup Set
6
18-MAR-11
Backup Piece
6
18-MAR-11
/oracle/app/flash_recovery_area/O
RCL/autobackup/2011_03_18/o1_mf_s_746095813_6r5mvg6t_.bkp
Backup Set
8
18-MAR-11
Backup Piece
8
18-MAR-11
/oracle/app/flash_recovery_area/O
RCL/autobackup/2011_03_18/o1_mf_s_746096024_6r5n20vk_.bkp
RMAN>
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 2
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
Deleting the following obsolete backups and copies:
Type
Key
Completion Time
Filename/Handle
-------------------- ------ ------------------ -------------------Backup Set
1
17-MAR-11
Backup Piece
1
17-MAR-11
/oracle/app/flash_recovery_area/O
RCL/backupset/2011_03_17/o1_mf_annnn_TAG20110317T084514_6r2z63qq_.bkp
Backup Set
2
17-MAR-11
Backup Piece
2
17-MAR-11
/oracle/app/flash_recovery_area/O
RCL/backupset/2011_03_17/o1_mf_nnndf_TAG20110317T085734_6r2zx6pf_.bkp
Backup Set
3
17-MAR-11
Backup Piece
3
17-MAR-11
/oracle/app/flash_recovery_area/O
RCL/backupset/2011_03_17/o1_mf_ncsnf_TAG20110317T085734_6r2zyzj6_.bkp
Backup Set
6
18-MAR-11
Backup Piece
6
18-MAR-11
/oracle/app/flash_recovery_area/O
RCL/autobackup/2011_03_18/o1_mf_s_746095813_6r5mvg6t_.bkp
Backup Set
8
18-MAR-11
Backup Piece
8
18-MAR-11
/oracle/app/flash_recovery_area/O
RCL/autobackup/2011_03_18/o1_mf_s_746096024_6r5n20vk_.bkp
Do you really want to delete the above objects (enter YES or NO)? y
deleted backup piece
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_17/o1
_mf_annnn_TAG20110317T084514_6r2z63qq_.bkp recid=1 stamp=746009115

deleted backup piece


backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_17/o1
_mf_nnndf_TAG20110317T085734_6r2zx6pf_.bkp recid=2 stamp=746009854
deleted backup piece
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_17/o1
_mf_ncsnf_TAG20110317T085734_6r2zyzj6_.bkp recid=3 stamp=746009911
deleted backup piece
backup piece handle=/oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746095813_6r5mvg6t_.bkp recid=6 stamp=746095814
deleted backup piece
backup piece handle=/oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096024_6r5n20vk_.bkp recid=8 stamp=746096024
Deleted 5 objects
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------4
Full
21.21M
DISK
00:00:01
17-MAR-11
BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20110317T085928
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_17/o1
_mf_nnndf_TAG20110317T085928_6r300r4s_.bkp
List of Datafiles in backup set 4
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---2
Full 555671
17-MAR-11 /oracle/app/oradata/orcl/undotbs01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------5
Full
14.83M
DISK
00:00:01
18-MAR-11
BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20110318T085010
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T085010_6r5mvbpx_.bkp
List of Datafiles in backup set 5
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---4
Full 619962
18-MAR-11 /oracle/app/oradata/orcl/users01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------7
Full
364.55M
DISK
00:00:24
18-MAR-11
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20110318T085319
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T085319_6r5n173s_.bkp
List of Datafiles in backup set 7
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---1
Full 620062
18-MAR-11 /oracle/app/oradata/orcl/system01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------9
Full
148.57M
DISK
00:00:14
18-MAR-11
BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090254
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T090254_6r5nm741_.bkp

List of Datafiles in backup set 9


File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---3
Full 620852
18-MAR-11 /oracle/app/oradata/orcl/sysaux01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------10
Full
6.80M
DISK
00:00:01
18-MAR-11
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090309
Piece Name: /oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096589_6r5nmpb5_.bkp
Control File Included: Ckp SCN: 620861
Ckp time: 18-MAR-11
SPFILE Included: Modification time: 18-MAR-11
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------11
Full
163.38M
DISK
00:00:37
18-MAR-11
BP Key: 11 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090559
Piece Name: /oracle/bkporcl/ORCL_12_0cm7h23n
List of Datafiles in backup set 11
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---3
Full 621431
18-MAR-11 /oracle/app/oradata/orcl/sysaux01.dbf
4
Full 621431
18-MAR-11 /oracle/app/oradata/orcl/users01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------12
Full
385.73M
DISK
00:00:46
18-MAR-11
BP Key: 12 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090559
Piece Name: /oracle/bkporcl/ORCL_11_0bm7h23n
List of Datafiles in backup set 12
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---1
Full 621430
18-MAR-11 /oracle/app/oradata/orcl/system01.dbf
2
Full 621430
18-MAR-11 /oracle/app/oradata/orcl/undotbs01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------13
Full
6.80M
DISK
00:00:01
18-MAR-11
BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090654
Piece Name: /oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096814_6r5ntq8w_.bkp
Control File Included: Ckp SCN: 621459
Ckp time: 18-MAR-11
SPFILE Included: Modification time: 18-MAR-11
RMAN>
RMAN> crosscheck backupset;
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_17/o1
_mf_nnndf_TAG20110317T085928_6r300r4s_.bkp recid=4 stamp=746009968
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T085010_6r5mvbpx_.bkp recid=5 stamp=746095810
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o

1_mf_s_746096589_6r5nmpb5_.bkp recid=10 stamp=746096590


crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/oracle/bkporcl/ORCL_12_0cm7h23n recid=11 stamp=746096760
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/oracle/bkporcl/ORCL_11_0bm7h23n recid=12 stamp=746096759
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096814_6r5ntq8w_.bkp recid=13 stamp=746096815
Crosschecked 6 objects
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T085319_6r5n173s_.bkp recid=7 stamp=746095999
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T090254_6r5nm741_.bkp recid=9 stamp=746096575
Crosschecked 2 objects
RMAN> list backupset;
List of Backup Sets
===================
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------4
Full
21.21M
DISK
00:00:01
17-MAR-11
BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20110317T085928
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_17/o1
_mf_nnndf_TAG20110317T085928_6r300r4s_.bkp
List of Datafiles in backup set 4
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---2
Full 555671
17-MAR-11 /oracle/app/oradata/orcl/undotbs01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------5
Full
14.83M
DISK
00:00:01
18-MAR-11
BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20110318T085010
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T085010_6r5mvbpx_.bkp
List of Datafiles in backup set 5
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---4
Full 619962
18-MAR-11 /oracle/app/oradata/orcl/users01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------7
Full
364.55M
DISK
00:00:24
18-MAR-11
BP Key: 7 Status: EXPIRED Compressed: NO Tag: TAG20110318T085319
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T085319_6r5n173s_.bkp
List of Datafiles in backup set 7
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---1
Full 620062
18-MAR-11 /oracle/app/oradata/orcl/system01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------

Full
148.57M
DISK
00:00:14
18-MAR-11
BP Key: 9 Status: EXPIRED Compressed: NO Tag: TAG20110318T090254
Piece Name: /oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T090254_6r5nm741_.bkp
List of Datafiles in backup set 9
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---3
Full 620852
18-MAR-11 /oracle/app/oradata/orcl/sysaux01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------10
Full
6.80M
DISK
00:00:01
18-MAR-11
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090309
Piece Name: /oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096589_6r5nmpb5_.bkp
Control File Included: Ckp SCN: 620861
Ckp time: 18-MAR-11
SPFILE Included: Modification time: 18-MAR-11
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------11
Full
163.38M
DISK
00:00:37
18-MAR-11
BP Key: 11 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090559
Piece Name: /oracle/bkporcl/ORCL_12_0cm7h23n
List of Datafiles in backup set 11
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---3
Full 621431
18-MAR-11 /oracle/app/oradata/orcl/sysaux01.dbf
4
Full 621431
18-MAR-11 /oracle/app/oradata/orcl/users01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------12
Full
385.73M
DISK
00:00:46
18-MAR-11
BP Key: 12 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090559
Piece Name: /oracle/bkporcl/ORCL_11_0bm7h23n
List of Datafiles in backup set 12
File LV Type Ckp SCN
Ckp Time Name
---- -- ---- ---------- --------- ---1
Full 621430
18-MAR-11 /oracle/app/oradata/orcl/system01.dbf
2
Full 621430
18-MAR-11 /oracle/app/oradata/orcl/undotbs01.dbf
BS Key Type LV Size
Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ --------------13
Full
6.80M
DISK
00:00:01
18-MAR-11
BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110318T090654
Piece Name: /oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o
1_mf_s_746096814_6r5ntq8w_.bkp
Control File Included: Ckp SCN: 621459
Ckp time: 18-MAR-11
SPFILE Included: Modification time: 18-MAR-11
RMAN>
RMAN> delete backupset 7;
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
List of Backup Pieces
BP Key BS Key Pc# Cp# Status
Device Type Piece Name
------- ------- --- --- ----------- ----------- ----------

7
7
1 1 EXPIRED
DISK
/oracle/app/flash_recovery_area/
ORCL/backupset/2011_03_18/o1_mf_nnndf_TAG20110318T085319_6r5n173s_.bkp
Do you really want to delete the above objects (enter YES or NO)? y
deleted backup piece
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T085319_6r5n173s_.bkp recid=7 stamp=746095999
Deleted 1 objects
RMAN> delete backupset 9;
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
List of Backup Pieces
BP Key BS Key Pc# Cp# Status
Device Type Piece Name
------- ------- --- --- ----------- ----------- ---------9
9
1 1 EXPIRED
DISK
/oracle/app/flash_recovery_area/
ORCL/backupset/2011_03_18/o1_mf_nnndf_TAG20110318T090254_6r5nm741_.bkp
Do you really want to delete the above objects (enter YES or NO)? y
deleted backup piece
backup piece handle=/oracle/app/flash_recovery_area/ORCL/backupset/2011_03_18/o1
_mf_nnndf_TAG20110318T090254_6r5nm741_.bkp recid=9 stamp=746096575
Deleted 1 objects
RMAN> backup as backupset
2> format '/oracle/bkporcl/%d_%s_%p'
3> tablespace sysaux;
Starting backup at 18-MAR-11
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00003 name=/oracle/app/oradata/orcl/sysaux01.dbf
channel ORA_DISK_1: starting piece 1 at 18-MAR-11
channel ORA_DISK_1: finished piece 1 at 18-MAR-11
piece handle=/oracle/bkporcl/ORCL_14_1 tag=TAG20110318T091335 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 18-MAR-11
Starting Control File and SPFILE Autobackup at 18-MAR-11
piece handle=/oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o1_mf_s_
746097231_6r5o7qcn_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 18-MAR-11
RMAN> run{
2> allcate channel c1 type disk;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter
, backup, beginline, blockrecover, catalog, change, copy, convert, crosscheck, c

onfigure, duplicate, debug, delete, execute, endinline, flashback, host, mount,


open, plsql, recover, release, replicate, report, restore, resync, set, setlimit
, sql, switch, startup, shutdown, send, show, transport, validate"
RMAN-01008: the bad identifier was: allcate
RMAN-01007: at line 2 column 1 file: standard input
RMAN> run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> backup
5> format '/oracle/bkporcl/%U'
6> (datafile 1,2,3)
7> alter system archive log current;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "alter": expecting one of: "archivelog, backup,
backupset, copy, controlfilecopy, current, database, datafile, datafilecopy, db_
recovery_file_dest, (, plus, recovery, ;, spfile, tablespace"
RMAN-01007: at line 7 column 1 file: standard input
RMAN> run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> backup
5> format '/oracle/bkporcl/%U'
6> (datafile 1,2,3);
7> alter system archive log current;
RMAN-00571:
RMAN-00569:
RMAN-00571:
RMAN-00558:
RMAN-01009:
"
RMAN-01008:
RMAN-01007:

===========================================================
=============== ERROR MESSAGE STACK FOLLOWS ===============
===========================================================
error encountered while parsing input commands
syntax error: found "identifier": expecting one of: "clone, database
the bad identifier was: system
at line 7 column 7 file: standard input

RMAN> run{
2> allocate channel c1 type disk;
3> allocate channel c2 type disk;
4> backup
5> format '/oracle/bkporcl/%U'
6> (datafile 1,2,3);}
released channel: ORA_DISK_1
released channel: ORA_DISK_2
released channel: ORA_DISK_3
allocated channel: c1
channel c1: sid=144 devtype=DISK
allocated channel: c2
channel c2: sid=142 devtype=DISK
Starting backup at 18-MAR-11
channel c1: starting full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00001 name=/oracle/app/oradata/orcl/system01.dbf

channel c1: starting piece 1 at 18-MAR-11


channel c2: starting full datafile backupset
channel c2: specifying datafile(s) in backupset
input datafile fno=00003 name=/oracle/app/oradata/orcl/sysaux01.dbf
input datafile fno=00002 name=/oracle/app/oradata/orcl/undotbs01.dbf
channel c2: starting piece 1 at 18-MAR-11
channel c1: finished piece 1 at 18-MAR-11
piece handle=/oracle/bkporcl/0gm7h2rd_1_1 tag=TAG20110318T091837 comment=NONE
channel c1: backup set complete, elapsed time: 00:00:45
channel c2: finished piece 1 at 18-MAR-11
piece handle=/oracle/bkporcl/0hm7h2rd_1_1 tag=TAG20110318T091837 comment=NONE
channel c2: backup set complete, elapsed time: 00:00:45
Finished backup at 18-MAR-11
Starting Control File and SPFILE Autobackup at 18-MAR-11
piece handle=/oracle/app/flash_recovery_area/ORCL/autobackup/2011_03_18/o1_mf_s_
746097563_6r5ol3mb_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 18-MAR-11
released channel: c1
released channel: c2
RMAN>