RMAN configured to backup to Disk. Litespeed Engine for Oracle installed and user issues the command;
RMAN> backup tablespace users
2> format='leo:///xxxxxxxxx/xxxxx/rman/db_%p.dat'
OR
RMAN> backup tablespace users
2> format='leo:/xxxxxxx/xxxxx/rman/db_%p.dat'
Result:
Starting backup at 10.02.2009
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
using channel ORA_DISK_5
using channel ORA_DISK_6
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00004 name=/xxxxxxx/xxxxx/xxxxx/users.dbf
channel ORA_DISK_1: starting piece 1 at 10.02.2009
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/10/2009 11:49:55
ORA-19504: failed to create file
"/xxxxxxx/app/xxxxx/xxxxx/10g/dbs/leo:/xxxxxxxxxx/xxxxx/rman/db_1.dat"
ORA-27040: file create error, unable to create file
HPUX-ia64 Error: 2: No such file or directory
channel ORA_DISK_1 disabled, job failed on it will be run on another channel
channel ORA_DISK_2: starting full datafile backupset
channel ORA_DISK_2: specifying datafile(s) in backupset
input datafile fno=00004 name=/xxxxxxx/xxxxx/xxxxx/users.dbf
channel ORA_DISK_2: starting piece 1 at 10.02.2009
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 02/10/2009 11:49:56
ORA-19504: failed to create file
"/xxxxxxx/app/xxxxx/xxxxx/10g/dbs/leo:/xxxxxxxxxx/xxxxx/rman/db_1.dat"
ORA-27040: file create error, unable to create file
HPUX-ia64 Error: 2: No such file or directory
channel ORA_DISK_2 disabled, job failed on it will be run on another channel
channel ORA_DISK_3: starting full datafile backupset
channel ORA_DISK_3: specifying datafile(s) in backupset
input datafile fno=
The first cause of this error message is the fact that RMAN is configured to backup to disk, you will need to configure RMAN to back-up to tape rather than disk in order to use LEO with RMAN. The second cause of this error is the syntax. Test media manager doesn't know anything about the 'leo://' syntax.
Change RMAN configuration to backup to tape and then run the backup command making sure you use the right syntax.
OR
you can temporarily change the backup channel in the command syntax as seen below using run;
run
{
allocate channel ch1 type 'sbt_tape';
backup tablespace users format='/xxxxxxx/xxxxx/rman/db_%s_%p.dat';
}
OR
If you insist on using the Oracle test media manager, you will have to change the file name. The directory name is specified in the BACKUP_DIR parameter so it shouldn't appear in the command.
run
{
allocate channel ch1 type 'sbt_tape' PARMS="SBT_LIBRARY=oracle.disksbt,ENV=(BACKUP_DIR=/xxxxxxx/xxxxx/rman)";
backup tablespace users format='db_%s_%p.dat';
}