We are testing the oracle backup & restore processes. The configuration
are Oracle 8.1.6 on solaris 8 and Netbackup 3.4 on solaris 7. We
modified the sample script (hot_database_backup.sh &
hot_database_backup_level0.rcv) for online backup the oracle with RMAN.
The backup seems OK the return status 0. However, when we use the
database_restore.sh & database_restore.rcv, we got a error message from
the database_restore.sh.out (part of the log listed as below).
Anyone can help?

Thanks & regards.

RMAN-03022: compiling command: restore

RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel t1: starting datafile backupset restore
RMAN-08502: set_count=32 set_stamp=439483787 creation_time=03-SEP-01
RMAN-08089: channel t1: specifying datafile(s) to restore from backup
RMAN-08523: restoring datafile 00001 to /u02/oradata/orcl/system01.dbf
RMAN-08523: restoring datafile 00004 to /u02/oradata/orcl/temp01.dbf
RMAN-08523: restoring datafile 00005 to /u02/oradata/orcl/users01.dbf
RMAN-08016: channel t2: starting datafile backupset restore
RMAN-08502: set_count=33 set_stamp=439483788 creation_time=03-SEP-01
RMAN-08089: channel t2: specifying datafile(s) to restore from backup
RMAN-08523: restoring datafile 00002 to /u02/oradata/orcl/tools01.dbf
RMAN-08523: restoring datafile 00003 to /u02/oradata/orcl/rbs01.dbf
RMAN-08523: restoring datafile 00006 to /u02/oradata/orcl/indx01.dbf
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:
RMAN-07004: unhandled exception during command execution on channel t1
RMAN-10035: exception raised in RPC: ORA-27192: skgfcls: sbtclose2
returned error - failed to close file
ORA-19511: sbtclose2: Failed to process backup file.
ORA-19573: cannot obtain exclusive enqueue for datafile 5
RMAN-10031: ORA-19583 occurred during call to

Recovery Manager complete.

Mon Sep 3 15:47:28 CST 2001 ----------------End of

exit 1