{"id":2457,"date":"2017-10-10T15:39:40","date_gmt":"2017-10-10T12:39:40","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=2457"},"modified":"2017-10-11T11:00:28","modified_gmt":"2017-10-11T08:00:28","slug":"tns-12547-tnslost-contact-and-linux-error-32-broken-pipe-while-connect-oracle-12c-data-guard","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/tns-12547-tnslost-contact-and-linux-error-32-broken-pipe-while-connect-oracle-12c-data-guard\/","title":{"rendered":"TNS-12547: TNS:lost contact and Linux Error: 32: Broken pipe While Connect Oracle 12c Data Guard"},"content":{"rendered":"<p>I installed Oracle 12c Data Guard, everything was okey. But, I got an error like below when I wanted to connect data guard database with Toad or SQL Developer. tnsping was okey.<\/p>\n<p><strong>Error<\/strong><\/p>\n<blockquote><p>SQL Developer :<\/p>\n<p>Status : Failure -Test failed: IO Error: Got minus one from a read call<\/p>\n<p>Listener.log<\/p>\n<p>10-OCT-2017 15:01:16 * (CONNECT_DATA=(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=testuser))(SERVICE_NAME=TDG)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=testuser))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.24)(PORT=49834)) * establish * TDG * 12518<br \/>\nTNS-12518: TNS:listener could not hand off client connection<br \/>\nTNS-12547: TNS:lost contact<br \/>\nTNS-12560: TNS:protocol adapter error<br \/>\nTNS-00517: Lost contact<br \/>\nLinux Error: 32: Broken pipe<\/p><\/blockquote>\n<p><strong>Solution<\/strong><\/p>\n<blockquote><p>If you have grid user to manage listener, you have to give permission on $ORACLE_HOME\/bin\/oracle executable file. You have to give chmod 6751 permission. This provides that grid user can execute oracle file like oracle user. Oracle open process on OS when you connect to database. If you connect from remote with using listener, listener owner (grid) will want to open new process on OS but grid user cannot open process with using $ORACLE_HOME\/bin\/oracle file due to do not have permission. So you have to give 6751 permission to use $ORACLE_HOME\/bin\/oracle file.<\/p>\n<p>[root@tdg bin] chmod 6751 oracle<\/p><\/blockquote>\n<p>You can see the same problem at 11g and 12c version of Oracle Data Guard. When oracle rac installation or single instance installation with grid, oracle automatically change permission of $ORACLE_HOME\/bin\/oracle file to 6751.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed Oracle 12c Data Guard, everything was okey. But, I got an error like below when I wanted to connect data guard database with Toad or SQL Developer. tnsping was okey. Error SQL Developer : Status : Failure -Test failed: IO Error: Got minus one from a read call Listener.log 10-OCT-2017 15:01:16 * (CONNECT_DATA=(CID=(PROGRAM=SQL&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[53],"tags":[107,32,54],"class_list":["post-2457","post","type-post","status-publish","format-standard","hentry","category-oracle-errors-and-solutions","tag-oracle-12c","tag-oracle-administration","tag-oracle-error-solutions"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-DD","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=2457"}],"version-history":[{"count":3,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2457\/revisions"}],"predecessor-version":[{"id":2460,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2457\/revisions\/2460"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=2457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=2457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=2457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}