Thursday, March 28, 2013

ORA-19511 sbt__rpc_connect; program isn't stamped setuid-root

When using RMAN to backup database with Oracle Secure Backup media library you may encounter the following error

Error:

RMAN> run {
allocate channel ch1 device type sbt parms='SBT_LIBRARY=/usr/local/oracle/backup/lib/libobk.so';
backup DATAFILE 1;
release channel ch1;
}2> 3> 4> 5>
using target database control file instead of recovery catalog
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on ch1 channel at 03/26/2013 11:38:37
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27023: skgfqsbi: media manager protocol error
ORA-19511: Error received from media manager layer, error text:
sbt__rpc_connect: Internal error - could not connect to obproxyd (Oracle Secure Backup error: 'bad port name specified (OB SBT proxy manager)').

Cause:

From obproxyd.log we can see that cause of the error is that programs are missing SETUID-ROOT:
2012/12/31.17:57:40 [16607] can't set root privileges; continuing anyway - program isn't stamped setuid-root (OB utilities)
2012/12/31.17:57:40 [16607] can't listen for connections - Operation not permitted
The file permissions appear to be incorrect - several files are mising SETUID-ROOT:
 $ ls -lrt /usr/local/oracle/backup/.etc.linux86_64
total 8348
-rwxrwxrwx 1 root root 34549 Sep 24 2011 obcopy
-rwxrwxrwx 1 root root 22643 Sep 24 2011 obcnotify
-rwxrwxrwx 1 root root 50803 Sep 24 2011 obcleanup
-rwxrwxrwx 1 root root 32381 Sep 24 2011 obnotify
-rwxrwxrwx 1 root root 195412 Sep 24 2011 obixd
-rwxrwxrwx 1 root root 49096 Sep 24 2011 obexec
-rwxrwxrwx 1 root root 97647 Sep 24 2011 obdupvol
-rwxrwxrwx 1 root root 92801 Sep 24 2011 obrobotd
-rwxrwxrwx 1 root root 106794 Sep 24 2011 obproxyd
-rwxrwxrwx 1 root root 78528 Sep 24 2011 obmediamgr
-rwxrwxrwx 1 root root 352048 Sep 24 2011 observiced
-rwxrwxrwx 1 root root 179009 Sep 24 2011 obscheduled
-rwxrwxrwx 1 root root 731095 Sep 24 2011 obndmpd
-rwxrwxrwx 1 root root 1790541 Sep 24 2011 obopenssl
-rwxrwxrwx 1 root root 4654275 Sep 24 2011 obhttpd
 
Solution:

cd /usr/local/oracle/backup/.etc.linux86_64/

chmod u+s obacslibd
chmod u+s obacsssid
chmod u+s obixd
chmod u+s obmediamgr
chmod u+s obproxyd
chmod u+s obrobotd
chmod u+s obscheduled
chmod u+s observiced

No comments: