RMAN> run {
2> allocate channel tpc1 type disk
3> maxpiecesize=2g;
4> backup full
5> format '/data/backup/intel/fullbak_%s_%p.bak'
6> database
7> include current controlfile;
8> }
应该是:
5> format '/data/backup/intel/fullbak_%s_%p'
不要写.BAK
不些.BAK结果是一样的.
只备份控制文件也一样:
RMAN> run {
2> allocate channel tpc1 type disk;
3> backup
4> format '/data/backup/tpc/control_%s_%p'
5> current controlfile;
6> }
allocated channel: tpc1
channel tpc1: sid=33 devtype=DISK
Starting backup at 23-MAY-05
channel tpc1: starting full datafile backupset
channel tpc1: specifying datafile(s) in backupset
including current controlfile in backupset
channel tpc1: starting piece 1 at 23-MAY-05
released channel: tpc1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on tpc1 channel at 05/23/2005 14:28:32
ORA-19504: failed to create file "/data/backup/tpc/control_3_1"
ORA-27040: skgfrcre: create error, unable to create file
Linux Error: 2: No such file or directory
晕倒