My Oracle Support Banner

rman backup using Oracle Secure Backup fails with: sbtclose2: Internal error - NDMP Data Service has exited prematurely. (Doc ID 1329807.1)

Last updated on FEBRUARY 03, 2022

Applies to:

Oracle Secure Backup - Version 10.3.0.1 to 10.3.0.3 [Release 10.3]
Information in this document applies to any platform.Symptoms

In this example, OSB is configured using a tape library with 2 drives.

Rman backup to tape fails with:
RMAN-03009: failure of backup command on c1 channel at 05/31/2011 08:06:12
ORA-27192: skgfcls: sbtclose2 returned error - failed to close file
ORA-19511: Error received from media manager layer, error text:
sbtclose2: Internal error - NDMP Data Service has exited prematurely.
For more information, please check the transcript for this job ('oraprod/58.1').
ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
Additional information: 1294

From transcript:
ob> catxcr -l0 oraprod/58.1
...
2011/05/31.08:01:06 (mt) qdv__read_label() of 65536 bytes failed - mode parameters changed (OB scsi device driver)
2011/05/31.08:01:06 (atv) local mount failed - mode parameters changed (OB scsi device driver)
2011/05/31.08:01:06 ***0 wst__close: wh=0x0

...

08:05:46 NWEM: saw tape write error log message ("tape write failed due to media error")
tape write failed due to media error
08:05:46 MNPO: mover halted with reason=internal error
08:05:46 QTOS: received osb_stats message for job oraprod/58.1, kbytes 28896768, nfiles 0
08:05:46 MGS: ms.record_size 65536, ms.record_num 0x6E3B8, ms.bytes_moved 0x6E3B80000
08:05:46 MNPO: data service halted with reason=successful

From dumpdev:
ob> dumpdev <tape drive>
...
Tue May 31, 2011 at 08:01:06.711 (WIT) devtype: 6
obexec: /dev/obt1, args to wst__exec: handle=0x0
accessed via host B
op=7 (readpos), buf=0xffffffff7fffc990, count=20 (0x14), parm=0x00
cdb: 34 00 00 00 00 00 00 00 00 00 read_pos
sense data:
70 00 06 00 00 00 00 10 00 00 00 00 2A 01 00 00 94 0A 00 00 00 00 00 00
ec=0, sk=unit attn, asc=2A, ascq=1
error is: mode parameters changed
flags: (none)
returned status: code=mode parameters changed,
resid=0 (0x0), checks=0x1 [attention]

The data from dumpdev, for the drive used in the failed backup, shows that the drive reported a
"unit attention" with the error "mode parameters changed"

This error is defined as:
"The Mode parameters for the drive have been changed by a host other than the one issuing the command.
"UNIT ATTENTION" is set for all hosts following a "MODE SELECT" command, apart from the host that issued the command. This code will only be returned in a multi-host environment."

What the error is telling us is that some other application/host is accessing the tape drive while OSB is using it.

Changes

Several tape libraries and drives have been added to the OSB administrative domain.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.