{"id":84,"date":"2012-12-18T00:28:00","date_gmt":"2012-12-18T00:28:00","guid":{"rendered":"http:\/\/www.theSQLReport.com\/?p=84"},"modified":"2012-12-26T12:09:05","modified_gmt":"2012-12-26T12:09:05","slug":"tdp-for-oracle-error-sbt-error-7011-errno-106-sbtopen-system-error","status":"publish","type":"post","link":"https:\/\/www.theSQLReport.com\/?p=84","title":{"rendered":"TDP for Oracle error &#8211; SBT error = 7011, errno = 106, sbtopen: system error"},"content":{"rendered":"<p>Today,\u00a0for the first time,\u00a0 I configured TDP (Tivoli Data Protect) for Oracle on Linux .\u00a0 I had already have done this many times before on AIX.\u00a0 The Linux version requires less operating system configuration then AIX.<\/p>\n<p>My Linux admin installed the TDP client version 6.3.\u00a0 After he was done, I verified his handy work, and found that he followed the instructions from IBM to the letter.\u00a0 He is usually very through.<\/p>\n<p>Then I finished by configuring RMAN to use TDP.\u00a0 Next in RMAN, I attempted a backup. It failed with a similar error I get when I run TDP for Oracle on AIX for the first time.\u00a0 So out came my AIX notes on TDP installation.\u00a0 I found that the error for Linux is almost identical to the error I used to get when I run TDP on AIX for the first time.<\/p>\n<div id=\"attachment_85\" style=\"width: 593px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2012\/12\/TDPerror.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-85\" class=\"size-full wp-image-85\" title=\"Oracle_TDP_error\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2012\/12\/TDPerror.jpg\" alt=\"Oracle TDP error\" width=\"583\" height=\"216\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2012\/12\/TDPerror.jpg 583w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2012\/12\/TDPerror-300x111.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2012\/12\/TDPerror-210x77.jpg 210w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/a><p id=\"caption-attachment-85\" class=\"wp-caption-text\">SBT error = 7011 error for TDP for Oracle<\/p><\/div>\n<p>RMAN&gt; backup database;<\/p>\n<p>Starting backup at 17-DEC-12<\/p>\n<p>RMAN-00571: ===========================================================<\/p>\n<p>RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============<\/p>\n<p>RMAN-00571: ===========================================================<\/p>\n<p>RMAN-03002: failure of backup command at 12\/17\/2012 15:04:20<\/p>\n<p>ORA-19554: error allocating device, device type: SBT_TAPE, device name:<\/p>\n<p>ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer<\/p>\n<p>Linux-x86_64 Error: 106: Transport endpoint is already connected<\/p>\n<p>Additional information: 7011<\/p>\n<p>ORA-19511: Error received from media manager layer, error text:<\/p>\n<p>SBT error = 7011, errno = 106, sbtopen: system error<\/p>\n<p>&nbsp;<\/p>\n<p>Issue:<\/p>\n<p>The problem for both AIX &amp; Linux is that the TDP client can not write to the tdpoerror.log file.\u00a0 When TDP is install, the person doing this is usually logged in as root or a super user, and the directory the log is stored is under the installer&#8217;s account name.<\/p>\n<p>Resolution:<\/p>\n<p>Change the permission on the file tdpoerror.log or its directory to allow the user \u2018oracle\u2019 to write to the error log.<\/p>\n<p>LINUX:<\/p>\n<ol>\n<li>In the TDP for Oracle configuration file: \u2018tdpo.opt\u2019, find the parameter DSMI_LOG for the log file location.<\/li>\n<\/ol>\n<p style=\"padding-left: 60px;\">Default location for tdpo.opt:<\/p>\n<p style=\"padding-left: 60px;\">\/opt\/tivoli\/tsm\/client\/oracle\/bin64\/tdpo.opt<\/p>\n<p style=\"padding-left: 60px;\">In the tdpo.opt file find the parameter: DSMI_LOG<\/p>\n<p style=\"padding-left: 60px;\">Example: \u00a0DSMI_LOG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/var\/logs\/oracle\/tdp<\/p>\n<p style=\"padding-left: 30px;\">2.\u00a0 Check the permissions of the DSMI_LOG location:<\/p>\n<p style=\"padding-left: 60px;\">Example: in folder in \/var\/logs\/oracle I found that it looked like below<br \/>\ndrwxr-xr-x 2 root\u00a0\u00a0 root\u00a0\u00a0\u00a0\u00a0\u00a0 4096 Nov 30 10:33 tdp<\/p>\n<p style=\"padding-left: 60px;\">Note:\u00a0 the owner of the folder is root without write permission to the directory<\/p>\n<p style=\"padding-left: 30px;\">3.\u00a0 In the tdp folder, check the permissions tdpoerror.log<\/p>\n<p style=\"padding-left: 60px;\">I found that it looked like below:<br \/>\n-rw-r&#8211;r&#8211; 1 root root 2012 Nov 30 10:46 tdpoerror.log<\/p>\n<p style=\"padding-left: 60px;\">Again the log file was owned by root, and could not be written to.<\/p>\n<p style=\"padding-left: 30px;\">4.\u00a0 Fixing the permissions:<\/p>\n<p style=\"padding-left: 60px;\">As either root or some super user on the operating system, run the two commands below:<\/p>\n<p style=\"padding-left: 60px;\"><span style=\"color: #0000ff;\">chown oracle:dba \/var\/logs\/oracle\/tdp<\/span><\/p>\n<p style=\"padding-left: 60px;\"><span style=\"color: #0000ff;\">chown oracle:dba \/var\/logs\/oracle\/tdp\/tdpoerror.log<\/span><\/p>\n<p style=\"padding-left: 30px;\">Then I was able to run a successful backup in RMAN.<\/p>\n<p>&nbsp;<\/p>\n<p>AIX:<\/p>\n<p style=\"padding-left: 30px;\">The only difference from Linux above was the default location of the tdpo.opt file.<\/p>\n<p style=\"padding-left: 30px;\">\/usr\/tivoli\/tsm\/client\/oracle\/bin64\/dsm.opt<\/p>\n<p>Now back to testing my backups &amp; restores in Oracle on Linux.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today,\u00a0for the first time,\u00a0 I configured TDP (Tivoli Data Protect) for Oracle on Linux .\u00a0 I had already have done this many times before on AIX.\u00a0 The Linux version requires &hellip; <a class=\"readmore\" href=\"https:\/\/www.theSQLReport.com\/?p=84\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":85,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,8,3],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aix","category-linux","category-oracle"],"_links":{"self":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/84"}],"collection":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84"}],"version-history":[{"count":20,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions\/103"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/85"}],"wp:attachment":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}