{"id":193,"date":"2012-09-30T15:14:46","date_gmt":"2012-09-30T14:14:46","guid":{"rendered":"http:\/\/www.sebcharrot.com\/blog\/?p=193"},"modified":"2012-09-30T15:14:46","modified_gmt":"2012-09-30T14:14:46","slug":"how-to-fix-oracle-tns-listener-issues","status":"publish","type":"post","link":"http:\/\/www.sebcharrot.com\/blog\/how-to-fix-oracle-tns-listener-issues\/","title":{"rendered":"How to fix Oracle TNS Listener Issues"},"content":{"rendered":"<address><a href=\"http:\/\/45.77.89.248\/blog\/wp-content\/uploads\/2012\/09\/u9HQQ.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-253\" src=\"http:\/\/45.77.89.248\/blog\/wp-content\/uploads\/2012\/09\/u9HQQ.png\" alt=\"\" width=\"536\" height=\"238\" srcset=\"http:\/\/www.sebcharrot.com\/blog\/wp-content\/uploads\/2012\/09\/u9HQQ.png 536w, http:\/\/www.sebcharrot.com\/blog\/wp-content\/uploads\/2012\/09\/u9HQQ-300x133.png 300w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/a><\/address>\n<p>\u00a0A few times over the course of working with Oracle, I&#8217;ve come across environments which had issues making connections to databases set up across a network. These were failing with the error &#8220;ORA-12514: No TNS Listener&#8221;.<\/p>\n<p>I eventually found that to fix this, you need to follow the steps below:<\/p>\n<ol>\n<li>Install the <a href=\"http:\/\/www.oracle.com\/technetwork\/developer-tools\/visual-studio\/downloads\/index.html\">Oracle Data Access Components (ODAC)<\/a>\u00a0on the machine attempting to make the connection<\/li>\n<li>Navigate to C:\\app\\&lt;username&gt;\\product\\&lt;oracle_version&gt;\\client_1\\Network\\Admin\\Sample (note that this is a Windows 7 path &#8211; it will differ for other OS&#8217;s)<\/li>\n<li>Copy tsnames.ora into the directory one above it<\/li>\n<li>Open it up and replace all the values in angle brackets with the correct values for your set up:<\/li>\n<\/ol>\n<pre>&lt;data source alias&gt; =\n (DESCRIPTION =\n (ADDRESS = (PROTOCOL = TCP)(HOST = &lt;hostname or IP&gt;)(PORT = &lt;port&gt;))\n (CONNECT_DATA =\n (SERVER = DEDICATED)\n (SERVICE_NAME = &lt;database service name&gt;)\n )\n )<\/pre>\n<p>Best of luck!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0A few times over the course of working with Oracle, I&#8217;ve come across environments which had issues making connections to databases set up across a network. These were failing with the error &#8220;ORA-12514: No TNS Listener&#8221;. I eventually found that to fix this, you need to follow the steps below: Install the Oracle Data Access&hellip;&nbsp;<a href=\"http:\/\/www.sebcharrot.com\/blog\/how-to-fix-oracle-tns-listener-issues\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">How to fix Oracle TNS Listener Issues<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"categories":[23,15],"tags":[],"_links":{"self":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts\/193"}],"collection":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":0,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sebcharrot.com\/blog\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}