I was able to create a database backup via RMAN wit the following statements:
run
{
allocate channel c1 type disk;
backup database format 'P:\W2K_Oracle8\backup\%u';
release channel c1;
}
However, I had a problem with the recovery process. The following statements were used (NOTE: Both the RECOVERY database (containing the recovery catalog) and the DB1 target database were mounted):
run{
allocate channel c1 type disk;
restore database;
recover database;
release channel c1;
}
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03006: non-retryable error occurred during execution of command: IRESTORE
RMAN-07004: unhandled exception during command execution on channel c1
RMAN-10035: exception raised in RPC: ORA-19573: cannot obtain exclusive enqueue
for datafile 1
RMAN-10031: ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPP
IECE
run
{
allocate channel c1 type disk;
backup database format 'P:\W2K_Oracle8\backup\%u';
release channel c1;
}
However, I had a problem with the recovery process. The following statements were used (NOTE: Both the RECOVERY database (containing the recovery catalog) and the DB1 target database were mounted):
run{
allocate channel c1 type disk;
restore database;
recover database;
release channel c1;
}
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: restore
RMAN-03006: non-retryable error occurred during execution of command: IRESTORE
RMAN-07004: unhandled exception during command execution on channel c1
RMAN-10035: exception raised in RPC: ORA-19573: cannot obtain exclusive enqueue
for datafile 1
RMAN-10031: ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPP
IECE